]> git.xonotic.org Git - xonotic/darkplaces.git/blob - pmove.h
pmove: Initial implementation of pmove.h. Stub some structs. To be continued(?)
[xonotic/darkplaces.git] / pmove.h
1 #ifndef PMOVE_H
2 #define PMOVE_H
3
4 typedef struct playermove_s
5 {
6         // entity to be ignored for movement
7         struct prvm_edict_s *self;
8         // position
9         vec3_t origin;
10         vec3_t velocity;
11         // current bounding box (different if crouched vs standing)
12         vec3_t mins;
13         vec3_t maxs;
14         // currently on the ground
15         qbool onground;
16         // currently crouching
17         qbool crouched;
18         // what kind of water (SUPERCONTENTS_LAVA for instance)
19         int watertype;
20         // how deep
21         waterlevel_t waterlevel;
22         // weird hacks when jumping out of water
23         // (this is in seconds and counts down to 0)
24         float waterjumptime;
25
26         // user command
27         usercmd_t cmd;
28 }
29 playermove_t;
30
31 typedef struct movevars_s
32 {
33         unsigned int moveflags;
34         float wallfriction;
35         float waterfriction;
36         float friction;
37         float timescale;
38         float gravity;
39         float stopspeed;
40         float maxspeed;
41         float spectatormaxspeed;
42         float accelerate;
43         float airaccelerate;
44         float wateraccelerate;
45         float entgravity;
46         float jumpvelocity;
47         float edgefriction;
48         float maxairspeed;
49         float stepheight;
50         float airaccel_qw;
51         float airaccel_qw_stretchfactor;
52         float airaccel_sideways_friction;
53         float airstopaccelerate;
54         float airstrafeaccelerate;
55         float maxairstrafespeed;
56         float airstrafeaccel_qw;
57         float aircontrol;
58         float aircontrol_power;
59         float aircontrol_penalty;
60         float warsowbunny_airforwardaccel;
61         float warsowbunny_accel;
62         float warsowbunny_topspeed;
63         float warsowbunny_turnaccel;
64         float warsowbunny_backtosideratio;
65         float ticrate;
66         float airspeedlimit_nonqw;
67 } movevars_t;
68
69
70 #endif