File: teleport_pedestal.cfg

package info (click to toggle)
frogatto-data 1.0-2
  • links: PTS, VCS
  • area: non-free
  • in suites: squeeze
  • size: 155,116 kB
  • sloc: makefile: 1
file content (115 lines) | stat: -rw-r--r-- 3,214 bytes parent folder | download
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
[object_type]
id="teleport_pedestal"
on_child_spawned="set(glow, child)"
on_create="[add_particles('magic_sparkles'),add_particles('magic_sparkles2'),spawn('teleport_pedestal.glow_mask',midpoint_x,midpoint_y,facing)]"
on_end_cooldown_anim="animation('normal')"
on_end_glow_anim="[animation('cooldown'),
	if(level.player.standing_on = me, fire_event(me, 'transported'))]"
on_enter_normal_anim="[set(magic_sparkles.generation_rate, 0 ), set(magic_sparkles2.generation_rate, 0 )]"
on_jumped_on="if(dest_level and dest_door and cycle > 100,[if(animation != 'glow', animation('glow')), set(last_stood_on, cycle)])"
on_process_cooldown="[set(vars.glow.alpha, (150*(75-time_in_animation))/75), set(vars.glow.brightness, (800*(75-time_in_animation))/75), set(magic_sparkles.generation_rate, (2000*(75-time_in_animation))/75), set(magic_sparkles2.generation_rate, (2000*(75-time_in_animation))/75)]"
on_process_glow="if(level.player.standing_on = me, [
	   if(time_in_animation = 100, screen_flash([255,255,255,0], [0,0,0,5], 50)),
	   set(vars.glow.alpha, (150*time_in_animation)/150), set(vars.glow.brightness, (500*time_in_animation)/150), set(magic_sparkles.generation_rate, (2000*time_in_animation)/150), set(magic_sparkles2.generation_rate, (2000*time_in_animation)/150)])"
on_transported="[
	if(dest_level and dest_door, [screen_flash([255,255,255,255], [0,0,0,-5], 50), teleport(dest_level, dest_door,'instant'),sound('teleport.ogg')]) ]"
solid_area="16,9,48,31"
solid_shape="rect"
teleport_offset_x="32"
teleport_offset_y="-200"
	[vars]
	glow="null()"
	[/vars]

	[animation]
	body_rect="all"
	duration="200"
	frame_info="16,9,16,1,257,302,32,23"
	id="normal"
	image="compiled-2.png"
	rect="241,293,304,325"
	[/animation]

	[animation]
	body_rect="all"
	duration="50"
	frame_info="16,9,16,1,350,302,32,23,16,9,16,1,382,302,32,23,16,9,16,1,414,302,32,23"
	frames="3"
	frames_per_row="1"
	id="glow"
	image="compiled-2.png"
	rect="334,293,397,325"
	[/animation]

	[animation]
	body_rect="all"
	duration="25"
	frame_info="16,9,16,1,350,302,32,23,16,9,16,1,382,302,32,23,16,9,16,1,414,302,32,23"
	frames="3"
	frames_per_row="1"
	id="cooldown"
	image="compiled-2.png"
	play_backwards="yes"
	rect="334,293,397,325"
	[/animation]

	[particle_system]
	alpha="1"
	alpha_delta="-200"
	alpha_rand="100"
	blue="48"
	blue_rand="200"
	dot_size="1"
	generation_rate_millis="0000"
	green="190"
	id="magic_sparkles"
	pos_x="34"
	pos_x_rand="60"
	pos_y="20"
	red="255"
	time_to_live="12"
	time_to_live_rand="64"
	type="point"
	velocity_x="-50"
	velocity_x_rand="100"
	velocity_y="-1000"
	velocity_y_rand="1500"
	[/particle_system]

	[particle_system]
	alpha="1"
	alpha_delta="-100"
	alpha_rand="100"
	blue="248"
	dot_size="1"
	generation_rate_millis="0000"
	green="129"
	id="magic_sparkles2"
	pos_x="54"
	pos_x_rand="20"
	pos_y="20"
	red="255"
	time_to_live="12"
	time_to_live_rand="64"
	type="point"
	velocity_x="-100"
	velocity_x_rand="200"
	velocity_y="-2500"
	velocity_y_rand="3000"
	[/particle_system]

	[object_type]
	id="glow_mask"
	on_create="set(alpha,0)"
	zorder="2"
		[animation]
		duration="200"
		id="normal"
		image="props/interactive-props.png"
		rect="192,177,255,209"
		[/animation]

	[/object_type]

[/object_type]