hearing: randomize listen position for heard sounds

graph: restore cvar variables values to initial values when disabling graph editor
cfg: update primary config with actual cvars
vision: remove unnecessary angles clamp
combat: allow to disable engine potential visibility checks
combat: do not aim to head on long distances with AWP, shotguns or with high recoil
bot: set the minimum think fps to 30.0
This commit is contained in:
jeefo 2024-04-11 16:26:12 +03:00
commit cc01693de9
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
11 changed files with 110 additions and 46 deletions

View file

@ -496,6 +496,10 @@ int BotControl::cmdNodeOn () {
}
if (graph.hasEditFlag (GraphEdit::On)) {
m_graphSaveVarValues.roundtime = mp_roundtime.float_ ();
m_graphSaveVarValues.freezetime = mp_freezetime.float_ ();
m_graphSaveVarValues.timelimit = mp_timelimit.float_ ();
mp_roundtime.set (9);
mp_freezetime.set (0);
mp_timelimit.set (0);
@ -511,6 +515,11 @@ int BotControl::cmdNodeOff () {
graph.clearEditFlag (GraphEdit::On | GraphEdit::Auto | GraphEdit::Noclip);
enableDrawModels (false);
// revert cvars back to their values
mp_roundtime.set (m_graphSaveVarValues.roundtime);
mp_freezetime.set (m_graphSaveVarValues.freezetime);
mp_timelimit.set (m_graphSaveVarValues.timelimit);
msg ("Graph editor has been disabled.");
}
else if (strValue (option) == "models") {