mirror of
https://github.com/DrBeef/QuestZDoom.git
synced 2024-11-10 15:01:48 +00:00
Properly fix the vr_recoil option
- Also added in the laser sight mod with permission courtesy of Alexander Kromm (m8f): https://github.com/mmaulwurff/laser-sight - Slightly modified the laser sight mod to remove the beam option as this doesn't work correctly in VR
This commit is contained in:
parent
837d3aa54a
commit
6f371800c7
4 changed files with 19 additions and 14 deletions
|
@ -414,6 +414,9 @@ class Weapon : StateProvider
|
|||
//===========================================================================
|
||||
|
||||
action void A_ZoomFactor(double zoom = 1, int flags = 0)
|
||||
{
|
||||
CVar recoil = CVar.FindCVar('vr_recoil');
|
||||
if (recoil.GetBool())
|
||||
{
|
||||
let player = self.player;
|
||||
if (player != NULL && player.ReadyWeapon != NULL)
|
||||
|
@ -430,6 +433,7 @@ class Weapon : StateProvider
|
|||
player.ReadyWeapon.FOVScale = zoom;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
//
|
||||
|
|
BIN
assets/mods/laser-sight-0.5.5-vr.pk3
Normal file
BIN
assets/mods/laser-sight-0.5.5-vr.pk3
Normal file
Binary file not shown.
Binary file not shown.
|
@ -164,6 +164,7 @@ import android.support.v4.content.ContextCompat;
|
|||
copy_asset("/sdcard/QuestZDoom", "res/lz_game_support.pk3", true);
|
||||
copy_asset("/sdcard/QuestZDoom", "res/lights.pk3", true);
|
||||
copy_asset("/sdcard/QuestZDoom", "res/brightmaps.pk3", true);
|
||||
copy_asset("/sdcard/QuestZDoom", "mods/laser-sight-0.5.5-vr.pk3", false);
|
||||
copy_asset("/sdcard/QuestZDoom/audiopack", "snd_fluidsynth/fluidsynth.sf2", false);
|
||||
|
||||
//Doom Sharware WAD
|
||||
|
|
Loading…
Reference in a new issue