how can i make better spawns for custom maps ?
Printable View
how can i make better spawns for custom maps ?
what do you mean by "better"?
all custom maps have 1-2 spawn points . specially when we are playing ctf one team always being stuck in same area then finishes fast..
You can decompile them and add spawns
Or just add them in your script.
Lol, why not just edit your scripts to include some other spawns? way easier and more flexible.
I'm even using spawns defined in a mysql database in my own mod...
best way is as IzNoGod suggested, use script and don't mess up ur maps
now use level.spawns instead ofPHP Code:
// delete unused spawns
spawns = getEntArray();
for( i = 0 ; i spawns.size ; i++ )
{
if( isSubStr( spawns[i].targetname , "spawn" ) )
spawn[i] delete();
}
// set new spawns here
level.spawns = [];
for( i = 0 ; i < myNewSpawns ; i++ )
{
s = spawnStruct();
s.origin = myNewSpawns[i].origin;
s.angles = myNewSpawns[i].angles;
s.team = myNewSpawns[i].team; // whatever
}
Code:getEntArray( "bla_spawn_tdm" , "targetname" );
And for ctf you gotto do that twice, for both sides of the map.
thanks you all , now tripoli and port is better maps :)