From ffcdab9ee79bdffd5166e96dc3ff00f788fe43ea Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Fri, 2 Oct 2020 01:56:52 +0000 Subject: [PATCH] pmove: Initial implementation of pmove.h. Stub some structs. To be continued(?) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12986 d7cf8633-e32d-0410-b094-e92efae38249 --- pmove.h | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 pmove.h diff --git a/pmove.h b/pmove.h new file mode 100644 index 00000000..cd709d35 --- /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 -- 2.39.2