nav: improve player avoidance once more
nav: try to repath our ways if stuck with other bot combat: a little improvement in knife usage control: enable/disable regame's round infinite when editing graph chatlib: replace say/say_team for older hlds to fix buffer overruns in gamelib Co-Authored-By: Max <161382234+dyspose@users.noreply.github.com>
This commit is contained in:
parent
d965d7677f
commit
30013702c7
10 changed files with 181 additions and 23 deletions
|
|
@ -510,6 +510,14 @@ int BotControl::cmdNodeOn () {
|
|||
mp_roundtime.set (9);
|
||||
mp_freezetime.set (0);
|
||||
mp_timelimit.set (0);
|
||||
|
||||
if (game.is (GameFlags::ReGameDLL)) {
|
||||
ConVarRef mp_round_infinite ("mp_round_infinite");
|
||||
|
||||
if (mp_round_infinite.exists ()) {
|
||||
mp_round_infinite.set ("1");
|
||||
}
|
||||
}
|
||||
}
|
||||
return BotCommandResult::Handled;
|
||||
}
|
||||
|
|
@ -527,6 +535,13 @@ int BotControl::cmdNodeOff () {
|
|||
mp_freezetime.set (m_graphSaveVarValues.freezetime);
|
||||
mp_timelimit.set (m_graphSaveVarValues.timelimit);
|
||||
|
||||
if (game.is (GameFlags::ReGameDLL)) {
|
||||
ConVarRef mp_round_infinite ("mp_round_infinite");
|
||||
|
||||
if (mp_round_infinite.exists ()) {
|
||||
mp_round_infinite.set ("0");
|
||||
}
|
||||
}
|
||||
msg ("Graph editor has been disabled.");
|
||||
}
|
||||
else if (arg <StringRef> (option) == "models") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue