Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
weapon_utils.c File Reference

Go to the source code of this file.

Functions

void ejectBulletAndStoreInMagazine (Weapon_Base weapon, int muzzleIndex, Magazine mag, DayZPlayer p)
bool magazinesHaveEqualSizes (notnull Magazine mag, notnull Magazine mag2)
bool pushToChamberFromAttachedMagazine (Weapon_Base weapon, int muzzleIndex)
bool pushToChamberFromInnerMagazine (Weapon_Base weapon, int muzzleIndex)

Function Documentation

◆ ejectBulletAndStoreInMagazine()

void ejectBulletAndStoreInMagazine ( Weapon_Base weapon,
int muzzleIndex,
Magazine mag,
DayZPlayer p )

no magazine configured in parent state, looking in inventory

Definition at line 58 of file weapon_utils.c.

References DayZPlayerUtils(), Error(), g_Game, LogManager::IsWeaponLogEnable(), and wpnDebugPrint().

Referenced by WeaponStateBase::OnEntry().

◆ magazinesHaveEqualSizes()

bool magazinesHaveEqualSizes ( notnull Magazine mag,
notnull Magazine mag2 )

Definition at line 100 of file weapon_utils.c.

References g_Game, LogManager::IsWeaponLogEnable(), and wpnDebugPrint().

Referenced by WeaponGuardBase::GuardCondition().

◆ pushToChamberFromAttachedMagazine()

◆ pushToChamberFromInnerMagazine()

bool pushToChamberFromInnerMagazine ( Weapon_Base weapon,
int muzzleIndex )

Definition at line 33 of file weapon_utils.c.

References Error(), LogManager::IsWeaponLogEnable(), and wpnDebugPrint().

Referenced by OnEntry(), and WeaponFire::OnEntry().