DayZ 1.24
Loading...
Searching...
No Matches
Debug.c File Reference

Go to the source code of this file.

Functions

void wpnPrint (string s)
 
void wpnDebugPrint (string s)
 
void wpnDebugSpam (string s)
 
void wpnDebugSpamALot (string s)
 

Function Documentation

◆ wpnDebugPrint()

void wpnDebugPrint ( string s)

Definition at line 9 of file Debug.c.

10{
11#ifdef WPN_DEBUG
12 PrintToRPT("" + s); // comment/uncomment to hide/see debug logs
13#else
14 //Print("" + s); // comment/uncomment to hide/see debug logs
15#endif
16}
proto void PrintToRPT(void var)
Prints content of variable to RPT file (performance warning - each write means fflush!...

References PrintToRPT().

Referenced by AbortWeaponEvent(), Weapon::CanRemoveFromHands(), ejectBulletAndStoreInMagazine(), WeaponGuardBase::GuardCondition(), GuardCondition(), HandleWeaponEvents(), HFSMBase< WeaponStateBase, WeaponEventBase, WeaponActionBase, WeaponGuardBase >::LoadAndSetCurrentFSMState(), Weapon::LoadCurrentFSMState(), magazinesHaveEqualSizes(), WeaponStateBase::OnAbort(), WeaponChambering_Base::OnAbort(), OnAbort(), WeaponStateBase::OnEntry(), WeaponChambering_Base::OnEntry(), WeaponFire::OnEntry(), WeaponChambering_Base::OnExit(), WeaponChambering_Cartridge::OnExit(), WeaponStateBase::OnExit(), Weapon::OnStoreLoad(), HFSMBase< WeaponStateBase, WeaponEventBase, WeaponActionBase, WeaponGuardBase >::OnStoreLoad(), WeaponStartAction::OnUpdate(), PostWeaponEvent(), pushToChamberFromAttachedMagazine(), pushToChamberFromInnerMagazine(), HFSMBase< WeaponStateBase, WeaponEventBase, WeaponActionBase, WeaponGuardBase >::RandomizeFSMStateEx(), Weapon::SaveCurrentFSMState(), HFSMBase< WeaponStateBase, WeaponEventBase, WeaponActionBase, WeaponGuardBase >::SaveCurrentFSMState(), HFSMBase< WeaponStateBase, WeaponEventBase, WeaponActionBase, WeaponGuardBase >::SaveCurrentUnstableFSMState(), Weapon::SyncEventToRemote(), and HFSMBase< WeaponStateBase, WeaponEventBase, WeaponActionBase, WeaponGuardBase >::ValidateAndRepairHelper().

◆ wpnDebugSpam()

◆ wpnDebugSpamALot()

void wpnDebugSpamALot ( string s)

Definition at line 25 of file Debug.c.

26{
27#ifdef WPN_DEBUG_SPAM_FREQ
28 PrintToRPT("" + s); // comment/uncomment to hide/see debug logs
29#else
30 //Print("" + s); // comment/uncomment to hide/see debug logs
31#endif
32}

References PrintToRPT().

Referenced by HandleWeaponEvents(), and HFSMBase< WeaponStateBase, WeaponEventBase, WeaponActionBase, WeaponGuardBase >::OnStoreSave().

◆ wpnPrint()

void wpnPrint ( string s)

Definition at line 1 of file Debug.c.

2{
3#ifdef WPN_DEBUG
4 PrintToRPT("" + s); // comment/uncomment to hide/see at least important info
5#else
6 //Print("" + s); // comment/uncomment to hide/see at least important info
7#endif
8}

References PrintToRPT().

Referenced by WeaponStableState::OnEntry(), WeaponStateJammed::OnEntry(), WeaponStartAction::OnEntry(), WeaponFire::OnEntry(), OnEntry(), OnExit(), WeaponStableState::OnExit(), and WeaponStateJammed::OnExit().