Skip to content

Commit

Permalink
- add hitscan only autoaim for SW.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers authored and mjr4077au committed Jul 17, 2021
1 parent 5f41578 commit f951dbf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/core/gamecvars.cpp
Expand Up @@ -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;
};

Expand Down
2 changes: 1 addition & 1 deletion source/games/sw/src/weapon.cpp
Expand Up @@ -14288,7 +14288,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;
}
Expand Down
2 changes: 1 addition & 1 deletion wadsrc/static/menudef.txt
Expand Up @@ -951,7 +951,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"
}
Expand Down

0 comments on commit f951dbf

Please sign in to comment.