From 522a218d637cc71e331d84962b102e532907efc4 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 13 Sep 2020 17:37:52 -0600 Subject: [PATCH] oops lol --- userraw/maps/mp/bots/_bot_script.gsc | 68 ++++++++++++++++------------ userraw/todo.txt | 4 +- 2 files changed, 40 insertions(+), 32 deletions(-) diff --git a/userraw/maps/mp/bots/_bot_script.gsc b/userraw/maps/mp/bots/_bot_script.gsc index f30553c..18c4a7d 100644 --- a/userraw/maps/mp/bots/_bot_script.gsc +++ b/userraw/maps/mp/bots/_bot_script.gsc @@ -1088,38 +1088,48 @@ onBotSpawned() for(;;) { self waittill("bot_spawned"); - gameFlagWait("prematch_done"); - - self thread bot_killstreak_think(); - self thread bot_weapon_think(); - self thread bot_perk_think(); - - self thread bot_target_vehicle(); - self thread bot_equipment_kill_think(); - self thread bot_turret_think(); - - self thread bot_crate_think(); - self thread bot_revenge_think(); - - self thread bot_uav_think(); - self thread bot_listen_to_steps(); - - self thread bot_think_follow(); - self thread bot_think_camp(); - self thread bot_jav_loc_think(); - self thread bot_use_grenade_think(); - self thread bot_use_tube_think(); - self thread bot_use_equipment_think(); - - self thread bot_dom_def_think(); - self thread bot_dom_spawn_kill_think(); - - self thread bot_hq(); - - self thread bot_cap(); + + self thread start_bot_threads(); } } +start_bot_threads() +{ + self endon("disconnect"); + level endon("game_ended"); + self endon("death"); + + gameFlagWait("prematch_done"); + + self thread bot_killstreak_think(); + self thread bot_weapon_think(); + self thread bot_perk_think(); + + self thread bot_target_vehicle(); + self thread bot_equipment_kill_think(); + self thread bot_turret_think(); + + self thread bot_crate_think(); + self thread bot_revenge_think(); + + self thread bot_uav_think(); + self thread bot_listen_to_steps(); + + self thread bot_think_follow(); + self thread bot_think_camp(); + self thread bot_jav_loc_think(); + self thread bot_use_grenade_think(); + self thread bot_use_tube_think(); + self thread bot_use_equipment_think(); + + self thread bot_dom_def_think(); + self thread bot_dom_spawn_kill_think(); + + self thread bot_hq(); + + self thread bot_cap(); +} + /* Bot logic for bot determining to camp. */ diff --git a/userraw/todo.txt b/userraw/todo.txt index b42a77d..888e651 100644 --- a/userraw/todo.txt +++ b/userraw/todo.txt @@ -2,10 +2,8 @@ _script: bomb gamemodes, unreleased gamemodes -_utility: -host assignment - _other: +dvars menu code comments documentation and tutorials