Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
cacontinuousfish.c
Go to the documentation of this file.
1
class
CAContinuousFish
:
CAContinuousBase
2
{
3
protected
FishingRod_Base
m_Rod;
4
5
override
void
Setup(
ActionData
action_data )
6
{
7
Class
.CastTo(m_Rod, action_data.m_MainItem);
8
}
9
10
override
int
Execute(
ActionData
action_data )
11
{
12
if
( m_Rod != action_data.m_MainItem )
13
{
14
return
UA_ERROR
;
15
}
16
17
if
(
GetGame
().IsServer() )
18
{
19
m_Rod.AddPull(action_data.m_Player.GetDeltaT());
20
}
21
return
UA_PROCESSING
;
22
}
23
};
GetGame
proto native CGame GetGame()
CAContinuousBase
Definition:
cacontinuousbase.c:1
UA_ERROR
const int UA_ERROR
Definition:
constants.c:455
ActionData
Definition:
actionbase.c:20
FishingRod_Base
void FishingRod_Base()
Definition:
fishingrod_base.c:71
CAContinuousFish
Definition:
cacontinuousfish.c:1
UA_PROCESSING
const int UA_PROCESSING
Definition:
constants.c:434
Class
Super root of all classes in Enforce script.
Definition:
enscript.c:10
DAYZ
scripts_v1.24.157551
scripts
world
classes
useractionscomponent
actioncomponents
cacontinuousfish.c
Generated by
1.8.17