Tune Zones

Read tips and guides about teeworlds-related subjects (mapping, compiling, ..).
Post Reply
Index
Posts: 1133
Joined: Mon May 05, 2014 7:30 pm
Clan: Eagle

Tune Zones

Post by Index »

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.

There are 4124 different possibilities and changes, refer to the offical list for more information (https://ddnet.tw/settingscommands/#tunings).

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
screenshot_2015-09-30_17-46-58.png (202.52 KiB) Viewed 8597 times
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
screenshot_2015-09-30_17-47-07.png (191.79 KiB) Viewed 8597 times
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
screenshot_2015-09-30_17-48-37.png (225.04 KiB) Viewed 8597 times
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
screenshot_2015-09-30_17-51-32.png (217.44 KiB) Viewed 8597 times

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
PolishKong
Posts: 5
Joined: Sun May 23, 2021 8:28 pm
Clan: [_Any%_]

Re: Tune Zones

Post by PolishKong »

Man thanks a lot but i have one question.
Where can i find more comands ?
or where you find this ?
User avatar
deen
TECHNICAL Team
Posts: 3575
Joined: Mon May 05, 2014 2:30 pm
Player profile: https://ddnet.org/players/deen/
Discord: deen#5910

Re: Tune Zones

Post by deen »

Here is a list of all available tunings: https://ddnet.tw/settingscommands/#tunings
PolishKong
Posts: 5
Joined: Sun May 23, 2021 8:28 pm
Clan: [_Any%_]

Re: Tune Zones

Post by PolishKong »

thanks a lot
^-^
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests