Rotating spawn points:

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
PacMan
Corporal
Posts: 29
Joined: Wed Jun 16, 2004 9:44 pm

Rotating spawn points:

Post by PacMan »

Hello all,

1. I was wandering how I can set up a new location in a map or what "commands" i need to use, so that when a round ends and instead of restarting at the same spawn points, I would like to set the spawn points at a different location in the same map, of course this map would be big....So basically like cutting the map in half, where as at each end of the round the setup would go to one side of the map and the next start up of the next round to the otherside."sort of like tennis"..back and forth..

2. Setting up the spawn points is no problem, but initiating it to do what I want to do is the "matter at hand"...

3. Thanks in advance....
Grassy
First Lieutenant
Posts: 221
Joined: Sun Aug 22, 2004 11:36 am

Post by Grassy »

You would have to have two sets of spawn nodes for each team, ie; allied_1 one side of the map and allied_2 the other side, same for axis..
And would need to set a cvar to use as a switch, due to roundstart a variable would not hold it's value. At the start of each round check the cvar value, swap the spawn points, reset the cvar to new setting.
So at next roundstart the cvar can be checked again and spawn points rotated again... Only check the cvar value in the start of the script, dont change it's value untill after the spawn points have been rotated.
Grassy
PacMan
Corporal
Posts: 29
Joined: Wed Jun 16, 2004 9:44 pm

Interesting:

Post by PacMan »

1. How would I check the cvar value and the start of the round?

2. where do I put this value in my script?

3. Better yet, is it possible, if I can see an example of one.?

4. Thanks in advance... :idea
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

it'd be much easier to do removeclass and then get the exact positions of them and mess with the angles until you get what you want ;)
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
PacMan
Corporal
Posts: 29
Joined: Wed Jun 16, 2004 9:44 pm

Hmmm:

Post by PacMan »

1. I am using a single player map "m4l1" and I have a section closed off because of the size of the map. Now what I would like to do is be able to spawn my players on to the otherside when a round ends and when a new round starts up it goes back. (back and forth) instead of having to spawn at the same locations.

2. It would be of much appreciation if someone has an example script that I can learn from.

3. Thanks in advance for your assistants...
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Take a look at the scripting for Omaha, It contains spawnpoint enabling on the points on the other side of the barbe whire. Also the AA:Liberation tutorial handles spawn enabling/disabling.
Admin .MAP Forums
Image
Head above heels.
Post Reply