mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 00:41:55 +00:00
- add hitscan only autoaim for SW.
This commit is contained in:
parent
e9b2bf9e4e
commit
2af2d29084
3 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue