mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-08 09:12:24 +00:00
Netcode failsafe. At least until I can figure out the best way to produce bot cmds outside of player sends.
This commit is contained in:
parent
b73a15a0bf
commit
e19b085684
1 changed files with 6 additions and 0 deletions
|
@ -362,6 +362,12 @@ void B_BuildTiccmd(player_t *player, ticcmd_t *cmd)
|
||||||
// Bot AI isn't programmed in analog.
|
// Bot AI isn't programmed in analog.
|
||||||
CV_SetValue(&cv_analog[1], false);
|
CV_SetValue(&cv_analog[1], false);
|
||||||
|
|
||||||
|
// Bot cmd functions and hooks are not currently netplay compatible
|
||||||
|
// Necessary failsafe, as a bot in the P2 position in a netgame can inherit
|
||||||
|
// the last input from a hook triggered in splitscreen or SP.
|
||||||
|
if (netgame)
|
||||||
|
return;
|
||||||
|
|
||||||
// Let Lua scripts build ticcmds
|
// Let Lua scripts build ticcmds
|
||||||
if (LUAh_BotTiccmd(player, cmd))
|
if (LUAh_BotTiccmd(player, cmd))
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue