Completed wp editor

This commit is contained in:
INeedBots 2020-12-04 12:04:17 -06:00
parent bdbfff0e73
commit 03ca1e44ce
2 changed files with 171 additions and 151 deletions

View File

@ -1,3 +1,10 @@
/*
_wp_editor
Author: INeedGames
Date: 09/26/2020
The ingame waypoint editor. Designed to be ran on the client (not the server)
*/
#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;
@ -75,7 +82,7 @@ beginDebug()
self clearPerks();
self takeAllWeapons();
self.specialty = [];
self giveWeapon("m16_gl_mp");
self giveWeapon("m1garand_gl_mp");
self SetActionSlot( 3, "altMode" );
self giveWeapon("frag_grenade_mp");
self freezecontrols(false);
@ -277,6 +284,7 @@ watchSaveWaypointsCommand()
}
logprint("*/return waypoints;\n}\n\n\n\n");
PrintLn("********* Start Bot Warfare WPDump *********");
PrintLn(level.waypointCount);
for(i = 0; i < level.waypointCount; i++)
{
@ -303,6 +311,7 @@ watchSaveWaypointsCommand()
PrintLn(str);
}
PrintLn("\n\n\n\n\n\n");
self iprintln("Saved!!!");
}
@ -614,48 +623,52 @@ getMapName(map)
{
switch(map)
{
case "mp_convoy":
return "Ambush";
case "mp_backlot":
return "Backlot";
case "mp_bloc":
return "Bloc";
case "mp_bog":
return "Bog";
case "mp_countdown":
return "Countdown";
case "mp_crash":
return "Crash";
case "mp_crash_snow":
return "Winter Crash";
case "mp_crossfire":
return "Crossfire";
case "mp_citystreets":
return "District";
case "mp_farm":
return "Downpour";
case "mp_overgrown":
return "Overgrown";
case "mp_pipeline":
return "Pipeline";
case "mp_shipment":
return "Shipment";
case "mp_showdown":
return "Showdown";
case "mp_strike":
return "Strike";
case "mp_vacant":
return "Vacant";
case "mp_cargoship":
return "Wetwork";
case "mp_broadcast":
return "Broadcast";
case "mp_creek":
return "Creek";
case "mp_carentan":
return "Chinatown";
case "mp_killhouse":
return "Killhouse";
case "mp_airfield":
return "Airfield";
case "mp_asylum":
return "Asylum";
case "mp_kwai":
return "Banzai";
case "mp_drum":
return "Battery";
case "mp_castle":
return "Castle";
case "mp_shrine":
return "Cliffside";
case "mp_stalingrad":
return "Corrosion";
case "mp_courtyard":
return "Courtyard";
case "mp_dome":
return "Dome";
case "mp_downfall":
return "Downfall";
case "mp_hangar":
return "Hangar";
case "mp_kneedeep":
return "Knee Deep";
case "mp_makin":
return "Makin";
case "mp_makin_day":
return "Makin Day";
case "mp_nachtfeuer":
return "Nightfire";
case "mp_outskirts":
return "Outskirts";
case "mp_vodka":
return "Revolution";
case "mp_roundhouse":
return "Roundhouse";
case "mp_seelow":
return "Seelow";
case "mp_subway":
return "Station";
case "mp_docks":
return "Sub Pens";
case "mp_suburban":
return "Upheaval";
case "mp_bgate":
return "Breach";
}
return map;
@ -670,67 +683,72 @@ load_waypoints()
switch(mapname)
{
case "mp_convoy":
level.waypoints = maps\mp\bots\waypoints\ambush::Ambush();
case "mp_airfield":
level.waypoints = maps\mp\bots\waypoints\airfield::Airfield();
break;
case "mp_backlot":
level.waypoints = maps\mp\bots\waypoints\backlot::Backlot();
case "mp_asylum":
level.waypoints = maps\mp\bots\waypoints\asylum::Asylum();
break;
case "mp_bloc":
level.waypoints = maps\mp\bots\waypoints\bloc::Bloc();
case "mp_kwai":
level.waypoints = maps\mp\bots\waypoints\banzai::Banzai();
break;
case "mp_bog":
level.waypoints = maps\mp\bots\waypoints\bog::Bog();
case "mp_drum":
level.waypoints = maps\mp\bots\waypoints\battery::Battery();
break;
case "mp_countdown":
level.waypoints = maps\mp\bots\waypoints\countdown::Countdown();
case "mp_bgate":
level.waypoints = maps\mp\bots\waypoints\breach::Breach();
break;
case "mp_crash":
case "mp_crash_snow":
level.waypoints = maps\mp\bots\waypoints\crash::Crash();
case "mp_castle":
level.waypoints = maps\mp\bots\waypoints\castle::Castle();
break;
case "mp_crossfire":
level.waypoints = maps\mp\bots\waypoints\crossfire::Crossfire();
case "mp_shrine":
level.waypoints = maps\mp\bots\waypoints\cliffside::Cliffside();
break;
case "mp_citystreets":
level.waypoints = maps\mp\bots\waypoints\district::District();
case "mp_stalingrad":
level.waypoints = maps\mp\bots\waypoints\corrosion::Corrosion();
break;
case "mp_farm":
level.waypoints = maps\mp\bots\waypoints\downpour::Downpour();
case "mp_courtyard":
level.waypoints = maps\mp\bots\waypoints\courtyard::Courtyard();
break;
case "mp_overgrown":
level.waypoints = maps\mp\bots\waypoints\overgrown::Overgrown();
case "mp_dome":
level.waypoints = maps\mp\bots\waypoints\dome::Dome();
break;
case "mp_pipeline":
level.waypoints = maps\mp\bots\waypoints\pipeline::Pipeline();
case "mp_downfall":
level.waypoints = maps\mp\bots\waypoints\downfall::Downfall();
break;
case "mp_shipment":
level.waypoints = maps\mp\bots\waypoints\shipment::Shipment();
case "mp_hangar":
level.waypoints = maps\mp\bots\waypoints\hangar::Hangar();
break;
case "mp_showdown":
level.waypoints = maps\mp\bots\waypoints\showdown::Showdown();
case "mp_kneedeep":
level.waypoints = maps\mp\bots\waypoints\kneedeep::KneeDeep();
break;
case "mp_strike":
level.waypoints = maps\mp\bots\waypoints\strike::Strike();
case "mp_makin":
case "mp_makin_day":
level.waypoints = maps\mp\bots\waypoints\makin::Makin();
break;
case "mp_vacant":
level.waypoints = maps\mp\bots\waypoints\vacant::Vacant();
case "mp_nachtfeuer":
level.waypoints = maps\mp\bots\waypoints\nightfire::Nightfire();
break;
case "mp_cargoship":
level.waypoints = maps\mp\bots\waypoints\wetwork::Wetwork();
case "mp_outskirts":
level.waypoints = maps\mp\bots\waypoints\outskirts::Outskirts();
break;
case "mp_broadcast":
level.waypoints = maps\mp\bots\waypoints\broadcast::Broadcast();
case "mp_vodka":
level.waypoints = maps\mp\bots\waypoints\revolution::Revolution();
break;
case "mp_creek":
level.waypoints = maps\mp\bots\waypoints\creek::Creek();
case "mp_roundhouse":
level.waypoints = maps\mp\bots\waypoints\roundhouse::Roundhouse();
break;
case "mp_carentan":
level.waypoints = maps\mp\bots\waypoints\chinatown::Chinatown();
case "mp_seelow":
level.waypoints = maps\mp\bots\waypoints\seelow::Seelow();
break;
case "mp_killhouse":
level.waypoints = maps\mp\bots\waypoints\killhouse::Killhouse();
case "mp_subway":
level.waypoints = maps\mp\bots\waypoints\station::Station();
break;
case "mp_docks":
level.waypoints = maps\mp\bots\waypoints\subpens::SubPens();
break;
case "mp_suburban":
level.waypoints = maps\mp\bots\waypoints\upheaval::Upheaval();
break;
default:

View File

@ -17,6 +17,8 @@ CodeCallback_StartGameType()
level.gametypestarted = true; // so we know that the gametype has been started up
level thread maps\mp\bots\_bot::init();
level thread maps\mp\bots\_menu::init();
level thread maps\mp\bots\_wp_editor::init();
}
}