mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-24 21:11:03 +00:00
Ensure force push and pull work with a single saber
This commit is contained in:
parent
0d5162626d
commit
c110cd7bb2
1 changed files with 5 additions and 2 deletions
|
@ -372,8 +372,11 @@ void HandleInput_Default( ovrInputStateTrackedRemote *pDominantTrackedRemoteNew,
|
|||
vr.primaryVelocityTriggeredAttack = (vr.primaryswingvelocity >
|
||||
vr_weapon_velocity_trigger->value);
|
||||
//player has to be dual wielding for this to be true
|
||||
vr.secondaryVelocityTriggeredAttack = vr.dualsabers && (vr.secondaryswingvelocity >
|
||||
vr_weapon_velocity_trigger->value);
|
||||
if (vr.dualsabers)
|
||||
{
|
||||
vr.secondaryVelocityTriggeredAttack = (vr.secondaryswingvelocity >
|
||||
vr_weapon_velocity_trigger->value);
|
||||
}
|
||||
|
||||
bool triggered = (vr.primaryVelocityTriggeredAttack || vr.secondaryVelocityTriggeredAttack);
|
||||
if (fired != triggered)
|
||||
|
|
Loading…
Reference in a new issue