2020-07-03 22:26:33 +00:00
|
|
|
#if !defined(vr_client_info_h)
|
|
|
|
#define vr_client_info_h
|
2020-07-02 06:39:44 +00:00
|
|
|
|
2020-07-12 07:50:23 +00:00
|
|
|
#define NUM_WEAPON_SAMPLES 10
|
2020-07-11 23:08:29 +00:00
|
|
|
|
2020-07-02 06:39:44 +00:00
|
|
|
typedef struct {
|
2020-07-03 22:26:33 +00:00
|
|
|
float fov;
|
|
|
|
qboolean weapon_stabilised;
|
2020-07-10 20:58:40 +00:00
|
|
|
qboolean right_handed;
|
2020-07-14 17:56:03 +00:00
|
|
|
qboolean player_moving;
|
2020-07-15 22:16:44 +00:00
|
|
|
qboolean visible_hud;
|
2020-07-16 22:52:04 +00:00
|
|
|
qboolean dualwield;
|
2020-07-15 22:16:44 +00:00
|
|
|
int weaponid;
|
|
|
|
int lastweaponid;
|
|
|
|
int backpackitemactive; //0 - nothing, 1 - grenades, 2 - knife, 3 - Binoculars
|
2020-07-03 22:26:33 +00:00
|
|
|
|
2020-07-05 09:49:07 +00:00
|
|
|
vec3_t hmdposition;
|
|
|
|
vec3_t hmdposition_last; // Don't use this, it is just for calculating delta!
|
|
|
|
vec3_t hmdposition_delta;
|
2020-07-02 06:39:44 +00:00
|
|
|
|
|
|
|
vec3_t hmdorientation;
|
2020-07-05 09:49:07 +00:00
|
|
|
vec3_t hmdorientation_last; // Don't use this, it is just for calculating delta!
|
|
|
|
vec3_t hmdorientation_delta;
|
2020-07-02 06:39:44 +00:00
|
|
|
|
2020-07-12 22:26:56 +00:00
|
|
|
vec3_t weaponangles_knife;
|
2020-07-02 06:39:44 +00:00
|
|
|
vec3_t weaponangles;
|
2020-07-05 09:49:07 +00:00
|
|
|
vec3_t weaponangles_last; // Don't use this, it is just for calculating delta!
|
|
|
|
vec3_t weaponangles_delta;
|
|
|
|
|
2020-07-02 06:39:44 +00:00
|
|
|
vec3_t weaponoffset;
|
2020-07-11 23:08:29 +00:00
|
|
|
float weaponoffset_timestamp;
|
|
|
|
vec3_t weaponoffset_history[NUM_WEAPON_SAMPLES];
|
|
|
|
float weaponoffset_history_timestamp[NUM_WEAPON_SAMPLES];
|
2020-07-02 06:39:44 +00:00
|
|
|
|
2020-07-14 17:56:03 +00:00
|
|
|
//Lots of scope weapon stuff
|
|
|
|
qboolean scopeengaged; // Scope has been engaged on a scoped weapon
|
|
|
|
qboolean scopedweapon; // Weapon scope is available
|
|
|
|
qboolean scopedetached; // Scope has been detached from weapon
|
|
|
|
qboolean detachablescope; // Scope can be detached from weapon
|
2020-07-15 22:16:44 +00:00
|
|
|
qboolean hasbinoculars;
|
2020-07-10 20:58:40 +00:00
|
|
|
|
2020-07-12 15:04:26 +00:00
|
|
|
qboolean velocitytriggered; // Weapon attack triggered by velocity (knife)
|
|
|
|
|
2020-07-10 20:58:40 +00:00
|
|
|
vec3_t offhandangles;
|
|
|
|
vec3_t offhandoffset;
|
2020-07-13 22:58:12 +00:00
|
|
|
|
2020-07-20 18:56:58 +00:00
|
|
|
//
|
|
|
|
// Teleport Stuff
|
|
|
|
//
|
|
|
|
qboolean teleportenabled;
|
|
|
|
qboolean teleportseek; // player looking to teleport
|
|
|
|
qboolean teleportready; // player pointing to a valid teleport location
|
|
|
|
vec3_t teleportdest; // teleport destination
|
|
|
|
qboolean teleportexecute; // execute the teleport
|
|
|
|
|
|
|
|
|
2020-07-13 22:58:12 +00:00
|
|
|
|
|
|
|
//////////////////////////////////////
|
|
|
|
// Test stuff for weapon alignment
|
|
|
|
//////////////////////////////////////
|
|
|
|
|
|
|
|
char test_name[256];
|
|
|
|
float test_scale;
|
|
|
|
vec3_t test_angles;
|
|
|
|
vec3_t test_offset;
|
|
|
|
|
2020-07-03 22:26:33 +00:00
|
|
|
} vr_client_info_t;
|
2020-07-02 06:39:44 +00:00
|
|
|
|
2020-07-03 22:26:33 +00:00
|
|
|
#endif //vr_client_info_h
|