Advancing Spawns

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
MPowell1944
Moderator
Posts: 287
Joined: Thu Jan 09, 2003 7:06 am
Location: Woodstock, GA
Contact:

Advancing Spawns

Post by MPowell1944 »

I know that you can assign targetnames to spawns to disable/enable them. What I need to know is how you would do that via a trigger that either team would hit. To define my question. How would I enable/disable spawns as either team advances/retreats? Say the allies trigger the advanced spawns but soon afterward are pushed back. Would I have to setup triggers all over the map for this? Sounds tricky to me. Any help appreciated.
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

if ( parm.other.dmteam == whatever.team)
{
$blahtrigger disablespawn
}
end
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
User avatar
MPowell1944
Moderator
Posts: 287
Joined: Thu Jan 09, 2003 7:06 am
Location: Woodstock, GA
Contact:

Post by MPowell1944 »

That is obvious. Answer me this then. How would I enable the spawn again. Like I said, I would have to have triggers all over the map to check for teams or maybe even use a while(isTouching).
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

It does sound tricky . How do you know when to enable or disable the spawns based on 1 guy triggering a trigger somewhere in the map . How do you know the whole team has been pushed back ? I can see if you just wanted to advance the spawnpoints when at least one guy on a team reaches a certain trigger but how do you decide when the disable the forward spawnpoints . It can be done of course different ways with istouching as one of the ways . I guess it depends on the layout of the map .
Image
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post by ViPER »

Can you do it with a switch, Like Slyke's TOW maps? Teams advance and capture switches at various points in the map. They get pushed back and the opposing team switches it back. The default would meet in the middle to start.

Also, theres the Push. Have you seen "Push CityHall"? It doesn't advance the spawns but it does tally team points based on captured and held ground locations at various flag points.
User avatar
MPowell1944
Moderator
Posts: 287
Joined: Thu Jan 09, 2003 7:06 am
Location: Woodstock, GA
Contact:

Post by MPowell1944 »

I'm basing this idea from what I saw on the =LMAO= server. King created a Push Engine which works splendidly with advancing spawns.
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

cant you download their KP maps and just look off the script?
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
User avatar
MPowell1944
Moderator
Posts: 287
Joined: Thu Jan 09, 2003 7:06 am
Location: Woodstock, GA
Contact:

Post by MPowell1944 »

No. They stressed that the mods they created are for their servers only. They say it is what distinguishes their server from others, which I understand. I just need the base code.

Since I cannot get it from them, I'm just going to come up with something different. Switch spawn areas half way in the map. That'll have to do.
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

I don't think the scripting is the hard part I think the rules are . If you can explain the rules like what conditions will cause the spawnpoints to change then the scripting will follow .I mean if you can explain it in plain english then you could find a way to script it .Another way can be the players coords based on the x or y coord for example or triggers and istouching .
Image
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

ive always thought of kingspushas a simple rather large arrangement of triggers that just enabel/disable sapwns... its it really that hard.. ive got a feeling im being n00bish... (or 1337 31743R 1ne :P )
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
User avatar
Cheetohs
Brigadier General
Posts: 569
Joined: Sun Jan 04, 2004 6:01 am
Location: Minnesota
Contact:

Post by Cheetohs »

What about a 'CTF' (think Wolfenstein) ... where You're spawns advance if you capture that flag, but if its captured by opposing team, your spawns are disabled and theirs are enabled.... to re-enable yours, you must re-capture the flag... Could that be a simpler way of doing it? It doesn't have to be a flag, what about a radio room or a bridge outpost, something that is somewhat important and can go with your map...
.:c|H|EE|TO|H|s|:.
Image
Need a thorough map tester? Shine the Cheetohs signal!
Post Reply