7 #include "Quaternions.h"
11 #include "Constants.h"
21 #define attacktypecutoff 4
22 #define playercontrolled 5
24 #define getweapontype 7
25 #define pathfindtype 8
54 int oldcurrentanimation;
55 int oldtargetanimation;
59 float parriedrecently;
63 int lastattack,lastattack2,lastattack3;
65 XYZ currentoffset,targetoffset,offset;
83 float unconscioustime;
101 bool rabbitkickenabled;
110 float damagetolerance;
112 float permanentdamage;
113 float superpermanentdamage; float lastcollide;
131 float texupdatedelay;
133 float headrotation,headrotation2;
134 float targetheadrotation,targetheadrotation2;
145 float normalsupdatedelay;
150 bool forwardstogglekeydown;
155 bool jumptogglekeydown;
157 bool crouchtogglekeydown;
159 bool drawtogglekeydown;
161 bool throwtogglekeydown;
167 float crouchkeydowntime;
168 float jumpkeydowntime;
177 float losupdatedelay;
185 float whichdirectiondelay;
186 bool avoidsomething; XYZ avoidwhere;
187 float blooddimamount;
194 float lefthandmorphness;
195 float righthandmorphness;
197 float chestmorphness;
199 float targetlefthandmorphness;
200 float targetrighthandmorphness;
201 float targetheadmorphness;
202 float targetchestmorphness;
203 float targettailmorphness;
204 int lefthandmorphstart,lefthandmorphend;
205 int righthandmorphstart,righthandmorphend;
206 int headmorphstart,headmorphend;
207 int chestmorphstart,chestmorphend;
208 int tailmorphstart,tailmorphend;
210 float weaponmissdelay;
211 float highreversaldelay;
212 float lowreversaldelay;
213 float nocollidedelay;
226 float protectionhead;
227 float protectionhigh;
237 char clothes[10][256];
238 float clothestintr[10];
239 float clothestintg[10];
240 float clothestintb[10];
246 float onfiredelay; float burnt;
250 float updatestuffdelay;
258 int weaponstuckwhere;
263 int waypointtype[90];
265 bool hastempwaypoint;
271 XYZ finalfinaltarget;
273 int finalpathfindpoint;
274 int targetpathfindpoint;
275 int lastpathfindpoint;
276 int lastpathfindpoint2;
277 int lastpathfindpoint3;
278 int lastpathfindpoint4;
289 float runninghowlong; int lastoccluded;
294 float neckspurtdelay;
295 float neckspurtparticledelay;
296 float neckspurtamount;
299 bool rabbitkickragdoll;
304 Animation tempanimation;
310 void DoBlood(float howmuch, int which);
311 void DoBloodBig(float howmuch, int which);
312 bool DoBloodBigWhere(float howmuch, int which, XYZ where);
353 void DoDamage(float howmuch);
355 void DoMipmaps(int howmanylevels, float startx, float endx, float starty, float endy);
356 int SphereCheck(XYZ *p1,float radius, XYZ *p, XYZ *move, float *rotate, Model *model);
358 void Puff(int whichlabel);
359 void FootLand(int which, float opacity);
362 void RagDoll(bool checkcollision);
363 HitStruct BulletCollideWithPlayer(XYZ start, XYZ end);