◆ BearTrap()
◆ CanBeDisarmed()
26 {
27 return true;
28 }
◆ CauseVictimToStartLimping()
178 {
182 {
184 }
186 {
187 zombie.SetHealth(
"LeftLeg",
"Health", 0.0);
188 zombie.SetHealth(
"RightLeg",
"Health", 0.0);
189 }
190 }
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition PlayerBaseClient.c:2
Definition ZombieFemaleBase.c:2
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
Перекрестные ссылки Class::CastTo().
Используется в OnServerSteppedOn().
◆ CreateTrigger()
44 {
45 super.CreateTrigger();
46
49
53 }
vector GetOrientation()
Definition AreaDamageManager.c:306
TrapTrigger m_TrapTrigger
Definition TrapBase.c:44
void SetParentObject(TrapBase obj)
Definition TrapTrigger.c:18
void SetExtents(vector mins, vector maxs)
Set the size of the Trigger, avoid using SetCollisionBox directly.
Definition Trigger.c:116
Definition EnConvert.c:106
Перекрестные ссылки GetOrientation(), m_TrapTrigger, Trigger::SetExtents() и TrapTrigger::SetParentObject().
Используется в SetActive().
◆ EEHealthLevelChanged()
31 {
33
35 {
37 {
39 }
40 }
41 }
void SetInactive(bool stop_timer=true)
Definition TrapBase.c:464
Definition constants.c:638
proto native CGame GetGame()
const int STATE_RUINED
Definition constants.c:807
Перекрестные ссылки GetGame(), SetInactive() и GameConstants::STATE_RUINED.
◆ GetLoopDeploySoundset()
245 {
246 return "beartrap_deploy_SoundSet";
247 }
◆ IsDeployable()
240 {
241 return true;
242 }
◆ OnActivate()
211 {
212 #ifndef SERVER
214 #endif
215 }
void PlaySoundOpen()
Definition Trap_Bear.c:204
Перекрестные ссылки PlaySoundOpen().
Используется в SetActive().
◆ OnDisarm()
◆ OnPlacementComplete()
229 {
231
233 {
236 }
237 }
void StartActivate(PlayerBase player)
Definition TrapBase.c:443
Перекрестные ссылки GetGame() и StartActivate().
◆ OnServerSteppedOn()
Generic limp handling
137 {
139 {
140 obj.ProcessDirectDamage(
DamageType.CLOSE_COMBAT,
this,
damageZone,
"BearTrapHit_CarWheel",
"0 0 0", 1);
142 {
144 }
145
148
149 return;
150 }
151
152 if (obj.IsDamageDestroyed())
153 return;
154
157 {
161 }
162
166 {
168 }
169
170 obj.ProcessDirectDamage(
DamageType.CLOSE_COMBAT,
this,
zoneUsed,
"BearTrapHit",
"0 0 0", 1);
171
174 }
DamageType
exposed from C++ (do not change)
Definition DamageSystem.c:11
void Synch(EntityAI victim)
keeping "step" here for consistency only
Definition TrapBase.c:286
Definition InventoryItem.c:413
void CauseVictimToStartLimping(Object obj, string damagedZone)
Definition Trap_Bear.c:177
static int RandomIntInclusive(int min, int max)
Returns a random int number between and min [inclusive] and max [inclusive].
Definition EnMath.c:54
Перекрестные ссылки Class::CastTo(), CauseVictimToStartLimping(), m_UpdateTimer, Math::RandomIntInclusive(), SetInactive() и Synch().
Используется в OnSteppedOn(), OnUpdate() и OnUpdate().
◆ OnSteppedOn()
CarScript specific reaction on BearTrap
this is also called on client (OnRPC->SnapOn->OnSteppedOn chain)
68 {
70 {
71 if (!
victim.GetAllowDamage())
72 return;
73
75 {
79
80 return;
81 }
82 else
83 {
85 {
88
94
96 {
98 {
99 if (
result.obj && !
result.obj.IsDamageDestroyed() && !
result.obj.IsAnyInherited({ItemBase, Plant}))
100 {
102 return;
103 }
104 }
105 }
106 }
107
109 }
110 }
111 else if (!
GetGame().IsDedicatedServer())
112 {
114 {
116 {
117 victim.SpawnDamageDealtEffect();
118 }
119
121 }
122 }
123 }
const float UPDATE_TIMER_INTERVAL
Definition TrapBase.c:15
Definition CivilianSedan.c:2
Definition DayZPhysics.c:124
static proto bool RaycastRVProxy(notnull RaycastRVParams in, out notnull array< ref RaycastRVResult > results, array< Object > excluded=null)
Definition DayZPhysics.c:50
Definition DayZPhysics.c:99
void PlaySoundBiteLeg()
Definition Trap_Bear.c:192
void OnServerSteppedOn(Object obj, string damageZone)
Definition Trap_Bear.c:136
static const vector m_RaycastSources[RAYCAST_SOURCES_COUNT]
Definition Trap_Bear.c:6
CollisionFlags
Definition EnDebug.c:141
Перекрестные ссылки GetGame(), ItemBase, m_RaycastSources, m_UpdateTimer, OnServerSteppedOn(), PlaySoundBiteLeg(), DayZPhysics::RaycastRVProxy() и UPDATE_TIMER_INTERVAL.
Используется в SnapOnObject().
◆ OnSteppedOut()
◆ OnUpdate()
◆ PlaySoundBiteEmpty()
void PlaySoundBiteEmpty |
( |
| ) |
|
|
inlineprotected |
199 {
201 sound.SetAutodestroy(
true);
202 }
class JsonUndergroundAreaTriggerData GetPosition
Definition UndergroundAreaLoader.c:9
Wrapper class for managing sound through SEffectManager.
Definition EffectSound.c:5
Manager class for managing Effect (EffectParticle, EffectSound)
Definition EffectManager.c:6
static EffectSound PlaySound(string sound_set, vector position, float play_fade_in=0, float stop_fade_out=0, bool loop=false)
Create and play an EffectSound.
Definition EffectManager.c:169
Перекрестные ссылки GetPosition и SEffectManager::PlaySound().
Используется в OnDisarm().
◆ PlaySoundBiteLeg()
void PlaySoundBiteLeg |
( |
| ) |
|
|
inlineprotected |
◆ PlaySoundOpen()
◆ SetActions()
250 {
252
256 }
void AddAction(typename actionName)
Definition AdvancedCommunication.c:220
Definition ActionClapBearTrapWithThisItem.c:2
Definition ActionTogglePlaceObject.c:2
Перекрестные ссылки AddAction().
◆ m_RaycastSources
Инициализатор= {
"0.0 0.1 0.0",
"0.2 0.1 0.2",
"-.2 0.1 0.2",
"0.2 0.1 -0.2",
"-0.2 0.1 -0.2"
}
6 {
7 "0.0 0.1 0.0",
8 "0.2 0.1 0.2",
9 "-.2 0.1 0.2",
10 "0.2 0.1 -0.2",
11 "-0.2 0.1 -0.2"
12 };
Используется в OnSteppedOn().
◆ RAYCAST_SOURCES_COUNT
Объявления и описания членов класса находятся в файле:
- D:/Ishodniki/scripts/4_World/Entities/ItemBase/TrapBase/Trap_Bear.c