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

Go to the source code of this file.

Data Structures

class  ActionForceConsumeCB

Functions

override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
void ActionForceConsume ()
override void CreateConditionComponents ()
override void OnEndServer (ActionData action_data)
override void OnStartServer (ActionData action_data)
void PlaySound (PlayerBase player)

Variables

ActionForceConsumeCB SOUND_REPEAT_INTERVAL = 1.5

Function Documentation

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )

Definition at line 49 of file actionforceconsume.c.

References Math::AbsFloat(), and ActionTarget.

◆ ActionForceConsume()

void ActionForceConsume ( )

Definition at line 13 of file actionforceconsume.c.

References m_CommandUID, and m_StanceMask.

◆ CreateConditionComponents()

override void CreateConditionComponents ( )

Definition at line 22 of file actionforceconsume.c.

References UAMaxDistances::DEFAULT.

◆ OnEndServer()

override void OnEndServer ( ActionData action_data)

Definition at line 37 of file actionforceconsume.c.

References ActionData, CALL_CATEGORY_GAMEPLAY, g_Game, and PlaySound().

◆ OnStartServer()

override void OnStartServer ( ActionData action_data)

◆ PlaySound()

void PlaySound ( PlayerBase player)
protected

Definition at line 69 of file actionforceconsume.c.

Variable Documentation

◆ SOUND_REPEAT_INTERVAL

ActionForceConsumeCB SOUND_REPEAT_INTERVAL = 1.5

Referenced by OnStartServer().