PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
weapon_utils.c File Reference

Functions

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

Function Documentation

◆ ejectBulletAndStoreInMagazine()

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

no magazine configured in parent state, looking in inventory

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

Referenced by WeaponStateBase::OnEntry().

◆ magazinesHaveEqualSizes()

bool magazinesHaveEqualSizes ( notnull Magazine  mag,
notnull Magazine  mag2 
)

◆ pushToChamberFromAttachedMagazine()

◆ pushToChamberFromInnerMagazine()

bool pushToChamberFromInnerMagazine ( Weapon_Base  weapon,
int  muzzleIndex 
)