Tune Zones

Guides about mapping and everything Teeworlds related.

Post Reply
Index
User
Posts: 1066
Joined: Mon May 05, 2014 7:30 pm
Player profile: ٭ıƞdex'<3
Mapper profile: ٭ıƞdex'<3
Clan: Eagle

Tune Zones

Post by Index » Mon Oct 05, 2015 1:09 pm

Tune Zones
written by Index, based on tutorials by Maple, deen & imp

Tune Zones are certain zones in your map, where the physics of the game or other basic behavements can be altered. The changes are written in a .cfg map or can be written directly in your map file (client version 9.0.2+). The feature is ddnet-exclusive and you need the official ddnet client to use tune zones in your map but not for playing a map with tune zones.

Open a map in the map editor and right-click the game-layer group. You will see that there is a new kind of layer to choose, the Tune layer.
screenshot_2015-09-30_17-46-58.png
By clicking the Tune button at the top of screen , you will be able to select different Zone numbers. It’s just like switch layer numbers.
Now put the zone wherever you want (press space and select the light blue square) Just treat it as if it were a normal tile. The player will be in the specific zone as long as it touches the respective tile.
screenshot_2015-09-30_17-47-07.png
You can add more than one tune zone at once, just increase the number. 0 is the default tune zone, when none is drawn.
screenshot_2015-09-30_17-48-37.png
Now that you have specified the different zones, you have to attribute special physics for each of them. You will need to create a new file in the same folder as your map (called NAME.cfg). Alternatively you can write it directly in your map file (click the button next ot envelopes)
screenshot_2015-09-30_17-51-32.png

There are 4124 different possibilities and changes, here is the official list.

Code: Select all

tune_zone_enter NUMBER "x"
x=text, displayed when entering the Zone

Code: Select all

tune_zone_leave NUMBER "x"
x=text, displayed when leaving the zone

Code: Select all

tune_zone NUMBER "x" "y"
x=any tune setting/physical change, refer to the linked list
y=value of that setting

It is possible to change more than one setting per zone. So it’s possible to do complex changes. Here are some pre-made configs, thanks to deen.

Code: Select all

tune_zone_enter 0 "Grenade Jetpack"

tune_zone 0 grenade_fire_delay 150
tune_zone 0 grenade_lifetime 0.05

Code: Select all

tune_zone_enter 1 "Shotgun Strong Push"

tune_zone 1 shotgun_strength -20

Code: Select all

tune_zone_enter 2 "Strong Gravity (fun with infinite jump)"

tune_zone 2 gravity 2

Code: Select all

tune_zone_enter 3 "Longer hook (for drag parts)"

tune_zone 3 hook_duration 2.5

Code: Select all

tune_zone_enter 4 "Slow Motion 2x"

tune_zone 4 ground_control_speed 5
tune_zone 4 air_control_speed 2.5
tune_zone 4 ground_control_accel 1
tune_zone 4 air_control_accel 0.75
tune_zone 4 gravity 0.25
tune_zone 4 air_friction 0.975
tune_zone 4 air_jump_impulse 8.5
tune_zone 4 ground_jump_impulse 9.5
tune_zone 4 hook_fire_speed 40
tune_zone 4 hook_drag_accel 1.5
tune_zone 4 hook_drag_speed 7.5
tune_zone 4 grenade_speed 500
tune_zone 4 grenade_lifetime 4
tune_zone 4 gun_speed 1100
tune_zone 4 gun_lifetime 4
tune_zone 4 hook_duration 2.5
tune_zone 4 laser_bounce_delay 300
tune_zone 4 hammer_fire_delay 250
tune_zone 4 gun_fire_delay 250
tune_zone 4 shotgun_fire_delay 1000
tune_zone 4 grenade_fire_delay 1000
tune_zone 4 laser_fire_delay 1600
tune_zone 4 ninja_fire_delay 1600

Code: Select all

tune_zone_enter 5 "Slow Motion 4x"

tune_zone 5 ground_control_speed 2.5
tune_zone 5 air_control_speed 1.25
tune_zone 5 ground_control_accel 0.5
tune_zone 5 air_control_accel 0.375
tune_zone 5 gravity 0.125
tune_zone 5 air_friction 0.9875
tune_zone 5 air_jump_impulse 5.5
tune_zone 5 ground_jump_impulse 6.5
tune_zone 5 hook_fire_speed 20
tune_zone 5 hook_drag_accel 0.75
tune_zone 5 hook_drag_speed 3.75
tune_zone 5 grenade_speed 250
tune_zone 5 grenade_lifetime 8
tune_zone 5 gun_speed 550
tune_zone 5 gun_lifetime 8
tune_zone 5 hook_duration 5
tune_zone 5 laser_bounce_delay 600
tune_zone 5 hammer_fire_delay 500
tune_zone 5 gun_fire_delay 500
tune_zone 5 shotgun_fire_delay 2000
tune_zone 5 grenade_fire_delay 2000
tune_zone 5 laser_fire_delay 3200
tune_zone 5 ninja_fire_delay 3200

Code: Select all

tune_zone_enter 6 "Slow Motion 8x"

tune_zone 6 ground_control_speed 1.25
tune_zone 6 air_control_speed 0.625
tune_zone 6 ground_control_accel 0.25
tune_zone 6 air_control_accel 0.1875
tune_zone 6 gravity 0.0625
tune_zone 6 air_friction 0.99375
tune_zone 6 air_jump_impulse 3.75
tune_zone 6 ground_jump_impulse 4.75
tune_zone 6 hook_fire_speed 10
tune_zone 6 hook_drag_accel 0.375
tune_zone 6 hook_drag_speed 1.875
tune_zone 6 grenade_speed 125
tune_zone 6 grenade_lifetime 16
tune_zone 6 gun_speed 275
tune_zone 6 gun_lifetime 16
tune_zone 6 hook_duration 10
tune_zone 6 laser_bounce_delay 1200
tune_zone 6 hammer_fire_delay 1000
tune_zone 6 gun_fire_delay 1000
tune_zone 6 shotgun_fire_delay 4000
tune_zone 6 grenade_fire_delay 4000
tune_zone 6 laser_fire_delay 6400
tune_zone 6 ninja_fire_delay 6400

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest