summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s/System.c4g/Vanish.c
blob: 0248cb17526dda03bb5a6f6e95549d0fb1d3235e (plain)
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
/*-- Make certain items vanish over time --*/

#strict 2

#appendto ARRW
#appendto FARW
#appendto TSWB
#appendto SPER
#appendto ICE1

protected func Hit()
{
	if (GetID() == FARW)
	{
		Schedule("CastParticles(\"MSpark\", 20, 5, 0, 0, 25, 30, RGBa(128,128,255,0), RGBa(255,255,255,127))", 69, 0, 0);
		Schedule("RemoveObject()", 70, 0, 0);
	}
	else if (GetID() == SPER)
	{
		Schedule("CastParticles(\"MSpark\", 20, 5, 0, 0, 25, 30, RGBa(255,128,128,0), RGBa(255,128,128,127))", 49, 0, 0);
		Schedule("RemoveObject()", 50, 0, 0);
	}
	else if (GetID() == TSWB)
	{
		CastParticles("Snow", 50, 20, 0, 0, 50, 80, RGBa(255,255,255,0), RGBa(255,255,255,0));
		RemoveObject();
	}
	else
	{
		CastParticles("MSpark", 20, 5, 0, 0, 25, 30, RGBa(128,128,255,0), RGBa(255,255,255,127));
		Schedule("RemoveObject()", 5, 0, 0);
		return _inherited();
	}
}