mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-10 06:42:17 +00:00
TBDC Cleanup
This commit is contained in:
parent
6660e8c984
commit
70468332d6
2 changed files with 7 additions and 5 deletions
|
@ -414,7 +414,9 @@ void HandleInput_Default( ovrInputStateTrackedRemote *pDominantTrackedRemoteNew,
|
|||
}
|
||||
}
|
||||
|
||||
static bool changed = false;
|
||||
/*
|
||||
//Parameter Changer
|
||||
static bool changed = false;
|
||||
if (between(-0.2f, primaryJoystickX, 0.2f) &&
|
||||
between(0.8f, pPrimaryJoystick->y, 1.0f)) {
|
||||
if(!changed) {
|
||||
|
@ -433,7 +435,7 @@ void HandleInput_Default( ovrInputStateTrackedRemote *pDominantTrackedRemoteNew,
|
|||
else
|
||||
{
|
||||
changed = false;
|
||||
}
|
||||
}*/
|
||||
|
||||
//dominant hand stuff first
|
||||
{
|
||||
|
@ -445,7 +447,7 @@ void HandleInput_Default( ovrInputStateTrackedRemote *pDominantTrackedRemoteNew,
|
|||
VectorCopy(vr.weaponoffset, vr.weaponoffset_history[0]);
|
||||
vr.weaponoffset_history_timestamp[0] = vr.weaponoffset_timestamp;
|
||||
|
||||
//if (vr.saberBlockDebounce < cl.serverTime) {
|
||||
|
||||
VectorSet(vr.weaponposition, pWeapon->Pose.position.x,
|
||||
pWeapon->Pose.position.y, pWeapon->Pose.position.z);
|
||||
|
||||
|
@ -454,7 +456,7 @@ void HandleInput_Default( ovrInputStateTrackedRemote *pDominantTrackedRemoteNew,
|
|||
pWeapon->Pose.position.y, pWeapon->Pose.position.z);
|
||||
VectorSubtract(vr.weaponoffset, vr.hmdposition, vr.weaponoffset);
|
||||
vr.weaponoffset_timestamp = Sys_Milliseconds();
|
||||
//}
|
||||
|
||||
|
||||
vec3_t velocity;
|
||||
VectorSet(velocity, pWeapon->Velocity.linearVelocity.x,
|
||||
|
|
|
@ -6792,7 +6792,7 @@ Ghoul2 Insert End
|
|||
vr->saberBlockDebounce < cg.time &&
|
||||
bladeNum == 0) // Only need to do this for the first blade
|
||||
{
|
||||
cvar_t *vr_saber_block_debounce_time = gi.cvar("vr_saber_block_debounce_time", "1000", CVAR_ARCHIVE); // defined in VrCvars.h
|
||||
cvar_t *vr_saber_block_debounce_time = gi.cvar("vr_saber_block_debounce_time", "200", CVAR_ARCHIVE); // defined in VrCvars.h
|
||||
vr->saberBlockDebounce = cg.time + vr_saber_block_debounce_time->integer;
|
||||
|
||||
cgi_HapticEvent("shotgun_fire", 0, vr->right_handed ? (2 - saberNum) : (1 + saberNum), 100, 0, 0);
|
||||
|
|
Loading…
Reference in a new issue