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,36 +1,36 @@
#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", 1); setdvar("developer_script", 1);
setdvar("developer", 1);
setdvar("sv_mapRotation", "map "+getDvar("mapname"));
exitLevel(false); setdvar("sv_mapRotation", "map "+getDvar("mapname"));
} exitLevel(false);
}
setdvar("bots_main_menu", 0);
setdvar("bots_manage_fill_mode", 0); setdvar("bots_main_menu", 0);
setdvar("bots_manage_fill", 0); setdvar("bots_manage_fill_mode", 0);
setdvar("bots_manage_add", 0); setdvar("bots_manage_fill", 0);
setdvar("bots_manage_fill_kick", 1); setdvar("bots_manage_add", 0);
setdvar("bots_manage_fill_kick", 1);
setDvarIfUninitialized("bots_main_debug_distance", 500.0);
setDvarIfUninitialized("bots_main_debug_cone", 0.65); setDvarIfUninitialized("bots_main_debug_distance", 500.0);
setDvarIfUninitialized("bots_main_debug_minDist", 30.0); setDvarIfUninitialized("bots_main_debug_cone", 0.65);
setDvarIfUninitialized("bots_main_debug_drawThrough", false); setDvarIfUninitialized("bots_main_debug_minDist", 30.0);
setDvarIfUninitialized("bots_main_debug_drawThrough", false);
level waittill( "connected", player);
level waittill( "connected", player);
player thread onPlayerSpawned();
} player thread onPlayerSpawned();
} }
onPlayerSpawned() onPlayerSpawned()

View File

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