Skip to content
Snippets Groups Projects
Commit e19b0856 authored by Claire Ellis's avatar Claire Ellis :speech_balloon:
Browse files

Netcode failsafe. At least until I can figure out the best way to produce bot...

Netcode failsafe. At least until I can figure out the best way to produce bot cmds outside of player sends.
parent b73a15a0
No related branches found
No related tags found
1 merge request!1383Multiplayer Bot Features (aka AddPlayer)
......@@ -362,6 +362,12 @@ void B_BuildTiccmd(player_t *player, ticcmd_t *cmd)
// Bot AI isn't programmed in analog.
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
if (LUAh_BotTiccmd(player, cmd))
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment