Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
boat_01.c
Go to the documentation of this file.
1
class
Boat_01_ColorBase
:
BoatScript
2
{
3
override
void
EEInit
()
4
{
5
super.EEInit();
6
7
SetAnimationPhase(
"ShowDamage"
,0);
8
SetAnimationPhase(
"HideDamage"
,1);
9
}
10
11
override
int
GetAnimInstance
()
12
{
13
return
VehicleAnimInstances
.ZODIAC;
14
}
15
16
override
int
GetSeatAnimationType
(
int
posIdx)
17
{
18
switch
(posIdx)
19
{
20
case
0:
21
return
DayZPlayerConstants
.VEHICLESEAT_DRIVER;
22
case
1:
23
return
DayZPlayerConstants
.VEHICLESEAT_CODRIVER;
24
case
2:
25
return
DayZPlayerConstants
.VEHICLESEAT_PASSENGER_L;
26
case
3:
27
return
DayZPlayerConstants
.VEHICLESEAT_PASSENGER_R;
28
}
29
30
return
0;
31
}
32
33
override
bool
CanReleaseAttachment
(
EntityAI
attachment)
34
{
35
if
(!super.CanReleaseAttachment(attachment))
36
return
false
;
37
38
string
attType = attachment.GetType();
39
40
if
(EngineIsOn() && attType ==
"SparkPlug"
)
41
return
false
;
42
43
return
true
;
44
}
45
46
override
bool
CanDisplayAttachmentCategory
(
string
category_name)
47
{
48
if
( !super.CanDisplayAttachmentCategory(category_name))
49
{
50
return
false
;
51
}
52
53
return
true
;
54
}
55
56
override
bool
CanDisplayCargo
()
57
{
58
if
(!super.CanDisplayCargo())
59
return
false
;
60
61
return
true
;
62
}
63
64
override
bool
CanReachSeatFromSeat
(
int
currentSeat,
int
nextSeat)
65
{
66
return
true
;
67
}
68
69
override
void
OnDamageDestroyed
(
int
oldLevel)
70
{
71
SetAnimationPhase(
"HideAntiwater"
,1);
72
}
73
74
override
void
OnDebugSpawn
()
75
{
76
float
amount = GetFluidCapacity(
BoatFluid
.FUEL);
77
Fill(
BoatFluid
.FUEL, amount);
78
79
//-----ATTACHMENTS
80
GetInventory().CreateInInventory(
"Sparkplug"
);
81
82
}
83
84
// DEPRECATED
85
protected
ref
UniversalTemperatureSource
m_UTSource
;
86
protected
ref
UniversalTemperatureSourceSettings
m_UTSSettings
;
87
protected
ref
UniversalTemperatureSourceLambdaEngine
m_UTSLEngine
;
88
}
89
90
class
Boat_01_Blue :
Boat_01_ColorBase
{}
91
class
Boat_01_Orange :
Boat_01_ColorBase
{}
92
class
Boat_01_Black :
Boat_01_ColorBase
{}
93
class
Boat_01_Camo :
Boat_01_ColorBase
{}
BoatFluid
BoatFluid
Type of vehicle's fluid. (native, do not change or extend).
Definition
boat.c:14
Boat_01_ColorBase
Definition
boat_01.c:2
Boat_01_ColorBase::OnDebugSpawn
override void OnDebugSpawn()
Definition
boat_01.c:74
Boat_01_ColorBase::CanDisplayAttachmentCategory
override bool CanDisplayAttachmentCategory(string category_name)
Definition
boat_01.c:46
Boat_01_ColorBase::m_UTSSettings
ref UniversalTemperatureSourceSettings m_UTSSettings
Definition
boat_01.c:86
Boat_01_ColorBase::CanDisplayCargo
override bool CanDisplayCargo()
Definition
boat_01.c:56
Boat_01_ColorBase::GetAnimInstance
override int GetAnimInstance()
Definition
boat_01.c:11
Boat_01_ColorBase::EEInit
override void EEInit()
Definition
boat_01.c:3
Boat_01_ColorBase::m_UTSLEngine
ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
Definition
boat_01.c:87
Boat_01_ColorBase::CanReleaseAttachment
override bool CanReleaseAttachment(EntityAI attachment)
Definition
boat_01.c:33
Boat_01_ColorBase::CanReachSeatFromSeat
override bool CanReachSeatFromSeat(int currentSeat, int nextSeat)
Definition
boat_01.c:64
Boat_01_ColorBase::GetSeatAnimationType
override int GetSeatAnimationType(int posIdx)
Definition
boat_01.c:16
Boat_01_ColorBase::m_UTSource
ref UniversalTemperatureSource m_UTSource
Definition
boat_01.c:85
Boat_01_ColorBase::OnDamageDestroyed
override void OnDamageDestroyed(int oldLevel)
Definition
boat_01.c:69
BoatScript::BoatScript
void BoatScript()
Definition
boatscript.c:90
EntityAI
Definition
inventoryitem.c:2
UniversalTemperatureSource
original Timer deletes m_params which is unwanted
Definition
universaltemperaturesource.c:39
UniversalTemperatureSourceSettings
Definition
universaltemperaturesource.c:2
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition
dayzplayer.c:602
UniversalTemperatureSourceLambdaEngine
UniversalTemperatureSourceLambdaBaseImpl UniversalTemperatureSourceLambdaBase UniversalTemperatureSourceLambdaEngine()
Definition
universaltemperaturesourcelambdabaseimpl.c:210
VehicleAnimInstances
VehicleAnimInstances
Definition
vehicleaniminstances.c:2
Games
Dayz
scripts
4_world
entities
vehicles
inheritedboats
boat_01.c
Generated by
1.17.0