First off, I am aware of the Map Spawns Editor plugin, but I don't want to use that because I only need to fix the spawns on one of my maps.
So what I want to do is first strip all the spawns. I think this should take care of that.
PHP Code:
tspawns = engfunc(EngFunc_FindEntityByString, ent, "classname", "info_player_deathmatch");
engfunc(EngFunc_RemoveEntity, tspawns);
ctspawns = engfunc(EngFunc_FindEntityByString, ent, "classname", "info_player_start");
engfunc(EngFunc_RemoveEntity, ctspawns);
Now I am having trouble setting the new spawns.
Is it possible to store the new tspawns and the new ctspawns in their own array?
EX: My two ct spawns
-943 -367 190 0 1 0
-949 -113 190 0 1 0
my two t spawns
-955 138 190 0 1 0
-961 420 190 0 1 0
And then have some function like foreach line in the array create a new spawn and set the angle?
Sorry if this is confusing