16constexpr int maxents = 10000;
17constexpr int crouchtime = 200;
18constexpr float crouchheight = 0.75f;
19constexpr int maxanimparts = 3;
36 Anim_Clamp = (1 << 10),
37 Anim_Reverse = (1 << 11),
38 Anim_Start = (Anim_Loop | Anim_Clamp),
39 Anim_End = (Anim_Loop | Anim_Clamp | Anim_Reverse),
42 Anim_Reuse = 0xFFFFFF,
43 Anim_NoSkin = (1 << 24),
44 Anim_SetTime = (1 << 25),
45 Anim_FullBright = (1 << 26),
46 Anim_NoRender = (1 << 27),
47 Anim_Ragdoll = (1 << 28),
48 Anim_SetSpeed = (1 << 29),
49 Anim_NoPitch = (1 << 30),
50 Anim_Flags = 0xFF000000,
58 EngineEnt_Playerstart,
63 EngineEnt_GameSpecific,
68 PhysEntState_Float = 0,
74 PhysEntState_StepDown,
84 short attr1, attr2, attr3, attr4,
attr5;
100 void setspawned(
bool val);
114 float yaw, pitch, roll;
118 float xradius, yradius, zmargin;
126 char move, strafe, crouching;
146 vec feetpos(
float offset = 0)
const;
147 vec headpos(
float offset = 0)
const;
148 bool crouched()
const;
154struct modelattach final
156 const char *tag, *name;
162 modelattach(
const char *tag,
const char *name,
int anim = -1,
int basetime = 0);
163 modelattach(
const char *tag,
vec *pos);
171 int anim, frame, range, basetime;
176 bool operator==(
const animinfo &o)
const;
177 bool operator!=(
const animinfo &o)
const;
183struct animinterpinfo final
196struct dynent : physent
204 ragdolldata *ragdoll;
213 vec abovehead()
const;
description of a character's animation
Definition ents.h:170
used for animation blending of animated characters
Definition ents.h:184
bool k_down
Definition ents.h:201
bool k_right
Definition ents.h:199
bool k_left
Definition ents.h:198
bool k_up
Definition ents.h:200
Entity data capable of being saved to disk.
Definition ents.h:82
vec o
Definition ents.h:83
short attr5
Definition ents.h:84
uchar type
Definition ents.h:85
vec floor
Definition ents.h:119
vec falling
Definition ents.h:112
float aboveeye
Definition ents.h:117
bool blocked
Definition ents.h:140
vec newpos
Definition ents.h:113
float maxspeed
Definition ents.h:115
uchar type
Definition ents.h:137
uchar editstate
Definition ents.h:129
uchar collidetype
Definition ents.h:138
uchar physstate
Definition ents.h:128
three dimensional Cartesian vector object
Definition geom.h:207