Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
transport.c
Go to the documentation of this file.
1
4#ifdef FEATURE_NETWORK_RECONCILIATION
5
6class TransportOwnerState : PawnOwnerState
7{
8 proto native void SetWorldTransform(vector transform[4]);
9 proto native void GetWorldTransform(out vector transform[4]);
10
11 proto native void SetLinearVelocity(vector value);
12 proto native void GetLinearVelocity(out vector value);
13
14 proto native void SetAngularVelocity(vector value);
15 proto native void GetAngularVelocity(out vector value);
16
17 proto native void SetBuoyancySubmerged(float value);
18 proto native float GetBuoyancySubmerged();
19
20#ifdef DIAG_DEVELOPER
21 override event void GetTransform(inout vector transform[4])
22 {
23 GetWorldTransform(transform);
24 }
25#endif
26};
27
28class TransportMove : PawnMove
29{
30 proto native void SetWorldTransform(vector transform[4]);
31 proto native void GetWorldTransform(out vector transform[4]);
32
33 proto native void SetLinearVelocity(vector value);
34 proto native void GetLinearVelocity(out vector value);
35
36 proto native void SetAngularVelocity(vector value);
37 proto native void GetAngularVelocity(out vector value);
38
39#ifdef DIAG_DEVELOPER
40 override event void GetTransform(inout vector transform[4])
41 {
42 GetWorldTransform(transform);
43 }
44#endif
45};
46
48class Transport extends Pawn
49#else
50class Transport extends EntityAI
51#endif
52{
54 private static ref VehicleFlippedContext m_FlippedContext;
55
59
61 protected vector m_fuelPos;
62
63 protected ref set<int> m_UnconsciousCrewMemberIndices;
64 protected ref set<int> m_DeadCrewMemberIndices;
65
66 void Transport()
67 {
68 RegisterNetSyncVariableBool("m_EngineZoneReceivedHit");
69
70 if ( MemoryPointExists("refill") )
71 m_fuelPos = GetMemoryPointPos("refill");
72 else
73 m_fuelPos = "0 0 0";
74
75 m_UnconsciousCrewMemberIndices = new set<int>();
76 m_DeadCrewMemberIndices = new set<int>();
77 }
78
79 override void EEHitBy(TotalDamageResult damageResult, int damageType, EntityAI source, int component, string dmgZone, string ammo, vector modelPos, float speedCoef)
80 {
81 super.EEHitBy(damageResult, damageType, source, component, dmgZone, ammo, modelPos, speedCoef);
82
83 SetEngineZoneReceivedHit(dmgZone == "Engine");
84 }
85
86 override int GetMeleeTargetType()
87 {
88 return EMeleeTargetType.NONALIGNABLE;
89 }
90
92 protected override event typename GetOwnerStateType()
93 {
94 return TransportOwnerState;
95 }
96
98 protected override event typename GetMoveType()
99 {
100 return TransportMove;
101 }
102
104 proto native void Synchronize();
105
107 proto native int CrewSize();
108
111 proto native int CrewPositionIndex( int componentIdx );
112
115 proto native int CrewMemberIndex( Human player );
116
119 proto native Human CrewMember( int posIdx );
120
123 proto native Human CrewDriver();
124
126 proto void CrewEntry( int posIdx, out vector pos, out vector dir );
127
129 proto void CrewEntryWS( int posIdx, out vector pos, out vector dir );
130
132 proto void CrewTransform( int posIdx, out vector mat[4] );
133
135 proto void CrewTransformWS( int posIdx, out vector mat[4] );
136
138 proto native void CrewGetIn( Human player, int posIdx );
139
141 proto native Human CrewGetOut( int posIdx );
142
144 proto native void CrewDeath( int posIdx );
145
150 void OnDriverEnter(Human player) {}
151
156 void OnDriverExit(Human player) {}
157
159
164 proto native int Random();
165
171 proto native float RandomRange(int pRange);
172
177 proto native float Random01();
178
183 float RandomFloat(float min, float max)
184 {
185 return Random01() * (max - min) + min;
186 }
187
196 void OnContact(string zoneName, vector localPos, IEntity other, Contact data) {}
197
206 void OnInput(float dt) {}
207
212 void OnUpdate(float dt) {}
213
214 override bool IsTransport()
215 {
216 return true;
217 }
218
220 {
221 return false;
222 }
223
224 override bool IsHealthVisible()
225 {
226 return true;
227 }
228
229 override bool ShowZonesHealth()
230 {
231 return true;
232 }
233
234 override int GetHideIconMask()
235 {
236 return EInventoryIconVisibility.HIDE_VICINITY;
237 }
238
240 {
241 return GetVelocity(this).Length() * dBodyGetMass(this);
242 }
243
245 {
246 return true;
247 }
248
250 {
251 return "VehicleTypeUndefined";
252 }
253
255 {
256 return "refill";
257 }
258
260 {
261 return 1.5;
262 }
263
265 {
266 return ModelToWorld( m_fuelPos );
267 }
268
270 {
271 if (!m_FlippedContext)
272 {
273 m_FlippedContext = new VehicleFlippedContext();
274 }
275
276#ifdef DIAG_DEVELOPER
277 m_FlippedContext.Reset(DiagMenu.GetBool(DiagMenuIDs.VEHICLE_DRAW_FLIP_CONTEXT));
278#endif
279
280 return m_FlippedContext;
281 }
282
283 protected bool DetectFlippedUsingSurface(VehicleFlippedContext ctx, float angleTolerance)
284 {
285 vector corners[4];
286 GetTightlyPackedCorners(ETransformationAxis.BOTTOM, corners);
287
288 // compute the average position to find the lowest "center-most" position
289 vector avgPosition = vector.Zero;
290 for (int i = 0; i < 4; i++)
291 {
292 avgPosition = avgPosition + corners[i];
293 }
294
295 avgPosition = avgPosition * 0.25;
296
297 // get depth of the water to determine if we should use the roadway surface normal or just up vector
298 float depth = GetGame().GetWaterDepth(avgPosition);
299
300 vector normal = vector.Up;
301 vector dirUp = GetDirectionUp();
302
303 bool testLand = depth < -1.0;
304
305 // iterate over the corners to find the average normal
306 if (testLand)
307 {
308 // trace roadway, incase the vehicle is on a rock, or bridge
309 ctx.m_SurfaceParams.type = SurfaceDetectionType.Roadway;
310
311 // ignore expensive water computation, we already know we are above land
312 ctx.m_SurfaceParams.includeWater = false;
313
314 // ignore this vehicle, it may have a roadway LOD
315 ctx.m_SurfaceParams.ignore = this;
316
317 // detect closest to the given point
318 ctx.m_SurfaceParams.rsd = RoadSurfaceDetection.CLOSEST;
319
320 for (i = 0; i < 4; i++)
321 {
322 ctx.m_SurfaceParams.position = corners[i];
323
324 GetGame().GetSurface(ctx.m_SurfaceParams, ctx.m_SurfaceResult);
325
326 corners[i][1] = ctx.m_SurfaceResult.height;
327 }
328
329 vector d0 = vector.Direction(corners[0], corners[1]);
330 vector d1 = vector.Direction(corners[0], corners[2]);
331
332 d0.Normalize();
333 d1.Normalize();
334
335 // cross product the two directions to get the normal vector of the land
336 normal = d0 * d1;
337 }
338
339 bool isFlipped = vector.Dot(normal, dirUp) < Math.Cos(angleTolerance * Math.DEG2RAD);
340
341#ifdef DIAG_DEVELOPER
342 if (ctx.IsDebug())
343 {
344 int color = 0xFF00FF00;
345 if (isFlipped)
346 color = 0xFFFF0000;
347
348 ctx.AddShape(Shape.Create(ShapeType.LINE, color, ShapeFlags.NOZBUFFER, corners[0], corners[0] + normal));
349 ctx.AddShape(Shape.Create(ShapeType.LINE, color, ShapeFlags.NOZBUFFER, corners[1], corners[1] + normal));
350 ctx.AddShape(Shape.Create(ShapeType.LINE, color, ShapeFlags.NOZBUFFER, corners[2], corners[2] + normal));
351 ctx.AddShape(Shape.Create(ShapeType.LINE, color, ShapeFlags.NOZBUFFER, corners[3], corners[3] + normal));
352 }
353#endif
354
355 return isFlipped;
356 }
357
360 {
361 return false;
362 }
363
365 /*sealed*/ bool IsFlipped()
366 {
367 VehicleFlippedContext ctx = GetFlipContext();
368 ctx.m_bIsAction = false;
369 ctx.m_ActionPlayer = null;
370 return DetectFlipped(ctx);
371 }
372
374 /*sealed*/ bool IsActionFlipped(Man player)
375 {
376 VehicleFlippedContext ctx = GetFlipContext();
377 ctx.m_bIsAction = true;
378 ctx.m_ActionPlayer = player;
379 return DetectFlipped(ctx);
380 }
381
383 {
384 for (int index = 0; index < CrewSize(); ++index)
385 {
386 if (CrewMember(index) != null)
387 return true;
388 }
389
390 return false;
391 }
392
394 {
395 return 4.0;
396 }
397
398 void MarkCrewMemberUnconscious(int crewMemberIndex);
399 void MarkCrewMemberDead(int crewMemberIndex);
400
402 {
403 return "0 1.3 0";
404 }
405
407 {
408#ifndef CFGMODS_DEFINE_TEST
409 Error("GetAnimInstance() not implemented");
410 return 0;
411#else
412 return 2;
413#endif
414 }
415
416 int GetSeatAnimationType( int posIdx )
417 {
418#ifndef CFGMODS_DEFINE_TEST
419 Error("GetSeatAnimationType() not implemented");
420#endif
421 return 0;
422 }
423
425 {
426#ifndef CFGMODS_DEFINE_TEST
427 Error("Get3rdPersonCameraType() not implemented");
428 return 0;
429#else
430 return 31;
431#endif
432 }
433
434 bool CrewCanGetThrough( int posIdx )
435 {
436#ifndef CFGMODS_DEFINE_TEST
437 return false;
438#else
439 return true;
440#endif
441 }
442
443 bool CanReachSeatFromSeat( int currentSeat, int nextSeat )
444 {
445#ifndef CFGMODS_DEFINE_TEST
446 return false;
447#else
448 return true;
449#endif
450 }
451
452 bool CanReachSeatFromDoors( string pSeatSelection, vector pFromPos, float pDistance = 1.0 )
453 {
454#ifndef CFGMODS_DEFINE_TEST
455 return false;
456#else
457 return true;
458#endif
459 }
460
461 bool CanReachDoorsFromSeat( string pDoorsSelection, int pCurrentSeat )
462 {
463#ifndef CFGMODS_DEFINE_TEST
464 return false;
465#else
466 return true;
467#endif
468 }
469
470 int GetSeatIndexFromDoor( string pDoorSelection )
471 {
472 //Potientially could be fixed some other way, currently follows the unfortunate pattern that CanReachDoorsFromSeat has created
473 switch (pDoorSelection)
474 {
475 case "DoorsDriver":
476 return 0;
477 break;
478 case "DoorsCoDriver":
479 return 1;
480 break;
481 case "DoorsCargo1":
482 return 2;
483 break;
484 case "DoorsCargo2":
485 return 3;
486 break;
487 }
488 return -1;
489 }
490
492 {
493 if (!o)
494 return false;
495
497 int layer = dBodyGetInteractionLayer(o);
498 bool interacts = dGetInteractionLayer(this, PhxInteractionLayers.CHARACTER, layer);
499 if (!interacts)
500 {
501 return true;
502 }
503
504 DayZPlayer player;
505 if (Class.CastTo(player, o))
506 {
508 HumanCommandVehicle hcv = player.GetCommand_Vehicle();
509 if (hcv && hcv.GetTransport() == this)
510 {
511 return true;
512 }
513 }
514
515 EntityAI e = EntityAI.Cast(o);
516 // CanBeSkinned means it is a dead entity which should not block the door
517 return ( ( e && (e.IsZombie() || e.IsHologram()) ) || o.CanBeSkinned() || o.IsBush() || o.IsTree() );
518 }
519
520 void SetEngineZoneReceivedHit(bool pState)
521 {
522 m_EngineZoneReceivedHit = pState;
523 SetSynchDirty();
524 }
525
527 {
528 return m_EngineZoneReceivedHit;
529 }
530
531 override void GetDebugActions(out TSelectableActionInfoArrayEx outputList)
532 {
533 super.GetDebugActions(outputList);
534
535 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.DELETE, "Delete", FadeColors.RED));
536 if (Gizmo_IsSupported())
537 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.GIZMO_OBJECT, "Gizmo Object", FadeColors.LIGHT_GREY));
538 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.GIZMO_PHYSICS, "Gizmo Physics (SP Only)", FadeColors.LIGHT_GREY)); // intentionally allowed for testing physics desync
539 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.SEPARATOR, "___________________________", FadeColors.RED));
540 }
541
542 override bool OnAction(int action_id, Man player, ParamsReadContext ctx)
543 {
544 if (super.OnAction(action_id, player, ctx))
545 return true;
546
547 if (GetGame().IsClient() || !GetGame().IsMultiplayer())
548 {
549 switch (action_id)
550 {
551 case EActions.GIZMO_OBJECT:
552 GetGame().GizmoSelectObject(this);
553 return true;
554 case EActions.GIZMO_PHYSICS:
555 GetGame().GizmoSelectPhysics(GetPhysics());
556 return true;
557 }
558 }
559
560 if (GetGame().IsServer())
561 {
562 switch (action_id)
563 {
564 case EActions.DELETE:
565 Delete();
566 return true;
567 }
568 }
569
570 return false;
571 }
572
573 bool IsAreaAtDoorFree( int currentSeat, float maxAllowedObjHeight, inout vector extents, out vector transform[4] )
574 {
575 GetTransform(transform);
576
577 vector crewPos;
578 vector crewDir;
579 CrewEntry( currentSeat, crewPos, crewDir );
580
581 vector entry[4];
582 entry[2] = crewDir;
583 entry[0] = vector.Up * crewDir;
584 entry[1] = entry[2] * entry[0];
585 entry[3] = crewPos;
586
587 Math3D.MatrixMultiply4( transform, entry, transform );
588
589 vector position = transform[3];
590 vector orientation = Math3D.MatrixToAngles(transform);
591
592 position[1] = position[1] + maxAllowedObjHeight + (extents[1] * 0.5);
593
594 array<Object> excluded = new array<Object>;
595 array<Object> collided = new array<Object>;
596
597 excluded.Insert(this);
598
599 GetGame().IsBoxColliding(position, orientation, extents, excluded, collided);
600
601 orientation.RotationMatrixFromAngles(transform);
602 transform[3] = position;
603
604 foreach (Object o : collided)
605 {
606 EntityAI e = EntityAI.Cast(o);
607 if (IsIgnoredObject(o))
608 continue;
609
610 vector minmax[2];
611 if (o.GetCollisionBox(minmax))
612 return false;
613 }
614
615 return true;
616 }
617
618 bool IsAreaAtDoorFree( int currentSeat, float maxAllowedObjHeight = 0.5, float horizontalExtents = 0.5, float playerHeight = 1.7 )
619 {
620 vector transform[4];
621 vector extents;
622
623 extents[0] = horizontalExtents;
624 extents[1] = playerHeight;
625 extents[2] = horizontalExtents;
626
627 return IsAreaAtDoorFree( currentSeat, maxAllowedObjHeight, extents, transform );
628 }
629
630 Shape DebugFreeAreaAtDoor( int currentSeat, float maxAllowedObjHeight = 0.5, float horizontalExtents = 0.5, float playerHeight = 1.7 )
631 {
632 int color = ARGB(20, 0, 255, 0);
633
634 vector transform[4];
635 vector extents;
636
637 extents[0] = horizontalExtents;
638 extents[1] = playerHeight;
639 extents[2] = horizontalExtents;
640
641 if (!IsAreaAtDoorFree( currentSeat, maxAllowedObjHeight, extents, transform ))
642 {
643 color = ARGB(20, 255, 0, 0);
644 }
645
646 Shape shape = Debug.DrawBox(-extents * 0.5, extents * 0.5, color);
647 shape.SetMatrix(transform);
648 return shape;
649 }
650};
651
653{
654 vector m_LocalPos;
655 IEntity m_Other;
656 float m_Impulse;
657
658 void SetData(vector localPos, IEntity other, float impulse)
659 {
660 m_LocalPos = localPos;
661 m_Other = other;
662 m_Impulse = impulse;
663 }
664};
665
667{
668 bool m_bIsAction = false;
669 Man m_ActionPlayer;
670
671 ref SurfaceDetectionParameters m_SurfaceParams = new SurfaceDetectionParameters();
672 ref SurfaceDetectionResult m_SurfaceResult = new SurfaceDetectionResult();
673
674#ifdef DIAG_DEVELOPER
675 private ref array<Shape> m_DebugShapes;
676 private bool m_bIsDebug;
677
679 {
680 m_DebugShapes = new array<Shape>();
681 }
682
684 {
685 Reset();
686 }
687
688 void Reset(bool isDebug = false)
689 {
690 foreach (Shape shape : m_DebugShapes)
691 {
692 shape.Destroy();
693 }
694
695 m_DebugShapes.Clear();
696
697 m_bIsDebug = isDebug;
698 }
699
700 void AddShape(Shape shape)
701 {
702 m_DebugShapes.Insert(shape);
703 }
704
705 bool IsDebug()
706 {
707 return m_bIsDebug;
708 }
709#endif
710
711 [Obsolete("no replacement")]
713};
Param4< int, int, string, int > TSelectableActionInfoWithColor
Definition entityai.c:97
void Reset()
Definition inventory.c:1123
proto native float GetWaterDepth(vector posWS)
proto native bool IsBoxColliding(vector center, vector orientation, vector edgeLength, array< Object > excludeObjects, array< Object > collidedObjects=NULL)
Finds all objects that are in choosen oriented bounding box (OBB)
proto native bool GetSurface(SurfaceDetectionParameters params, SurfaceDetectionResult result)
API for surface detection.
Super root of all classes in Enforce script.
Definition enscript.c:11
Definition debug.c:2
bool CanReachSeatFromSeat(int currentSeat, int nextSeat)
Definition transport.c:443
vector m_fuelPos
Definition transport.c:61
override bool IsHealthVisible()
Definition transport.c:224
override void EEHitBy(TotalDamageResult damageResult, int damageType, EntityAI source, int component, string dmgZone, string ammo, vector modelPos, float speedCoef)
Definition transport.c:79
int GetAnimInstance()
Definition transport.c:406
proto void CrewEntryWS(int posIdx, out vector pos, out vector dir)
Reads entry point and direction into vehicle on given position in world space.
void OnDriverEnter(Human player)
Definition transport.c:150
bool DetectFlippedUsingSurface(VehicleFlippedContext ctx, float angleTolerance)
Definition transport.c:283
float GetActionDistanceFuel()
Definition transport.c:259
bool DetectFlipped(VehicleFlippedContext ctx)
Override based on vehicle implementation (Car, Boat, modded, etc.)
Definition transport.c:359
string GetVehicleType()
Definition transport.c:249
proto void CrewEntry(int posIdx, out vector pos, out vector dir)
Reads entry point and direction into vehicle on given position in model space.
override bool ShowZonesHealth()
Definition transport.c:229
bool m_EngineZoneReceivedHit
Definition transport.c:60
bool IsActionFlipped(Man player)
Don't override, may change to native for caching 'DetectFlipped' in the future based on active-ness (...
Definition transport.c:374
override int GetHideIconMask()
Definition transport.c:234
proto native Human CrewMember(int posIdx)
proto void CrewTransform(int posIdx, out vector mat[4])
Returns crew transformation indside vehicle in model space.
proto native Human CrewGetOut(int posIdx)
Performs transfer of player from vehicle into world from given position.
float GetTransportCameraDistance()
Definition transport.c:393
override int GetMeleeTargetType()
Definition transport.c:86
override event GetOwnerStateType()
Definition transport.c:92
void OnContact(string zoneName, vector localPos, IEntity other, Contact data)
Definition transport.c:196
proto native float Random01()
Random number in range of <0,1> - !!! use this only during deterministic simulation (EOnSimulate/EOnP...
void MarkCrewMemberUnconscious(int crewMemberIndex)
proto native int Random()
-------------— deterministic random numbers ---------------------—
void SetEngineZoneReceivedHit(bool pState)
Definition transport.c:520
proto native int CrewPositionIndex(int componentIdx)
proto native int CrewMemberIndex(Human player)
float GetMomentum()
Definition transport.c:239
bool IsAreaAtDoorFree(int currentSeat, float maxAllowedObjHeight, inout vector extents, out vector transform[4])
Definition transport.c:573
override bool IsTransport()
Definition transport.c:214
proto native Human CrewDriver()
string GetActionCompNameFuel()
Definition transport.c:254
VehicleFlippedContext GetFlipContext()
Definition transport.c:269
override bool OnAction(int action_id, Man player, ParamsReadContext ctx)
Definition transport.c:542
proto native void Synchronize()
Synchronizes car's state in case the simulation is not running.
float RandomFloat(float min, float max)
Random number in range of <min,max> - !!! use this only during deterministic simulation (EOnSimulate/...
Definition transport.c:183
void OnUpdate(float dt)
Definition transport.c:212
bool IsAnyCrewPresent()
Definition transport.c:382
override event GetMoveType()
Definition transport.c:98
void OnInput(float dt)
Definition transport.c:206
proto void CrewTransformWS(int posIdx, out vector mat[4])
Returns crew transformation indside vehicle in world space.
vector GetTransportCameraOffset()
Definition transport.c:401
proto native int CrewSize()
Returns crew capacity of this vehicle.
bool CrewCanGetThrough(int posIdx)
Definition transport.c:434
int GetSeatIndexFromDoor(string pDoorSelection)
Definition transport.c:470
bool IsFlipped()
Don't override, may change to native for caching 'DetectFlipped' in the future based on active-ness (...
Definition transport.c:365
proto native void CrewGetIn(Human player, int posIdx)
Performs transfer of player from world into vehicle on given position.
Shape DebugFreeAreaAtDoor(int currentSeat, float maxAllowedObjHeight=0.5, float horizontalExtents=0.5, float playerHeight=1.7)
Definition transport.c:630
int GetSeatAnimationType(int posIdx)
Definition transport.c:416
bool IsAreaAtDoorFree(int currentSeat, float maxAllowedObjHeight=0.5, float horizontalExtents=0.5, float playerHeight=1.7)
Definition transport.c:618
bool HasEngineZoneReceivedHit()
Definition transport.c:526
int Get3rdPersonCameraType()
Definition transport.c:424
ref set< int > m_DeadCrewMemberIndices
Definition transport.c:64
void Transport()
Definition transport.c:66
override void GetDebugActions(out TSelectableActionInfoArrayEx outputList)
Definition transport.c:531
void MarkCrewMemberDead(int crewMemberIndex)
bool IsVitalSparkPlug()
Definition transport.c:244
override bool IsIgnoredByConstruction()
Definition transport.c:219
bool CanReachDoorsFromSeat(string pDoorsSelection, int pCurrentSeat)
Definition transport.c:461
bool CanReachSeatFromDoors(string pSeatSelection, vector pFromPos, float pDistance=1.0)
Definition transport.c:452
ref set< int > m_UnconsciousCrewMemberIndices
Definition transport.c:63
proto native void CrewDeath(int posIdx)
Handles death of player in vehicle and awakes its physics if needed.
vector GetRefillPointPosWS()
Definition transport.c:264
proto native float RandomRange(int pRange)
Random number in range of <0,pRange-1> - !!! use this only during deterministic simulation (EOnSimula...
void OnDriverExit(Human player)
Definition transport.c:156
bool IsIgnoredObject(Object o)
Definition transport.c:491
Definition enmath.c:7
Serialization general interface. Serializer API works with:
Definition serializer.c:56
Native class for boats - handles physics simulation.
Definition boat.c:28
override bool IsAreaAtDoorFree(int currentSeat, float maxAllowedObjHeight=0.5, float horizontalExtents=0.5, float playerHeight=1.7)
Definition car.c:117
void HandleByCrewMemberState(ECrewMemberState state)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
PhxInteractionLayers
Definition dayzphysics.c:2
proto native float Random01()
Random number in range of <0,1> - !!! use this only during deterministic simulation (CommandHandler)
EActions
Definition eactions.c:2
ECrewMemberState
DiagMenuIDs
Definition ediagmenuids.c:2
vector m_LocalPos
Cached local pos.
Definition effect.c:62
EMeleeTargetType
ETransformationAxis
proto native CGame GetGame()
void Error(string err)
Messagebox with error message.
Definition endebug.c:90
ShapeType
Definition endebug.c:116
ShapeFlags
Definition endebug.c:126
class DiagMenu Shape
don't call destructor directly. Use Destroy() instead
void Obsolete(string msg="")
Definition enscript.c:371
proto native bool dGetInteractionLayer(notnull IEntity worldEntity, int mask1, int mask2)
proto native vector GetVelocity(notnull IEntity ent)
Returns linear velocity.
proto native float dBodyGetMass(notnull IEntity ent)
proto native int dBodyGetInteractionLayer(notnull IEntity ent)
const int SAT_DEBUG_ACTION
Definition constants.c:454
class BoxCollidingParams component
ComponentInfo for BoxCollidingResult.
ref TIntArray m_SingleUseActions
Definition itembase.c:4927
ref TIntArray m_InteractActions
Definition itembase.c:4929
ref TIntArray m_ContinuousActions
Definition itembase.c:4928
int ARGB(int a, int r, int g, int b)
Definition proto.c:322
SurfaceDetectionType
Definition surfaceinfo.c:66