1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
[object_type]
always_active="true"
id="sfx_falloff_generator"
ignore_collide="true"
on_create="[set(alpha,0),if(effect_name, sound_loop(effect_name)),sound_volume(0)]"
on_die="sound_volume(128)"
on_end_anim="animation('normal')"
on_timer="sound_volume( if(desired_volume > 14, min(max_volume, (desired_volume * master_volume)/128), 0) ) where desired_volume = (128*((1000*160)/ max(1,nearest_edge) ))/1000"
timer_frequency="25"
zorder="50"
[properties]
nearest_edge="max( if(level.player.x > x_bound and level.player.x < x2_bound, 1,
min(abs(level.player.x - x_bound),abs(level.player.x - x2_bound))),
if(level.player.y > y_bound and level.player.y < y2_bound, 1,
min(abs(level.player.y - y_bound),abs(level.player.y - y2_bound))) )"
[/properties]
[animation]
duration="1000"
frame_info="1,1,2,1,419,226,25,26"
frames="1"
id="normal"
image="compiled-2.png"
rect="418,225,445,252"
[/animation]
[/object_type]
|