- changed autoaim menu option to a slider which allows a more precise control of the property.
- having a value of 5000 as the default for autoaim makes no sense, since this is an angle value that will always be clamped to [0..35]. So now 35 is both the default and the maximum.
This commit is contained in:
parent
3b5af8484c
commit
afcd755c7a
3 changed files with 8 additions and 28 deletions
|
|
@ -60,7 +60,7 @@
|
|||
|
||||
static FRandom pr_pickteam ("PickRandomTeam");
|
||||
|
||||
CVAR (Float, autoaim, 5000.f, CVAR_USERINFO | CVAR_ARCHIVE);
|
||||
CVAR (Float, autoaim, 35.f, CVAR_USERINFO | CVAR_ARCHIVE);
|
||||
CVAR (String, name, "Player", CVAR_USERINFO | CVAR_ARCHIVE);
|
||||
CVAR (Color, color, 0x40cf00, CVAR_USERINFO | CVAR_ARCHIVE);
|
||||
CVAR (Int, colorset, 0, CVAR_USERINFO | CVAR_ARCHIVE);
|
||||
|
|
@ -518,9 +518,9 @@ void D_UserInfoChanged (FBaseCVar *cvar)
|
|||
autoaim = 0.0f;
|
||||
return;
|
||||
}
|
||||
else if (autoaim > 5000.0f)
|
||||
else if (autoaim > 35.0f)
|
||||
{
|
||||
autoaim = 5000.f;
|
||||
autoaim = 35.f;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue