mirror of
https://github.com/DrBeef/RTCWQuest.git
synced 2025-03-01 14:51:09 +00:00
- You can now grab from the backpack: - Grip Button - Grenades / Pineapple / Dynamite - A Button - Knife - B Button - Binoculars (move them to your face to activate) - Fixed bug with scopes - Improved HUD and fading - X button now enables/disables HUD (might change this)
58 lines
No EOL
1.7 KiB
C
58 lines
No EOL
1.7 KiB
C
#if !defined(vr_client_info_h)
|
|
#define vr_client_info_h
|
|
|
|
#define NUM_WEAPON_SAMPLES 10
|
|
|
|
typedef struct {
|
|
float fov;
|
|
qboolean weapon_stabilised;
|
|
qboolean right_handed;
|
|
qboolean player_moving;
|
|
qboolean visible_hud;
|
|
int weaponid;
|
|
int lastweaponid;
|
|
int backpackitemactive; //0 - nothing, 1 - grenades, 2 - knife, 3 - Binoculars
|
|
|
|
vec3_t hmdposition;
|
|
vec3_t hmdposition_last; // Don't use this, it is just for calculating delta!
|
|
vec3_t hmdposition_delta;
|
|
|
|
vec3_t hmdorientation;
|
|
vec3_t hmdorientation_last; // Don't use this, it is just for calculating delta!
|
|
vec3_t hmdorientation_delta;
|
|
|
|
vec3_t weaponangles_knife;
|
|
vec3_t weaponangles;
|
|
vec3_t weaponangles_last; // Don't use this, it is just for calculating delta!
|
|
vec3_t weaponangles_delta;
|
|
|
|
vec3_t weaponoffset;
|
|
float weaponoffset_timestamp;
|
|
vec3_t weaponoffset_history[NUM_WEAPON_SAMPLES];
|
|
float weaponoffset_history_timestamp[NUM_WEAPON_SAMPLES];
|
|
|
|
//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
|
|
qboolean hasbinoculars;
|
|
|
|
qboolean velocitytriggered; // Weapon attack triggered by velocity (knife)
|
|
|
|
vec3_t offhandangles;
|
|
vec3_t offhandoffset;
|
|
|
|
|
|
//////////////////////////////////////
|
|
// Test stuff for weapon alignment
|
|
//////////////////////////////////////
|
|
|
|
char test_name[256];
|
|
float test_scale;
|
|
vec3_t test_angles;
|
|
vec3_t test_offset;
|
|
|
|
} vr_client_info_t;
|
|
|
|
#endif //vr_client_info_h
|