Raised This Month: $ Target: $400
 0% 

Replace spawns?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
VMAN
Senior Member
Join Date: Oct 2007
Location: California, US
Old 02-17-2009 , 10:03   Replace spawns?
Reply With Quote #1

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_FindEntityByStringent"classname""info_player_deathmatch");
        
engfunc(EngFunc_RemoveEntitytspawns);
ctspawns engfunc(EngFunc_FindEntityByStringent"classname""info_player_start");
        
engfunc(EngFunc_RemoveEntityctspawns); 
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
VMAN is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:52.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode