Menu and haptic tweak

This commit is contained in:
Simon 2020-04-08 23:26:09 +01:00
parent 933b33d661
commit 837d3aa54a
3 changed files with 8 additions and 9 deletions

View file

@ -4432,13 +4432,14 @@ AActor *P_LineAttack(AActor *t1, DAngle angle, double distance,
// We need to preserve this info from the damage type because the actual damage type can get overridden by the puff
pflag = DMG_PLAYERATTACK;
//Haptics
long rightHanded = vr_control_scheme < 10;
QzDoom_Vibrate(150, rightHanded ? 1 : 0, 0.8);
if (weaponStabilised)
{
QzDoom_Vibrate(150, rightHanded ? 0 : 1, 0.6);
}
if ( damage > 0) {
//Haptics
long rightHanded = vr_control_scheme < 10;
QzDoom_Vibrate(150, rightHanded ? 1 : 0, 0.8);
if (weaponStabilised) {
QzDoom_Vibrate(150, rightHanded ? 0 : 1, 0.6);
}
}
}
// [MC] If overriding, set it to the base of the actor.

View file

@ -341,8 +341,6 @@ OptionMenu "OptionsMenu" protected
Submenu "VR Options", "VROptionsMenu"
StaticText " "
Submenu "$OPTMNU_CONTROLS", "CustomizeControls"
Submenu "$OPTMNU_MOUSE", "MouseOptions"
Submenu "$OPTMNU_JOYSTICK", "JoystickOptions"
StaticText " "
Submenu "$OPTMNU_PLAYER", "NewPlayerMenu"
Submenu "$OPTMNU_GAMEPLAY", "GameplayOptions"

Binary file not shown.