Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
cylindertrigger.c
Go to the documentation of this file.
1
2
class
CylinderTrigger
:
Trigger
3
{
4
override
void
EOnInit
(
IEntity
other,
int
extra)
5
{
6
SetCollisionCylinderTwoWay
(1, -0.25, 0.25);
7
}
8
9
#ifdef DIAG_DEVELOPER
10
override
void
DebugSendDmgTrigger()
11
{
12
vector
minmax[2];
13
GetCollisionBox(minmax);
14
15
DebugTriggerInfo data =
new
DebugTriggerInfo(
vector
.
Zero
,
vector
.
Zero
,
vector
.
Zero
,
vector
.
Zero
, 0,
""
, null);
16
data.param1 =
GetPosition
();
17
data.param2 =
GetOrientation
();
18
data.param3 = minmax[0];
19
data.param4 = minmax[1];
20
data.param5 = GetCollisionRadius();
21
data.param6 = m_DebugAreaType;
22
data.param7 =
m_insiders
;
23
24
if
(
g_Game
.IsMultiplayer() &&
g_Game
.IsServer())
25
PluginDiagMenuServer
.SendDataToSubscribersServer(
this
, ESubscriberSystems.TRIGGERS,
ERPCs
.DIAG_TRIGGER_DEBUG, data,
false
);
26
else
if
(!
g_Game
.IsMultiplayer() || m_Local)
27
DebugDmgTrigger(data.param1, data.param2, data.param3, data.param4, data.param5, data.param6, data.param7);
28
}
29
30
override
protected
Shape
DrawDebugShape
(vector pos, vector min, vector max,
float
radius,
int
color)
31
{
33
float
triggerHeight = (max[1] - min[1]);
34
35
Shape
dbgShape =
Debug
.DrawCylinder(pos, radius, triggerHeight, color,
ShapeFlags
.TRANSP|
ShapeFlags
.NOZWRITE|
ShapeFlags
.DOUBLESIDE);
36
dbgShape.SetPosition(pos);
37
38
dbgTargets.
Insert
(dbgShape);
39
40
return
dbgShape;
41
}
42
#endif
43
}
DrawDebugShape
void DrawDebugShape()
Definition
bleedingsource.c:176
GetOrientation
vector GetOrientation()
Definition
areadamagemanager.c:306
Debug
string Debug()
Definition
cachedequipmentstoragebase.c:29
CylinderTrigger
Trigger with cylinder shape.
Definition
cylindertrigger.c:3
CylinderTrigger::EOnInit
override void EOnInit(IEntity other, int extra)
Definition
cylindertrigger.c:4
IEntity
Internal ancestor of all Entity implementations.
Definition
enentity.c:165
PluginDiagMenuServer
Definition
plugindiagmenuserver.c:7
ScriptedEntity::SetCollisionCylinderTwoWay
void SetCollisionCylinderTwoWay(float radius, float negativeHeight, float positiveHeight)
Input value validated version of SetCollisionCylinderTwoWay.
Definition
scriptedentity.c:84
Trigger::Trigger
void Trigger()
ctor
Definition
trigger.c:53
Trigger::m_insiders
ref array< ref TriggerInsider > m_insiders
The objects and their metadata which are currently inside the Trigger.
Definition
trigger.c:44
vector
Definition
enconvert.c:119
vector::Zero
static const vector Zero
Definition
enconvert.c:123
g_Game
DayZGame g_Game
Definition
dayzgame.c:3942
ERPCs
ERPCs
Definition
erpcs.c:2
ShapeFlags
ShapeFlags
Definition
endebug.c:126
Shape
class DiagMenu Shape
Instance of created debug visualizer.
GetPosition
vector GetPosition()
Get the world position of the Effect.
Definition
effect.c:473
string::Insert
proto void Insert(int index, string input)
Inserts a string into the n-th index, increasing the string length by the size of the input.
Games
Dayz
scripts
4_world
entities
scriptedentities
triggers
cylindertrigger.c
Generated by
1.17.0