mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-07-06 02:51:52 +00:00
wp editor
This commit is contained in:
@ -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();
|
||||||
|
|
||||||
|
@ -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);
|
||||||
@ -30,7 +31,6 @@ init()
|
|||||||
level waittill( "connected", player);
|
level waittill( "connected", player);
|
||||||
|
|
||||||
player thread onPlayerSpawned();
|
player thread onPlayerSpawned();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onPlayerSpawned()
|
onPlayerSpawned()
|
||||||
|
4
userraw/scripts/bots_wp_editor.gsc
Normal file
4
userraw/scripts/bots_wp_editor.gsc
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
init()
|
||||||
|
{
|
||||||
|
level thread maps\mp\bots\_wp_editor::init();
|
||||||
|
}
|
Reference in New Issue
Block a user