Pulsing Zones
Pulsing Zones
Deathzones that 1. grow, 2. shrink, 3. repeat
deathzone_pulse_min .2 (The minimum size a deathzone can shrink to)
deathzone_pulse_max 10 (The maximum size a deathzone can grow to)
deathzone_pulse_speed 10 (The time in seconds it take to reach deathzone_pulse_min or _max)
deathzone_pulse_enable 1 (Trun this to 1 to make deathzones in a map shrink and grow. Turn this to 0 to make a deathzone function normaly)
What do you think? 0.4? ct+sty? 0.2.8.x?
deathzone_pulse_min .2 (The minimum size a deathzone can shrink to)
deathzone_pulse_max 10 (The maximum size a deathzone can grow to)
deathzone_pulse_speed 10 (The time in seconds it take to reach deathzone_pulse_min or _max)
deathzone_pulse_enable 1 (Trun this to 1 to make deathzones in a map shrink and grow. Turn this to 0 to make a deathzone function normaly)
What do you think? 0.4? ct+sty? 0.2.8.x?
- dukevin
- Round Winner
- Posts: 219
- Joined: Mon Aug 30, 2010 8:25 am
- Location: Southern California
- Contact:
Re: Pulsing Zones
This would be awesome so much potential beyond what seems to be just pulsing zones.
But rather than just pulsing dz, should be able to set this for any zone
But rather than just pulsing dz, should be able to set this for any zone
Last edited by dukevin on Fri Oct 22, 2010 11:30 am, edited 2 times in total.
Re: Pulsing Zones
You can do it using sty+ct with delay_command, spawn_zone and set_zone_radius.
Ex:
delay_command -1 spawn_zone n myzone death 100 100 10
delay_command r2 0 set_zone_radius myzone 20 10
delay_command r2 1 set_zone_radius myzone 10 -10
This should spawns a zone at pos 100 100 and make it "pulses" from radius 10 to 20 every 2s.
Not tested but that should works.
Ex:
delay_command -1 spawn_zone n myzone death 100 100 10
delay_command r2 0 set_zone_radius myzone 20 10
delay_command r2 1 set_zone_radius myzone 10 -10
This should spawns a zone at pos 100 100 and make it "pulses" from radius 10 to 20 every 2s.
Not tested but that should works.
- dukevin
- Round Winner
- Posts: 219
- Joined: Mon Aug 30, 2010 8:25 am
- Location: Southern California
- Contact:
Re: Pulsing Zones
wow voodoo, thanks for sharing this!
But I can't get delay_command working, typing "/admin delay_command 1 kill duke" is accepted but no action is taken. Same with trying -1
But I can't get delay_command working, typing "/admin delay_command 1 kill duke" is accepted but no action is taken. Same with trying -1
Re: Pulsing Zones
Delay_command syntax is the following:
delay_command [r<periodicity>] <time> <command>
if time start by +, it is relative to current time, otherwise it is absolute game time
So
+1.5 means in 1.5 sec,
1 means 1 sec after round start
-1 means 1 sec before round start
Edit: Also, delay_command cannot launch commands with lower accesslevel than the one set for delay_command itself. It might be confusing sometime but check access level if it does not work.
delay_command [r<periodicity>] <time> <command>
if time start by +, it is relative to current time, otherwise it is absolute game time
So
+1.5 means in 1.5 sec,
1 means 1 sec after round start
-1 means 1 sec before round start
Edit: Also, delay_command cannot launch commands with lower accesslevel than the one set for delay_command itself. It might be confusing sometime but check access level if it does not work.
Re: Pulsing Zones
interesting voodoo. Very interesting, you just opened up a huge amount of possibilities!
I still want to see the command and they're functions come to be used in newer versions of the game
EDIT: ok after testing the commands, i find that it does "pulse"...in a split second i goes to radius 20, then goes back to radius 10 even faster, when looking at it, it looks like a "pulse"...but it doesnt really function like how i would want the above to function
I still want to see the command and they're functions come to be used in newer versions of the game
EDIT: ok after testing the commands, i find that it does "pulse"...in a split second i goes to radius 20, then goes back to radius 10 even faster, when looking at it, it looks like a "pulse"...but it doesnt really function like how i would want the above to function
Re: Pulsing Zones
I've just tested it myself and it does "pulse" smoothly except the first resize call. you have to adjust periodicity, start times, and growth rate according to the min and max radius you choose...
also, it seems radius is handled as an integer in both spawn_zone and set_zone_radius commands. I'll try to change in to float and also to fix the "first resize call" issue soon...
also, it seems radius is handled as an integer in both spawn_zone and set_zone_radius commands. I'll try to change in to float and also to fix the "first resize call" issue soon...
Re: Pulsing Zones
THANK YOU SOOOOOOO MUCH FOR SHARING THIS! This has solved so many issues. This can be used to easily do a simple round based map rotation without using any scripts, and it gives us the ability to use all of the arma zones to there full potential from the xml. So again, thank you so much!
Re: Pulsing Zones
You're welcome, but you should thx the dev team and use map_rotation instead
Re: Pulsing Zones
Well, as of now, for our server version, map_rotation doesn't work. So this is our only solution, though it is a bit of a nightmare to make all of the settings run properly between maps.
- kyle
- Reverse Outside Corner Grinder
- Posts: 1876
- Joined: Thu Jun 08, 2006 3:33 pm
- Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
- Contact:
Re: Pulsing Zones
actually DELAYED_COMMAND Fails at map rotation. after the map file is changed, any new client coming in downloads the new map_file, so they are shown the wrong map with players going through walls and whatnot.
I do want to make it so maybe DELAYED_COMMAND <E or -99> is executed at end of round. but i have not had the time.
I do want to make it so maybe DELAYED_COMMAND <E or -99> is executed at end of round. but i have not had the time.
Re: Pulsing Zones
yeah, thats the one problem we have been running into, ty for clearing it up
maybe if we delay the command until just before the round ends, we can reduce this glitch.
maybe if we delay the command until just before the round ends, we can reduce this glitch.
Re: Pulsing Zones
So, I just ran a test, and if you limit the time (I did 3 mins.) and limit the score (I did 1000), you can delay the map_file command so that it executes after the round has ended (in this case delay_command r0 179). Though this avoids the problem it makes the map rotation VERY limiting and not worth our time...
-
- Dr Z Level
- Posts: 2246
- Joined: Sun Mar 20, 2005 4:03 pm
- Location: IM: [email protected]
Re: Pulsing Zones
Sounds like a good feature, but should be integrated into Zones v2, not a deathzone-only zonesv1 thing (which is about to be removed anyhow!)
Re: Pulsing Zones
I've found that if you combine:voodoo wrote:You can do it using sty+ct with delay_command, spawn_zone and set_zone_radius.
Ex:
delay_command -1 spawn_zone n myzone death 100 100 10
delay_command r2 0 set_zone_radius myzone 20 10
delay_command r2 1 set_zone_radius myzone 10 -10
This should spawns a zone at pos 100 100 and make it "pulses" from radius 10 to 20 every 2s.
Not tested but that should works.
delay_command r1 0.1 set_zone_radius zone1 1 10
and
set_zone_expanison 2
it makes a nice pulse as well