complete wp editor

This commit is contained in:
ineed bots
2026-08-18 14:31:26 -06:00
parent 496f61e4c0
commit 0ee19e7ed6
2 changed files with 9 additions and 8 deletions
-2
View File
@@ -5,6 +5,4 @@ Bot Warfare for CoD2, in progress...
TODO: TODO:
- _bot_script - _bot_script
- _menu - _menu
- _wp_editor
- _bot_chat - _bot_chat
+9 -6
View File
@@ -28,6 +28,9 @@ init()
map( getcvar( "mapname" ) ); map( getcvar( "mapname" ) );
return; return;
} }
// cod2 only allows localized strings...
precachestring( &"^1SecondaryOffhand - ^2Add Waypoint; ^3MeleeButton - ^4Link Waypoint; ^5FragButton - ^6delete Waypoint; ^7UseButton + AttackButton - ^8Save" );
setcvar( "bots_main", 0 ); setcvar( "bots_main", 0 );
setcvar( "bots_main_menu", 0 ); setcvar( "bots_main_menu", 0 );
@@ -37,9 +40,10 @@ init()
setcvar( "bots_manage_fill_kick", 1 ); setcvar( "bots_manage_fill_kick", 1 );
setcvar( "bots_manage_fill_spec", 1 ); setcvar( "bots_manage_fill_spec", 1 );
setcvar( "smoke", 0 ); setcvar( "smoke", 0 ); // bind 2 "set smoke 1; wait 50; set smoke 0"
setcvar( "frag", 0 ); setcvar( "frag", 0 ); // bind 3 "set frag 1; wait 50; set frag 0"
setcvar( "speed", 0 ); setcvar( "speed", 0 ); // bind 4 "togglep speed 0 1"
// use con_minicon
if ( getcvar( "bots_main_debug_distance" ) == "" ) if ( getcvar( "bots_main_debug_distance" ) == "" )
{ {
@@ -121,7 +125,7 @@ beginDebug()
self thread watchSaveWaypointsCommand(); self thread watchSaveWaypointsCommand();
self thread sayExtras(); self thread sayExtras();
self thread textScroll( "^1SecondaryOffhand - ^2Add Waypoint; ^3MeleeButton - ^4Link Waypoint; ^5FragButton - ^6delete Waypoint; ^7UseButton + AttackButton - ^8Save" ); self thread textScroll( &"^1SecondaryOffhand - ^2Add Waypoint; ^3MeleeButton - ^4Link Waypoint; ^5FragButton - ^6delete Waypoint; ^7UseButton + AttackButton - ^8Save" );
} }
sayExtras() sayExtras()
@@ -727,8 +731,7 @@ textScroll( string )
text.horzalign = "center"; text.horzalign = "center";
text.vertalign = "middle"; text.vertalign = "middle";
text.y = 220; text.y = 220;
// cod2 only allows localized strings... text settext( string );
text settext( &"PLATFORM_PRESS_TO_SPAWN" );
for ( ;; ) for ( ;; )
{ {