]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
pmove: Initial implementation of pmove.h. Stub some structs. To be continued(?)
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 2 Oct 2020 01:56:52 +0000 (01:56 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 2 Oct 2020 01:56:52 +0000 (01:56 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12986 d7cf8633-e32d-0410-b094-e92efae38249

pmove.h [new file with mode: 0644]

diff --git a/pmove.h b/pmove.h
new file mode 100644 (file)
index 0000000..cd709d3
--- /dev/null
+++ b/pmove.h
@@ -0,0 +1,70 @@
+#ifndef PMOVE_H
+#define PMOVE_H
+
+typedef struct playermove_s
+{
+       // entity to be ignored for movement
+       struct prvm_edict_s *self;
+       // position
+       vec3_t origin;
+       vec3_t velocity;
+       // current bounding box (different if crouched vs standing)
+       vec3_t mins;
+       vec3_t maxs;
+       // currently on the ground
+       qbool onground;
+       // currently crouching
+       qbool crouched;
+       // what kind of water (SUPERCONTENTS_LAVA for instance)
+       int watertype;
+       // how deep
+       waterlevel_t waterlevel;
+       // weird hacks when jumping out of water
+       // (this is in seconds and counts down to 0)
+       float waterjumptime;
+
+       // user command
+       usercmd_t cmd;
+}
+playermove_t;
+
+typedef struct movevars_s
+{
+       unsigned int moveflags;
+       float wallfriction;
+       float waterfriction;
+       float friction;
+       float timescale;
+       float gravity;
+       float stopspeed;
+       float maxspeed;
+       float spectatormaxspeed;
+       float accelerate;
+       float airaccelerate;
+       float wateraccelerate;
+       float entgravity;
+       float jumpvelocity;
+       float edgefriction;
+       float maxairspeed;
+       float stepheight;
+       float airaccel_qw;
+       float airaccel_qw_stretchfactor;
+       float airaccel_sideways_friction;
+       float airstopaccelerate;
+       float airstrafeaccelerate;
+       float maxairstrafespeed;
+       float airstrafeaccel_qw;
+       float aircontrol;
+       float aircontrol_power;
+       float aircontrol_penalty;
+       float warsowbunny_airforwardaccel;
+       float warsowbunny_accel;
+       float warsowbunny_topspeed;
+       float warsowbunny_turnaccel;
+       float warsowbunny_backtosideratio;
+       float ticrate;
+       float airspeedlimit_nonqw;
+} movevars_t;
+
+
+#endif