File: throwable.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 (19 lines) | stat: -rw-r--r-- 418 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[prototype]
id=throwable

tags=swallowable

on_collide_object_thrown="
	[if(collide_with_area = 'body' and collide_with.vars.team != vars.team,
		 [if(collide_with.get_hit_by, [collide_with.get_hit_by(me)]), die()])]"

on_enter_thrown_anim="[set(vars.damage, consts.thrown_damage)]"
on_leave_thrown_anim="[set(vars.damage, consts.normal_damage)]"


	[consts]
	normal_damage=1
	thrown_damage=5
	[/consts]

[/prototype]