wp editor

This commit is contained in:
Your Name 2020-08-28 13:59:27 -06:00
parent 4d7a383de2
commit bf86fb99f2
3 changed files with 37 additions and 27 deletions

View File

@ -8,6 +8,12 @@
*/ */
init() init()
{ {
if(getDvar("bots_main_debug") == "")
setDvar("bots_main_debug", 0);
if(getDVarint("bots_main_debug"))
return;
load_waypoints(); load_waypoints();
thread hook_callbacks(); thread hook_callbacks();

View File

@ -1,12 +1,13 @@
#include common_scripts\utility; #include common_scripts\utility;
#include maps\mp\_utility; #include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util; #include maps\mp\gametypes\_hud_util;
#include bots\bots_funcs; #include maps\mp\bots\_bot_utility;
init() init()
{ {
if(getDVarint("bots_main_debug")) if(!getDVarint("bots_main_debug"))
{ return;
if(!getDVarint("developer")) if(!getDVarint("developer"))
{ {
setdvar("developer_script", 1); setdvar("developer_script", 1);
@ -31,7 +32,6 @@ init()
player thread onPlayerSpawned(); player thread onPlayerSpawned();
} }
}
onPlayerSpawned() onPlayerSpawned()
{ {

View File

@ -0,0 +1,4 @@
init()
{
level thread maps\mp\bots\_wp_editor::init();
}