File: pollen_ball_weightless.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 (61 lines) | stat: -rw-r--r-- 1,835 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
[prototype]
affected_by_currents="yes"
always_active="yes"
has_feet="no"
id="pollen_ball_weightless"
object_level_collisions="yes"
on_collide="die()"
on_collide_level="die()"
on_collide_object_attack="[
	      if(collide_with.vars.team != vars.team and collide_with_area = 'body', die())]"
on_collide_object_body="if(collide_with.vars.team != vars.team and collide_with_area = 'attack', [get_hit_by(collide_with),die()])"
on_create="add_particles('particles')"
on_die="spawn('pollen_impact_particle', midpoint_x, midpoint_y, 0)"
on_end_anim="die()"
on_enter_water="[add_wave(midpoint_x, y2, 500, velocity_y, 10*velocity_y, 100, 100),
	                 add_wave(midpoint_x, y2, -500, velocity_y, 10*velocity_y, 100, 100), die()]"
on_timer="[set(rotate, cycle*10)]"
solid_dimensions="enemy,player,common"
timer_frequency="4"
zorder="10"
	[properties]
	get_hit_by="def(collide_with) if(not (me in collide_with.tmp.already_hit), [
				set(collide_with.tmp, 'already_hit', collide_with.tmp.already_hit + [me]),
				set(me.hitpoints, me.hitpoints - collide_with.vars.damage), if(me.hurt_velocity_y, set(me.velocity_y,me.hurt_velocity_y)), if(me.hurt_velocity_x, set(me.velocity_x,me.hurt_velocity_x * collide_with.facing))])"
	hurt_velocity_x="0"
	hurt_velocity_y="0"
	[/properties]

	[animation]
	attack_area="all"
	body_area="all"
	duration="250"
	frame_info="1,1,1,1,1015,400,9,9"
	frames="1"
	id="normal"
	image="compiled-0.png"
	rect="1014,399,1024,409"
	[/animation]

	[vars]
	damage="1"
	team="'evil'"
	[/vars]

	[particle_system]
	colors="f9f9dbff,ffc20eff,ffc20e55,ff7e0055,ae4a2855"
	generation_rate_millis="250"
	id="particles"
	pos_x="5"
	pos_y="5"
	time_to_live="12"
	time_to_live_rand="24"
	type="point"
	velocity_x="-1500"
	velocity_x_rand="3000"
	velocity_y="-1500"
	velocity_y_rand="3000"
	[/particle_system]

[/prototype]