wp editor

This commit is contained in:
ineed bots
2025-09-28 01:05:49 -06:00
parent c7188a9cfc
commit f53544610a
5 changed files with 871 additions and 11 deletions

View File

@@ -34,6 +34,10 @@ BotBuiltinPrintConsole( s )
{
[[ level.bot_builtins[ "printconsole" ] ]]( s );
}
else
{
println( s );
}
}
/*
@@ -1458,25 +1462,18 @@ readWpsFromFile( mapname )
for ( i = 1; i <= waypointCount; i++ )
{
argc = freadln( f );
line = "";
tokens = [];
for ( h = 0; h < argc; h++ )
{
line += fgetarg( f, h );
if ( h < argc - 1 )
{
line += ",";
}
tokens[ h ] = fgetarg( f, h );
}
if ( !isdefined( line ) || line == "" )
if ( !isdefined( tokens ) || !tokens.size )
{
continue;
break;
}
tokens = strtok( line, "," );
waypoint = parseTokensIntoWaypoint( tokens );
waypoints[ i - 1 ] = waypoint;