- add hitscan only autoaim for SW.

This commit is contained in:
Christoph Oelckers 2021-06-26 12:18:27 +02:00
parent e9b2bf9e4e
commit 2af2d29084
3 changed files with 3 additions and 3 deletions

View file

@ -86,7 +86,7 @@ CVARD(Bool, cl_hudinterpolation, true, CVAR_ARCHIVE, "enable/disable HUD (weapon
CUSTOM_CVARD(Int, cl_autoaim, 1, CVAR_ARCHIVE|CVAR_USERINFO, "enable/disable weapon autoaim")
{
int automodes = (g_gameType & (GAMEFLAG_DUKECOMPAT | GAMEFLAG_BLOOD)) ? 2 : 1;
int automodes = (g_gameType & (GAMEFLAG_DUKECOMPAT | GAMEFLAG_BLOOD | GAMEFLAG_SW)) ? 2 : 1;
if (self < 0 || self > automodes) self = 1;
};

View file

@ -14284,7 +14284,7 @@ WeaponAutoAim(SPRITEp sp, short Missile, short ang, bool test)
if (u && u->PlayerP)
{
if (!Autoaim(u->PlayerP->pnum))
if (Autoaim(u->PlayerP->pnum) != 2)
{
return -1;
}

View file

@ -954,7 +954,7 @@ OptionValue "WeapSwitch"
OptionMenu GameplayOptions protected
{
Title "$GMPLYMNU_TITLE"
ifgame(Duke, Nam, WW2GI, Redneck, RedneckRides, Blood)
ifgame(Duke, Nam, WW2GI, Redneck, RedneckRides, Blood, ShadowWarrior)
{
Option "$PLYRMNU_AUTOAIM", "cl_autoaim", "AimMode"
}