Nuclide
Software Development Kit for id Tech
NSEntity.h
Go to the documentation of this file.
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
52{
53private:
54 float m_flSpawnTime;
55 bool m_bHidden;
56 vector m_vecMins;
57 vector m_vecMaxs;
59 vector m_oldOrigin;
60 vector m_oldAngle;
61 string m_oldModel;
62 float m_oldSolid;
63 bool m_bIsBrush;
64 vector m_vecEditorColor;
65
68 PREDICTED_FLOAT_N(modelindex)
73 PREDICTED_FLOAT_N(movetype)
77 PREDICTED_VECTOR_N(velocity)
78 PREDICTED_VECTOR_N(avelocity)
79
80#ifdef SERVER
81 string m_parent;
82 string m_parent_old;
83 string m_parent_attachment;
86 PREDICTED_FLOAT_N(effects)
87#endif
88
89public:
92 void NSEntity(void);
93
94#ifdef CLIENT
96 virtual void ReceiveEntity(float,float);
97
99 virtual void postdraw(void);
100
102 virtual void RendererRestarted(void);
103#endif
104
105 /* overrides */
106 virtual void SpawnKey(string,string);
107 virtual void Spawned(void);
108
110 virtual void OnRemoveEntity(void);
111
115 virtual void MakeStatic(void);
116
119 virtual bool CanSpawn(bool clientSide);
120
121#ifdef SERVER
122 virtual void Respawn(void);
123 virtual void Input(entity,string,string);
124 virtual void Save(float);
125 virtual void Restore(string,string);
126 virtual void ParentUpdate(void);
127
128 /* Server-side rendering function. Expensive, but useful. */
129 virtual void DebugDraw(void);
130
132 virtual void EvaluateEntity(void);
133
135 virtual float SendEntity(entity,float);
136
138 nonvirtual entity GetParent(void);
139
141 nonvirtual void SetParent(string);
142
144 nonvirtual void SetParentAttachment(string);
145
147 nonvirtual void ClearParent(void);
148
150 nonvirtual void RestoreAngles(void);
151
153 nonvirtual void ClearAngles(void);
154
156 nonvirtual void UseBy(entity);
157
159 nonvirtual void ForceNetworkUpdate(void);
160#endif
161
162 /* sets */
164 nonvirtual void SetEffects(float);
166 nonvirtual void AddEffects(effects_t);
168 nonvirtual void RemoveEffects(effects_t);
170 nonvirtual void SetFrame(float);
172 nonvirtual void SetSkin(float);
174 nonvirtual void SetScale(float);
176 nonvirtual void SetOwner(entity);
178 nonvirtual void SetVelocity(vector);
179
181 nonvirtual void AddAngularVelocity(vector);
183 nonvirtual void AddVelocity(vector);
184
187 nonvirtual void SetTouch(void());
189 nonvirtual void SetSendFlags(float);
191 nonvirtual void SetSolid(float);
193 virtual void SetModel(string);
195 nonvirtual void SetModelindex(float);
197 nonvirtual void SetMovetype(float);
199 nonvirtual void SetGravity(float);
201 nonvirtual void SetAngles(vector);
203 nonvirtual void SetAngularVelocity(vector);
205 nonvirtual void SetOrigin(vector);
208 nonvirtual void SetSize(vector,vector);
210 nonvirtual void AddFlags(float);
212 nonvirtual void RemoveFlags(float);
214 nonvirtual void AddVFlags(float);
216 nonvirtual void RemoveVFlags(float);
217
219 nonvirtual void TurnTo(float);
221 nonvirtual void TurnToPos(vector);
222
225 nonvirtual void SetThink(void());
229 nonvirtual void SetNextThink(float);
234 nonvirtual void ScheduleThink(void(void),float);
235
236 /* gets */
238 nonvirtual vector GetSpawnOrigin(void);
240 nonvirtual vector GetSpawnAngles(void);
242 nonvirtual string GetSpawnModel(void);
244 nonvirtual float GetEffects(void);
246 nonvirtual float GetFrame(void);
248 nonvirtual float GetSkin(void);
250 nonvirtual float GetScale(void);
252 nonvirtual entity GetOwner(void);
254 nonvirtual vector GetVelocity(void);
256 nonvirtual float GetSolid(void);
258 nonvirtual string GetModel(void);
260 nonvirtual float GetModelindex(void);
262 nonvirtual float GetMovetype(void);
264 nonvirtual float GetGravity(void);
266 nonvirtual vector GetAngles(void);
268 nonvirtual vector GetAngularVelocity(void);
270 nonvirtual vector GetOrigin(void);
272 nonvirtual vector GetMins(void);
274 nonvirtual vector GetMaxs(void);
277 nonvirtual vector GetRealMins(void);
280 nonvirtual vector GetRealMaxs(void);
283 nonvirtual vector GetAbsoluteMins(void);
286 nonvirtual vector GetAbsoluteMaxs(void);
288 nonvirtual float GetFlags(void);
290 nonvirtual float HasFlags(float);
292 nonvirtual float GetVFlags(void);
294 nonvirtual float HasVFlags(float);
297 nonvirtual float GetNextThinkTime(void);
299 nonvirtual bool IsThinking(void);
301 nonvirtual void ReleaseThink(void);
303 nonvirtual void ThinkBusy(float);
305 nonvirtual void ClearVelocity(void);
306
307 /* drawing related */
309 nonvirtual void Show(void);
311 nonvirtual void Hide(void);
313 nonvirtual bool IsHidden(void);
315 nonvirtual bool IsSolid(void);
316
319 nonvirtual void Disappear(void);
321 nonvirtual void Destroy(void);
323 nonvirtual void UpdateBounds(void);
324
325 /* useful methods, (some) based on GMod's API */
327 nonvirtual float EntIndex(void);
329 nonvirtual bool DropToFloor(void);
331 nonvirtual vector GetForward(void);
333 nonvirtual vector GetRight(void);
335 nonvirtual vector GetUp(void);
337 nonvirtual vector WorldSpaceCenter(void);
347 nonvirtual float WaterLevel(void);
348
350 nonvirtual bool Visible(entity);
352 nonvirtual bool VisibleVec(vector);
354 nonvirtual float DistanceFromYaw(vector);
356 nonvirtual bool HasSpawnFlags(float);
358 nonvirtual bool IsOnGround(void);
362 nonvirtual entity GetGroundEntity(void);
364 nonvirtual bool CreatedByMap(void);
366 nonvirtual bool WithinBounds(entity);
368 nonvirtual bool IntersectsWith(entity);
369
370 /* useful methods, (some) based on Doom 3's API */
373 nonvirtual bool StartSound(string,float,float,bool);
376 nonvirtual bool StartSoundDef(string,float,bool);
378 nonvirtual void StopSound(float,bool);
379
382 nonvirtual vector NearestWallPointForRadius(float);
383
387 nonvirtual void HandleThink(void);
388
390 nonvirtual bool IsFacing(entity);
391
393 nonvirtual bool IsFacingPosition(vector);
394
396 nonvirtual float GetSpawnAge(void);
397
399 nonvirtual float GetSpawnTime(void);
401 nonvirtual void Transport(vector, vector);
402
404 nonvirtual void Relink(void);
405
407 nonvirtual vector GetNearbySpot(void);
408};
409
412NSEntity_SpawnClass(string className, vector spawnOrigin, vector spawnAngles)
413{
414 entity oldSelf;
415 NSEntity output = (NSEntity)spawn();
416 oldSelf = self;
417 self = output;
418 callfunction(strcat("spawnfunc_", className));
419 output.m_oldOrigin = spawnOrigin;
420 output.m_oldAngle = spawnAngles;
421 output.angles = spawnAngles;
422 setorigin(output, spawnOrigin);
423 self = oldSelf;
424 return output;
425}
NSEntity NSEntity_SpawnClass(string className, vector spawnOrigin, vector spawnAngles)
Will spawn a given classname in the type of an NSEntity at a given position and angle.
Definition: NSEntity.h:412
typedef enumflags
Bitfield enumeration for NSEntity its SendFlags field.
Definition: NSEntity.h:23
NSEntity is the lowest of the user-accessible entity class.
Definition: NSEntity.h:52
nonvirtual void ScheduleThink(void(void), float)
Schedules a think timer.
Definition: NSEntity.qc:684
nonvirtual vector GetOrigin(void)
Returns the absolute world position of the entity.
Definition: NSEntity.qc:776
nonvirtual void SetOrigin(vector)
Sets the absolute 3D world position of the entity.
Definition: NSEntity.qc:587
nonvirtual bool Visible(entity)
Returns if the entity is visible by another entity and a field of view of 90 degrees.
Definition: NSEntity.qc:120
nonvirtual void Destroy(void)
When called, will remove the entity from the game entirely.
Definition: NSEntity.qc:1131
nonvirtual vector GetRealMins(void)
Returns the actual bounding box mins of the entity, before having been affected by scale modifiers.
Definition: NSEntity.qc:794
nonvirtual vector GetRight(void)
Returns a normalized right vector of the entity to more easily test what's right next to it.
Definition: NSEntity.qc:78
nonvirtual void SetTouch(void())
Overrides the touch function of a the entity to the specified function.
Definition: NSEntity.qc:469
nonvirtual bool IsThinking(void)
Returns whether or not we're currently expecting to think any time soon.
Definition: NSEntity.qc:848
nonvirtual float EntIndex(void)
Returns the unique entity id of the entity.
Definition: NSEntity.qc:60
nonvirtual float HasVFlags(float)
Returns true if the entity has the specified, nuclide specific, flags.
Definition: NSEntity.qc:836
nonvirtual void AddVFlags(float)
Adds one or more nuclide specific flags to the entity.
Definition: NSEntity.qc:645
virtual void MakeStatic(void)
Tells the engine to make the entity static, effectively making it inaccessible.
Definition: NSEntity.qc:1169
virtual void ParentUpdate(void)
Called when we need to re-align the entity to our parent entity.
nonvirtual void ReleaseThink(void)
When called, will unset anything related to ongoing think operations.
Definition: NSEntity.qc:854
nonvirtual void SetSize(vector, vector)
Sets the bounding box size of the entity.
Definition: NSEntity.qc:572
nonvirtual float GetFlags(void)
Returns an engine flags bitfield that the entity associates with.
Definition: NSEntity.qc:818
nonvirtual void Disappear(void)
When called it'll make the entity uninteractable (but not destroy it).
Definition: NSEntity.qc:1162
nonvirtual float GetSkin(void)
Returns the currently equipped skin of the entity.
Definition: NSEntity.qc:715
virtual void Restore(string, string)
Similar to ::SpawnKey but for save-game fields.
Definition: NSEntity.qc:910
nonvirtual string GetSpawnModel(void)
Returns the 3D model representation of the entity of when it originally spawned.
Definition: NSEntity.qc:700
nonvirtual void Transport(vector, vector)
Move the entity to a new position, with updated angles.
Definition: NSEntity.qc:1300
nonvirtual float GetNextThinkTime(void)
Returns an absolute value of when the entity will be think again.
Definition: NSEntity.qc:842
nonvirtual float GetScale(void)
Returns the scale modifier of the entity.
Definition: NSEntity.qc:720
nonvirtual vector GetAbsoluteMins(void)
Returns the absolute bounding box mins of the entity, instead of being relative to the world position...
Definition: NSEntity.qc:806
nonvirtual bool IsFacing(entity)
Returns either true or false depending on if this entity is facing the entity in question.
Definition: NSEntity.qc:1274
nonvirtual void SetNextThink(float)
Sets the next think timer of the entity.
Definition: NSEntity.qc:670
nonvirtual bool DropToFloor(void)
When called, will drop the entity down onto the surface it's hovering over.
Definition: NSEntity.qc:66
nonvirtual void UseBy(entity)
Simulates the press of the use/activate key, with the passed entity being the activator.
nonvirtual bool IsOnGround(void)
Returns if the entity is aligned to the ground.
Definition: NSEntity.qc:149
nonvirtual void TurnTo(float)
Turns to the specified angle.
Definition: NSEntity.qc:655
virtual void Respawn(void)
Server: Called when the entity first spawns or when game-logic requests the entity to return to its o...
Definition: NSEntity.qc:877
nonvirtual float GetMovetype(void)
Returns the movement type of the entity.
Definition: NSEntity.qc:752
nonvirtual void SetOwner(entity)
Sets the owner of the entity.
Definition: NSEntity.qc:457
nonvirtual void SetAngularVelocity(vector)
Sets the angular velocity of the entity in degrees per second on each axis.
Definition: NSEntity.qc:566
virtual void Input(entity, string, string)
Called when we are being prompted by another object/function with an input message.
Definition: NSEntity.qc:971
nonvirtual vector GetAngularVelocity(void)
Returns the direction the entity is spinning in degrees per second for each axis.
Definition: NSEntity.qc:770
nonvirtual void AddFlags(float)
Adds one or more engine specific flags to the entity.
Definition: NSEntity.qc:634
nonvirtual float GetGravity(void)
Returns the gravity modifier of the entity.
Definition: NSEntity.qc:758
nonvirtual void SetGravity(float)
Sets the gravitational modifier of the entity.
Definition: NSEntity.qc:492
nonvirtual float GetSpawnAge(void)
Returns the time that's passed since the entity has been spawned.
Definition: NSEntity.qc:1288
nonvirtual bool StartSoundDef(string, float, bool)
Plays a soundDef on the entity.
Definition: NSEntity.qc:1230
nonvirtual float GetSolid(void)
Returns the collision type of the entity.
Definition: NSEntity.qc:735
nonvirtual void RemoveEffects(effects_t)
Removes one or more effects from the entity.
Definition: NSEntity.qc:628
nonvirtual vector GetMins(void)
Returns the bounding box mins of the entity.
Definition: NSEntity.qc:782
nonvirtual vector GetForward(void)
Returns a normalized forward vector of the entity to more easily test which way it's facing.
Definition: NSEntity.qc:72
virtual void postdraw(void)
Client: Run after the rendering of 3D world is complete.
Definition: NSEntity.qc:220
virtual void EvaluateEntity(void)
Run each tic after physics are run to determine if we need to send updates over the network.
nonvirtual bool HasSpawnFlags(float)
Returns if the entity has any spawnflags set.
Definition: NSEntity.qc:143
nonvirtual void SetSkin(float)
Sets the skingroup of the entity.
Definition: NSEntity.qc:451
nonvirtual vector GetVelocity(void)
Returns the movement velocity of the entity.
Definition: NSEntity.qc:730
nonvirtual void AddVelocity(vector)
Adds onto the existing velocity.
Definition: NSEntity.qc:617
nonvirtual void SetSendFlags(float)
Overrides the field that's used to determine which information should be networked.
Definition: NSEntity.qc:478
nonvirtual void ClearVelocity(void)
When called, will clear anything related to physical movement on the entity.
Definition: NSEntity.qc:870
nonvirtual void SetSolid(float)
Sets the collision type of the entity.
Definition: NSEntity.qc:498
nonvirtual void ForceNetworkUpdate(void)
Forces the entity to re-network updates to all clients.
nonvirtual void SetMovetype(float)
Sets the movement type of the entity.
Definition: NSEntity.qc:486
virtual void RendererRestarted(void)
Client: Called when video resources need to be allocated or reloaded for the entity.
Definition: NSEntity.qc:174
nonvirtual string GetModel(void)
Returns the name of the 3D model representation of the entity.
Definition: NSEntity.qc:740
void NSEntity(void)
The constructor.
Definition: NSEntity.qc:29
nonvirtual float HasFlags(float)
Returns true if the entity has the specified engine flags.
Definition: NSEntity.qc:830
nonvirtual void StopSound(float, bool)
Stops a sound sample or soundDef that is playing on the given channel.
Definition: NSEntity.qc:1238
virtual void OnRemoveEntity(void)
Handles what happens before the entity gets removed from the client game.
Definition: NSEntity.qc:1126
virtual void SpawnKey(string, string)
This method handles entity key/value pairs on map load.
Definition: NSEntity.qc:1065
nonvirtual vector GetMaxs(void)
Returns the bounding box maxs of the entity.
Definition: NSEntity.qc:788
nonvirtual bool IsHidden(void)
Returns if the entity is currently being hidden explicitly.
Definition: NSEntity.qc:1156
nonvirtual vector GetNearbySpot(void)
Finds a free spot of an entity near itself of same size.
Definition: NSEntity.qc:1321
nonvirtual void SetModelindex(float)
Sets the 3D model representation of the entity from an already precached resource id.
Definition: NSEntity.qc:601
nonvirtual void SetThink(void())
Overrides the Think function of the entity.
Definition: NSEntity.qc:665
virtual float SendEntity(entity, float)
Called by the engine whenever we need to send a client an update about this entity.
nonvirtual float GetEffects(void)
Returns a bitfield of the active effects running on the entity.
Definition: NSEntity.qc:705
nonvirtual float WaterLevel(void)
Returns the water level the entity is in.
Definition: NSEntity.qc:96
nonvirtual void UpdateBounds(void)
Call this if you want to update bounding boxes to take angles into account.
Definition: NSEntity.qc:514
nonvirtual void AddEffects(effects_t)
Appends one or more effects to the entity.
Definition: NSEntity.qc:623
nonvirtual void SetEffects(float)
Sets the whole effects field.
Definition: NSEntity.qc:403
nonvirtual vector GetAngles(void)
Returns the direction the entity is facing in euler angles.
Definition: NSEntity.qc:764
nonvirtual float GetSpawnTime(void)
Returns the absolute timestamp of when the entity had been spawned.
Definition: NSEntity.qc:1294
nonvirtual void RestoreAngles(void)
Restore the entity's angles to the value they spawned with.
nonvirtual bool IsFacingPosition(vector)
Returns either true or false depending on if this entity is facing a position in question.
Definition: NSEntity.qc:1281
nonvirtual bool WithinBounds(entity)
Returns whether or not we are fully within the bounds of a given entity.
Definition: NSEntity.qc:1181
virtual void DebugDraw(void)
nonvirtual vector GetRealMaxs(void)
Returns the actual bounding box maxs of the entity, before having been affected by scale modifiers.
Definition: NSEntity.qc:800
nonvirtual vector GetSpawnOrigin(void)
Returns the world coordinates of where the entity originally spawned.
Definition: NSEntity.qc:690
virtual void ReceiveEntity(float, float)
Client: Handles network updates from the server for the associated entity.
Definition: NSEntity.qc:180
nonvirtual float GetFrame(void)
Returns the currently active framegroup of the entity.
Definition: NSEntity.qc:710
nonvirtual void RemoveFlags(float)
Remove one or more engine specific flags from the entity.
Definition: NSEntity.qc:639
nonvirtual void SetFrame(float)
Sets the framegroup sequence of the entity.
Definition: NSEntity.qc:409
virtual bool CanSpawn(bool clientSide)
Returns if this entity can spawned from the map file.
Definition: NSEntity.qc:1175
nonvirtual vector GetAbsoluteMaxs(void)
Returns the absolute bounding box maxs of the entity, instead of being relative to the world position...
Definition: NSEntity.qc:812
nonvirtual void SetParent(string)
Call this to parent the entity to another entity.
nonvirtual vector GetSpawnAngles(void)
Returns the direction the entity was facing when it originally spawned.
Definition: NSEntity.qc:695
nonvirtual void Hide(void)
When called, the entity will stop being rendered on the client.
Definition: NSEntity.qc:1150
virtual void Save(float)
Handles saving a copy of this entity to a given filehandle.
Definition: NSEntity.qc:887
nonvirtual void ThinkBusy(float)
When called, will make the entity think busy for the specified amount of time.
Definition: NSEntity.qc:861
virtual void Spawned(void)
Called when the entity is fulled initialized.
Definition: NSEntity.qc:37
nonvirtual vector WorldSpaceCenter(void)
Returns absolute world coordinates of the center of the entity according to its pivot point.
Definition: NSEntity.qc:90
nonvirtual bool CreatedByMap(void)
Returns if the entity was spawned by the map we're on.
Definition: NSEntity.qc:167
nonvirtual void RemoveVFlags(float)
Remove one or more nuclide specific flags from the entity.
Definition: NSEntity.qc:650
nonvirtual vector NearestWallPointForRadius(float)
Returns the nearest point on a wall of this entity within a specified radius.
Definition: NSEntity.qc:1254
nonvirtual entity GetOwner(void)
Returns the owner of the entity.
Definition: NSEntity.qc:725
nonvirtual void SetScale(float)
Sets the scale of the entity.
Definition: NSEntity.qc:504
nonvirtual void SetParentAttachment(string)
Call this to parent the entity to an attachment of another entity.
nonvirtual float GetModelindex(void)
Returns the model id of the 3D model representation of the entity.
Definition: NSEntity.qc:746
nonvirtual void ClearParent(void)
Call this on an entity to remove the connection to its parent.
nonvirtual entity GetGroundEntity(void)
Returns the entity we're standing on.
Definition: NSEntity.qc:161
nonvirtual float DistanceFromYaw(vector)
Returns a normalized value of how far away the target is from the entity's view direction.
Definition: NSEntity.qc:137
nonvirtual void Relink(void)
Relink the entity against the world.
Definition: NSEntity.qc:1315
nonvirtual bool IsSolid(void)
Returns if the entity is solid or non-solid.
Definition: NSEntity.qc:155
nonvirtual bool StartSound(string, float, float, bool)
Plays a sound sample directly onto the entity.
Definition: NSEntity.qc:1207
nonvirtual float GetVFlags(void)
Returns a nuclide flags bitfield that the entity associates with.
Definition: NSEntity.qc:824
nonvirtual vector GetUp(void)
Returns a normalized up vector of the entity to more easily test what may be above it.
Definition: NSEntity.qc:84
nonvirtual bool IntersectsWith(entity)
Returns whether or not the given entity insersects with us.
Definition: NSEntity.qc:1194
nonvirtual void TurnToPos(vector)
Turns towards the specified position.
Definition: NSEntity.qc:660
nonvirtual void SetAngles(vector)
Sets the direction the entity is facing in eueler angles.
Definition: NSEntity.qc:560
nonvirtual bool VisibleVec(vector)
Returns if the entity is visible from a given position and a field of view of 90 degrees.
Definition: NSEntity.qc:102
nonvirtual void AddAngularVelocity(vector)
Adds onto the existing angular velocity.
Definition: NSEntity.qc:611
virtual void SetModel(string)
Sets the 3D model representation of the entity from a file path and name.
Definition: NSEntity.qc:592
nonvirtual void Show(void)
When called, will unhide the entity.
Definition: NSEntity.qc:1144
nonvirtual entity GetParent(void)
Returns the entity this is parented to.
nonvirtual void HandleThink(void)
For physics functions only.
Definition: NSEntity.qc:1262
nonvirtual void SetVelocity(vector)
Sets the movement velocity of the given entity.
Definition: NSEntity.qc:463
nonvirtual void ClearAngles(void)
Unsets any any angle related values within the entity.
NSTrigger handles all the non-input as well as Legacy (Quake, GoldSource) style trigger behaviour.
Definition: NSTrigger.h:71
effects_t
Definition: effects.h:19
float vv_flags
Definition: flags.h:35
entity self
Definition: fteextensions.qc:274
vector(vector) normalize
entity() spawn
#define PREDICTED_FLOAT_N(x)
Definition: defs.h:38
#define PREDICTED_VECTOR_N(x)
Definition: defs.h:39
float flags
Definition: sound.h:29
noref vector mins
Definition: ui_3dview.qc:19
noref vector angles
Definition: ui_3dview.qc:18
noref float frame
Definition: ui_3dview.qc:22
noref vector maxs
Definition: ui_3dview.qc:20
noref vector origin
Definition: ui_3dview.qc:17