Nuclide
Software Development Kit for id Technology
NSRagdoll.h
1/*
2 * Copyright (c) 2016-2022 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
22{
23public:
24 void NSRagdoll(void);
25
26 nonvirtual void CreateRagdoll(void);
27
28 virtual void OnRemoveEntity(void);
29
30#ifdef SERVER
31 virtual void EvaluateEntity(void);
32 virtual float SendEntity(entity,float);
33#endif
34
35#ifdef CLIENT
36 virtual void ReceiveEntity(float,float);
37 virtual float predraw(void);
38#endif
39
40
41private:
42 float m_morphTime;
43};
44
45
46#ifdef CLIENT
47void NSRagdoll_Create(string modelFile);
48#endif
Ragdoll master entity.
Definition: NSRagdoll.h:22
virtual void EvaluateEntity(void)
Run each tic after physics are run to determine if we need to send updates over the network.
Definition: NSRagdoll.qc:69
virtual float SendEntity(entity, float)
Called by the engine whenever we need to send a client an update about this entity.
Definition: NSRagdoll.qc:121
void NSRagdoll(void)
Definition: NSRagdoll.qc:18
virtual float predraw(void)
nonvirtual void CreateRagdoll(void)
Definition: NSRagdoll.qc:41
virtual void ReceiveEntity(float, float)
Client: Handles network updates from the server for the associated entity.
virtual void OnRemoveEntity(void)
Handles what happens before the entity gets removed from the client game.
Definition: NSRagdoll.qc:24
This entity represents an NSRenderableEntity with interactive surface properties.
Definition: NSSurfacePropEntity.h:52