Nuclide
Software Development Kit for id Technology (BETA)
Entity.h
1/*
2 * Copyright (c) 2016-2024 Vera Visions LLC.
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
13 * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
14 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*/
16
22typedef enumflags
23{
24 BASEFL_CHANGED_MODELINDEX,
25 BASEFL_CHANGED_ORIGIN_X,
26 BASEFL_CHANGED_ORIGIN_Y,
27 BASEFL_CHANGED_ORIGIN_Z,
28 BASEFL_CHANGED_ANGLES_X,
29 BASEFL_CHANGED_ANGLES_Y,
30 BASEFL_CHANGED_ANGLES_Z,
31 BASEFL_CHANGED_VELOCITY_X,
32 BASEFL_CHANGED_VELOCITY_Y,
33 BASEFL_CHANGED_VELOCITY_Z,
34 BASEFL_CHANGED_ANGULARVELOCITY,
35 BASEFL_CHANGED_SIZE,
36 BASEFL_CHANGED_FLAGS,
37 BASEFL_CHANGED_SOLID,
38 BASEFL_CHANGED_FRAME,
39 BASEFL_CHANGED_SKIN,
40 BASEFL_CHANGED_MOVETYPE,
41 BASEFL_CHANGED_EFFECTS,
42 BASEFL_CHANGED_SCALE,
43} nsentity_changed_t;
44
75{
76public:
79 void ncEntity(void);
80
81#ifdef CLIENT
83 virtual void ReceiveEntity(float,float);
84
85 virtual void ReceiveEvent(float);
86
87 virtual float predraw(void);
88
90 virtual void postdraw(void);
91
93 virtual void ReloadVideoResources(void);
94#endif
95
96 /* overrides */
97 virtual void SpawnKey(string,string);
98 virtual void Spawned(void);
99 virtual void Precache(void);
100 nonvirtual void Spawn(void);
101
105 virtual void MakeStatic(void);
106
109 virtual bool CanSpawn(bool clientSide);
110
112 nonvirtual bool HasModel(void);
113
114#ifdef SERVER
115 virtual void Respawn(void);
116 virtual void Input(entity,string,string);
117 virtual void Save(float);
118 virtual void Restore(string,string);
119 virtual void ParentUpdate(void);
120
122 virtual void OnMapFinishedLoading(void);
123
124 nonvirtual void Event_SpawnDefCenter(string);
125 nonvirtual void Event_SpawnDefRelative(string, float, float, float);
126
127 nonvirtual bool SharesPVSWithPlayer(void);
128
129 /* Server-side rendering function. Expensive, but useful. */
130 virtual void DebugDraw(void);
131
133 virtual void EvaluateEntity(void);
134
136 virtual float SendEntity(entity,float);
137
139 nonvirtual entity GetParent(void);
140
142 nonvirtual void SetParent(string);
143
145 nonvirtual void SetParentAttachment(string);
146
148 nonvirtual void ClearParent(void);
149
151 nonvirtual void RestoreAngles(void);
152
154 nonvirtual void ClearAngles(void);
155
157 nonvirtual void UseBy(entity);
158
160 nonvirtual void ForceNetworkUpdate(void);
161#endif
162
163 /* sets */
165 nonvirtual void SetEffects(__int32);
167 nonvirtual void AddEffects(__int32);
169 nonvirtual void RemoveEffects(__int32);
171 nonvirtual void SetFrame(float);
173 nonvirtual void SetSkin(float);
175 nonvirtual void SetScale(float);
177 nonvirtual void SetOwner(entity);
179 nonvirtual void SetVelocity(vector);
180
182 nonvirtual void AddAngularVelocity(vector);
184 nonvirtual void AddVelocity(vector);
185
188 nonvirtual void SetTouch(void());
190 nonvirtual void SetSolid(float);
192 virtual void SetModel(string);
194 nonvirtual void SetModelindex(float);
196 nonvirtual void SetMovetype(float);
198 nonvirtual void SetGravity(float);
200 virtual void SetAngles(vector);
202 nonvirtual void SetAngularVelocity(vector);
204 virtual void SetOrigin(vector);
206 nonvirtual void SetOriginUnstick(vector);
209 nonvirtual void SetSize(vector,vector);
211 nonvirtual void AddFlags(float);
213 nonvirtual void RemoveFlags(float);
215 nonvirtual void AddVFlags(float);
217 nonvirtual void RemoveVFlags(float);
218
220 nonvirtual void TurnTo(float);
222 nonvirtual void TurnToPos(vector);
223
224 /* gets */
226 nonvirtual __int32 GetEffects(void);
228 nonvirtual float GetFrame(void);
230 nonvirtual float GetSkin(void);
232 nonvirtual float GetScale(void);
234 nonvirtual entity GetOwner(void);
236 virtual vector GetVelocity(void);
238 nonvirtual float GetSolid(void);
240 nonvirtual string GetModel(void);
242 nonvirtual float GetModelindex(void);
244 nonvirtual float GetMovetype(void);
246 nonvirtual float GetGravity(void);
248 virtual vector GetAngles(void);
250 virtual vector GetAngularVelocity(void);
252 virtual vector GetOrigin(void);
254 nonvirtual vector GetSize(void);
256 nonvirtual vector GetMins(void);
258 nonvirtual vector GetMaxs(void);
261 nonvirtual vector GetRealMins(void);
264 nonvirtual vector GetRealMaxs(void);
267 nonvirtual vector GetAbsoluteMins(void);
270 nonvirtual vector GetAbsoluteMaxs(void);
272 nonvirtual float GetFlags(void);
274 nonvirtual float HasFlags(float);
276 nonvirtual float GetVFlags(void);
278 nonvirtual float HasVFlags(float);
279
281 nonvirtual void ClearVelocity(void);
282
283 /* eye/shoot pos/angle */
285 nonvirtual vector GetEyePos(void);
287 nonvirtual void SetEyePos(vector);
289 nonvirtual vector GetViewAngle(void);
290
291 /* drawing related */
293 nonvirtual void Show(void);
295 nonvirtual void Hide(void);
297 nonvirtual bool IsHidden(void);
299 nonvirtual bool IsSolid(void);
300
303 nonvirtual void Disappear(void);
305 nonvirtual void UpdateBounds(void);
306
307 /* useful methods, (some) based on GMod's API */
309 nonvirtual float EntIndex(void);
311 nonvirtual bool DropToFloor(void);
313 virtual vector GetForward(void);
315 virtual vector GetRight(void);
317 virtual vector GetUp(void);
319 nonvirtual vector WorldSpaceCenter(void);
329 nonvirtual float WaterLevel(void);
330
332 nonvirtual bool Visible(entity);
334 nonvirtual bool VisibleVec(vector);
336 nonvirtual float DistanceFromYaw(vector);
338 nonvirtual bool HasSpawnFlags(float);
340 nonvirtual bool IsOnGround(void);
344 nonvirtual entity GetGroundEntity(void);
346 nonvirtual bool CreatedByMap(void);
348 nonvirtual bool Loading(void);
350 nonvirtual bool WithinBounds(entity);
352 nonvirtual bool IntersectsWith(entity);
353
354 /* useful methods, (some) based on Doom 3's API */
357 nonvirtual bool StartSound(string,float,float,bool);
360 nonvirtual bool StartSoundDef(string,float,bool);
362 nonvirtual void StopSound(float,bool);
363
366 nonvirtual vector NearestWallPointForRadius(float);
367
371 nonvirtual void HandleThink(void);
372
374 nonvirtual bool IsFacing(entity);
375
377 nonvirtual bool IsFacingPosition(vector);
378
380 nonvirtual float GetSpawnAge(void);
381
383 nonvirtual float GetSpawnTime(void);
385 nonvirtual void Transport(vector, vector);
386
388 nonvirtual vector GetNearbySpot(void);
389
391 nonvirtual int GetSharedID(void);
392
394 virtual bool AttackByDef(string, bool);
395
397 nonvirtual void EnablePlayerCollision(void);
399 nonvirtual void DisablePlayerCollision(void);
401 nonvirtual bool HeldByPlayer(void);
403 nonvirtual bool IsBrush(void);
404
405private:
407 nonvirtual bool _ProjectileAttack(string, bool, vector, vector);
408
409#ifdef SERVER
410 nonvirtual vector GetModelMins(void);
411 nonvirtual vector GetModelMaxs(void);
412 nonvirtual void _RelinkToSpawnParent(void);
413#endif
414 nonvirtual void _ModelChanged(void);
415
416 NETWORKED_INT(entityDefID)
417
418 NETWORKED_VECTOR_N(origin)
419 NETWORKED_VECTOR_N(angles)
420 NETWORKED_FLOAT_N(modelindex)
421 NETWORKED_VECTOR_N(size)
422 NETWORKED_VECTOR_N(mins)
423 NETWORKED_VECTOR_N(maxs)
424 NETWORKED_FLOAT_N(solid)
425 NETWORKED_FLOAT_N(movetype)
426 NETWORKED_FLOAT_N(scale)
427 NETWORKED_FLOAT_N(flags)
428 NETWORKED_FLOAT_N(m_nuclideFlags)
429 NETWORKED_VECTOR_N(velocity)
430 NETWORKED_VECTOR_N(avelocity)
431 NETWORKED_FLOAT_N(frame)
432 NETWORKED_FLOAT_N(skin)
433 __int32 effects_net;
434
435 entity m_holdingPlayer;
436 float m_lastHeldTime;
437 float m_spawnTime;
438 vector m_internalMins;
439 vector m_internalMaxs;
440 bool m_modelBrushBased;
441 vector m_editorColor;
442 vector m_modelMins;
443 vector m_modelMaxs;
444 bool _loading;
445
446#ifdef SERVER
447 string m_parent;
448 string m_parent_old;
449 string m_parent_attachment;
450 vector m_parentPosOffs;
451 vector m_parentAngOffs;
452 string m_outputOnRespawn;
453#endif
454};
455
458ncEntity spawnClass(string className, vector desiredPos);
459
460#ifdef SERVER
461bool changeClass(entity target, string className)
462#endif
463
464void sendInput(entity target, string inputName, string dataString, entity activator);
ncEntity is the lowest of the user-accessible entity class.
Definition: Entity.h:75
nonvirtual entity GetOwner(void)
Returns the owner of the entity.
Definition: Entity.qc:865
nonvirtual vector GetMaxs(void)
Returns the bounding box maxs of the entity.
Definition: Entity.qc:934
nonvirtual float GetSpawnTime(void)
Returns the absolute timestamp of when the entity had been spawned.
Definition: Entity.qc:1905
nonvirtual float GetFlags(void)
Returns an engine flags bitfield that the entity associates with.
Definition: Entity.qc:964
nonvirtual void Show(void)
When called, will unhide the entity.
Definition: Entity.qc:1755
nonvirtual vector NearestWallPointForRadius(float)
Returns the nearest point on a wall of this entity within a specified radius.
Definition: Entity.qc:1865
nonvirtual float GetVFlags(void)
Returns a nuclide flags bitfield that the entity associates with.
Definition: Entity.qc:970
nonvirtual __int32 GetEffects(void)
Returns a bitfield of the active effects running on the entity.
Definition: Entity.qc:845
nonvirtual void SetEffects(__int32)
Sets the whole effects field.
Definition: Entity.qc:551
virtual void SetAngles(vector)
Sets the direction the entity is facing in eueler angles.
Definition: Entity.qc:721
nonvirtual vector GetRealMins(void)
Returns the actual bounding box mins of the entity, before having been affected by scale modifiers.
Definition: Entity.qc:940
virtual void SpawnKey(string, string)
This method handles entity key/value pairs on map load.
Definition: Entity.qc:1691
nonvirtual vector GetMins(void)
Returns the bounding box mins of the entity.
Definition: Entity.qc:928
nonvirtual bool Loading(void)
Returns if the entity is still being loaded from the map data.
Definition: Entity.qc:209
nonvirtual void Hide(void)
When called, the entity will stop being rendered on the client.
Definition: Entity.qc:1761
nonvirtual void SetMovetype(float)
Sets the movement type of the entity.
Definition: Entity.qc:619
virtual void OnMapFinishedLoading(void)
Overridable: Called when the level finished loading.
Definition: Entity.qc:1042
nonvirtual float HasFlags(float)
Returns true if the entity has the specified engine flags.
Definition: Entity.qc:976
virtual void postdraw(void)
Client: Run after the rendering of 3D world is complete.
Definition: Entity.qc:293
nonvirtual vector GetAbsoluteMaxs(void)
Returns the absolute bounding box maxs of the entity, instead of being relative to the world position...
Definition: Entity.qc:958
nonvirtual void Event_SpawnDefCenter(string)
Definition: Entity.qc:1507
nonvirtual void AddFlags(float)
Adds one or more engine specific flags to the entity.
Definition: Entity.qc:814
nonvirtual void RemoveFlags(float)
Remove one or more engine specific flags from the entity.
Definition: Entity.qc:819
virtual void ReceiveEvent(float)
Definition: Entity.qc:284
nonvirtual float HasVFlags(float)
Returns true if the entity has the specified, nuclide specific, flags.
Definition: Entity.qc:982
nonvirtual void SetSkin(float)
Sets the skingroup of the entity.
Definition: Entity.qc:595
nonvirtual void TurnTo(float)
Turns to the specified angle.
Definition: Entity.qc:835
nonvirtual bool IsFacing(entity)
Returns either true or false depending on if this entity is facing the entity in question.
Definition: Entity.qc:1885
nonvirtual float GetGravity(void)
Returns the gravity modifier of the entity.
Definition: Entity.qc:898
virtual void Respawn(void)
Server: Called when the entity first spawns or when game-logic requests the entity to return to its o...
Definition: Entity.qc:1025
nonvirtual string GetModel(void)
Returns the name of the 3D model representation of the entity.
Definition: Entity.qc:880
virtual void Precache(void)
Definition: Entity.qc:63
nonvirtual bool SharesPVSWithPlayer(void)
nonvirtual bool HeldByPlayer(void)
Returns whether this entity is being held in the hands of a player.
Definition: Entity.qc:215
nonvirtual bool IntersectsWith(entity)
Returns whether or not the given entity insersects with us.
Definition: Entity.qc:1805
nonvirtual bool Visible(entity)
Returns if the entity is visible by another entity and a field of view of 90 degrees.
Definition: Entity.qc:156
nonvirtual entity GetParent(void)
Returns the entity this is parented to.
nonvirtual int GetSharedID(void)
Returns a unique id between shared entities.
Definition: Entity.qc:2049
nonvirtual bool VisibleVec(vector)
Returns if the entity is visible from a given position and a field of view of 90 degrees.
Definition: Entity.qc:136
virtual void SetOrigin(vector)
Sets the absolute 3D world position of the entity.
Definition: Entity.qc:749
nonvirtual void Spawn(void)
Definition: Entity.qc:44
nonvirtual float GetSkin(void)
Returns the currently equipped skin of the entity.
Definition: Entity.qc:855
nonvirtual void RemoveVFlags(float)
Remove one or more nuclide specific flags from the entity.
Definition: Entity.qc:830
nonvirtual void SetModelindex(float)
Sets the 3D model representation of the entity from an already precached resource id.
Definition: Entity.qc:780
void ncEntity(void)
The constructor.
Definition: Entity.qc:29
nonvirtual void StopSound(float, bool)
Stops a sound sample or soundDef that is playing on the given channel.
Definition: Entity.qc:1849
nonvirtual void UpdateBounds(void)
Call this if you want to update bounding boxes to take angles into account.
Definition: Entity.qc:674
virtual vector GetAngles(void)
Returns the direction the entity is facing in euler angles.
Definition: Entity.qc:904
virtual vector GetUp(void)
Returns a normalized up vector of the entity to more easily test what may be above it.
Definition: Entity.qc:118
virtual void Spawned(void)
Called when the entity is fulled initialized.
Definition: Entity.qc:77
nonvirtual void RestoreAngles(void)
Restore the entity's angles to the value the spawndata contains.
nonvirtual void AddVelocity(vector)
Adds onto the existing velocity.
Definition: Entity.qc:797
nonvirtual void RemoveEffects(__int32)
Removes one or more effects from the entity.
Definition: Entity.qc:808
nonvirtual void SetOwner(entity)
Sets the owner of the entity.
Definition: Entity.qc:601
nonvirtual bool StartSoundDef(string, float, bool)
Plays a soundDef on the entity.
Definition: Entity.qc:1841
virtual void SetModel(string)
Sets the 3D model representation of the entity from a file path and name.
Definition: Entity.qc:767
nonvirtual vector GetRealMaxs(void)
Returns the actual bounding box maxs of the entity, before having been affected by scale modifiers.
Definition: Entity.qc:946
virtual void ReceiveEntity(float, float)
Client: Handles network updates from the server for the associated entity.
Definition: Entity.qc:239
nonvirtual void ClearParent(void)
Call this on an entity to remove the connection to its parent.
nonvirtual float GetSolid(void)
Returns the collision type of the entity.
Definition: Entity.qc:875
virtual vector GetVelocity(void)
Returns the movement velocity of the entity.
Definition: Entity.qc:870
nonvirtual void DisablePlayerCollision(void)
Will disable collision with player entities.
Definition: Entity.qc:2066
virtual void Input(entity, string, string)
Called when we are being prompted by another object/function with an input message.
Definition: Entity.qc:1539
nonvirtual bool IsOnGround(void)
Returns if the entity is aligned to the ground.
Definition: Entity.qc:185
nonvirtual bool IsBrush(void)
Returns whether this entity is a brush or using a sub-model of the level.
Definition: Entity.qc:761
nonvirtual void AddAngularVelocity(vector)
Adds onto the existing angular velocity.
Definition: Entity.qc:791
nonvirtual bool CreatedByMap(void)
Returns if the entity was spawned by the map we're on.
Definition: Entity.qc:203
virtual void Save(float)
Handles saving a copy of this entity to a given filehandle.
Definition: Entity.qc:1049
nonvirtual vector GetSize(void)
Returns the virtual size of the entity.
Definition: Entity.qc:922
virtual void Restore(string, string)
Similar to ncIO::SpawnKey() but for save-game fields.
Definition: Entity.qc:1169
nonvirtual float GetModelindex(void)
Returns the model id of the 3D model representation of the entity.
Definition: Entity.qc:886
virtual void DebugDraw(void)
nonvirtual float GetScale(void)
Returns the scale modifier of the entity.
Definition: Entity.qc:860
virtual vector GetOrigin(void)
Returns the absolute world position of the entity.
Definition: Entity.qc:916
nonvirtual float WaterLevel(void)
Returns the water level the entity is in.
Definition: Entity.qc:130
virtual void ParentUpdate(void)
Called when we need to re-align the entity to our parent entity.
nonvirtual bool IsSolid(void)
Returns if the entity is solid or non-solid.
Definition: Entity.qc:191
nonvirtual void HandleThink(void)
For physics functions only.
Definition: Entity.qc:1873
nonvirtual vector GetAbsoluteMins(void)
Returns the absolute bounding box mins of the entity, instead of being relative to the world position...
Definition: Entity.qc:952
virtual vector GetRight(void)
Returns a normalized right vector of the entity to more easily test what's right next to it.
Definition: Entity.qc:112
nonvirtual void ClearAngles(void)
Unsets any any angle related values within the entity.
nonvirtual void SetVelocity(vector)
Sets the movement velocity of the given entity.
Definition: Entity.qc:607
nonvirtual void SetFrame(float)
Sets the framegroup sequence of the entity.
Definition: Entity.qc:557
nonvirtual void AddVFlags(float)
Adds one or more nuclide specific flags to the entity.
Definition: Entity.qc:825
nonvirtual void SetEyePos(vector)
Sets the relative position of the eyes.
Definition: Entity.qc:658
nonvirtual void SetParentAttachment(string)
Call this to parent the entity to an attachment of another entity.
nonvirtual float DistanceFromYaw(vector)
Returns a normalized value of how far away the target is from the entity's view direction.
Definition: Entity.qc:173
virtual void MakeStatic(void)
Tells the engine to make the entity static, effectively making it inaccessible.
Definition: Entity.qc:1780
virtual vector GetAngularVelocity(void)
Returns the direction the entity is spinning in degrees per second for each axis.
Definition: Entity.qc:910
nonvirtual float GetSpawnAge(void)
Returns the time that's passed since the entity has been spawned.
Definition: Entity.qc:1899
nonvirtual float EntIndex(void)
Returns the unique entity id of the entity.
Definition: Entity.qc:94
nonvirtual void Event_SpawnDefRelative(string, float, float, float)
Definition: Entity.qc:1524
nonvirtual float GetFrame(void)
Returns the currently active framegroup of the entity.
Definition: Entity.qc:850
nonvirtual void SetOriginUnstick(vector)
Same as SetOrigin(), but will push the entity out the ground if needed.
Definition: Entity.qc:755
virtual float SendEntity(entity, float)
Called by the engine whenever we need to send a client an update about this entity.
virtual float predraw(void)
Definition: Entity.qc:228
nonvirtual void SetGravity(float)
Sets the gravitational modifier of the entity.
Definition: Entity.qc:625
nonvirtual vector GetEyePos(void)
Returns the absolute world position of where the eyes are located.
Definition: Entity.qc:664
nonvirtual float GetMovetype(void)
Returns the movement type of the entity.
Definition: Entity.qc:892
virtual void EvaluateEntity(void)
Run each tic after physics are run to determine if we need to send updates over the network.
nonvirtual void AddEffects(__int32)
Appends one or more effects to the entity.
Definition: Entity.qc:803
nonvirtual vector GetNearbySpot(void)
Finds a free spot of an entity near itself of same size.
Definition: Entity.qc:1927
nonvirtual void TurnToPos(vector)
Turns towards the specified position.
Definition: Entity.qc:840
nonvirtual bool IsHidden(void)
Returns if the entity is currently being hidden explicitly.
Definition: Entity.qc:1767
nonvirtual bool HasModel(void)
Returns if this entity has a model set.
Definition: Entity.qc:88
virtual vector GetForward(void)
Returns a normalized forward vector of the entity to more easily test which way it's facing.
Definition: Entity.qc:106
nonvirtual vector WorldSpaceCenter(void)
Returns absolute world coordinates of the center of the entity according to its pivot point.
Definition: Entity.qc:124
nonvirtual bool HasSpawnFlags(float)
Returns if the entity has any spawnflags set.
Definition: Entity.qc:179
nonvirtual void Disappear(void)
When called it'll make the entity uninteractable (but not destroy it).
Definition: Entity.qc:1773
virtual bool CanSpawn(bool clientSide)
Returns if this entity can spawned from the map file.
Definition: Entity.qc:1786
nonvirtual void SetSolid(float)
Sets the collision type of the entity.
Definition: Entity.qc:631
virtual bool AttackByDef(string, bool)
Will read from the named def to perform an attack.
Definition: Entity.qc:2035
nonvirtual entity GetGroundEntity(void)
Returns the entity we're standing on.
Definition: Entity.qc:197
nonvirtual void Transport(vector, vector)
Move the entity to a new position, with updated angles.
Definition: Entity.qc:1911
nonvirtual bool DropToFloor(void)
When called, will drop the entity down onto the surface it's hovering over.
Definition: Entity.qc:100
nonvirtual bool StartSound(string, float, float, bool)
Plays a sound sample directly onto the entity.
Definition: Entity.qc:1818
nonvirtual void SetScale(float)
Sets the scale of the entity.
Definition: Entity.qc:637
nonvirtual vector GetViewAngle(void)
Returns an euler angle of where the entity is 'looking' at.
Definition: Entity.qc:648
nonvirtual bool IsFacingPosition(vector)
Returns either true or false depending on if this entity is facing a position in question.
Definition: Entity.qc:1892
nonvirtual void SetTouch(void())
Overrides the touch function of a the entity to the specified function.
Definition: Entity.qc:613
nonvirtual void ClearVelocity(void)
When called, will clear anything related to physical movement on the entity.
Definition: Entity.qc:988
nonvirtual void SetAngularVelocity(vector)
Sets the angular velocity of the entity in degrees per second on each axis.
Definition: Entity.qc:727
nonvirtual void EnablePlayerCollision(void)
Will enable collision with players, which is the default.
Definition: Entity.qc:2059
virtual void ReloadVideoResources(void)
Client: Called when video resources need to be allocated or reloaded for the entity.
Definition: Entity.qc:222
nonvirtual bool WithinBounds(entity)
Returns whether or not we are fully within the bounds of a given entity.
Definition: Entity.qc:1792
nonvirtual void SetSize(vector, vector)
Sets the bounding box size of the entity.
Definition: Entity.qc:733
nonvirtual void ForceNetworkUpdate(void)
Forces the entity to re-network updates to all clients.
nonvirtual void SetParent(string)
Call this to parent the entity to another entity.
nonvirtual void UseBy(entity)
Simulates the press of the use/activate key, with the passed entity being the activator.
ncTrigger handles all the non-input as well as Legacy (Quake, GoldSource) style trigger behaviour.
Definition: Trigger.h:77
typedef enumflags
Defines the valid alignment flags for text fields.
Definition: font.h:37
float flags
Definition: soundDef.h:114