DayZ 1.24
Loading...
Searching...
No Matches
CAContinuousQuantityExtinguish.c
Go to the documentation of this file.
2{
3 private float m_WetnessGainMultiplier = 1.0;
4
11
13 {
14 if (GetGame().IsServer())
15 {
16 if (m_SpentUnits)
17 {
20 }
21
22 Object targetObject = action_data.m_Target.GetObject();
23 if (targetObject)
24 {
26
27 //add wetness to fireplace targets
29 fireplace.AddWetnessToFireplace(wetness);
30
31 //subtract quantity from water source
32 action_data.m_MainItem.AddQuantity(-m_SpentQuantity);
33 }
34 }
35 }
36
38 {
39 if (GetGame().IsServer())
40 action_data.m_Player.GetSoftSkillsManager().AddSpecialty(UASoftSkillsWeight.ROUGH_MEDIUM);
41
42 return super.Interrupt(action_data);
43 }
44
45 void MultiplyQuantityUsed(float coef)
46 {
48 }
49}
void SetACData(Param units)
Definition CABase.c:38
override int Interrupt(ActionData action_data)
override void CalcAndSetQuantity(ActionData action_data)
void CAContinuousQuantityExtinguish(float quantity_used_per_second, float time_to_repeat, float wetness_gain_multiplier)
proto native CGame GetGame()