summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s/System.c4g/FireBomb.c
diff options
context:
space:
mode:
Diffstat (limited to 'TemplePushing.c4s/System.c4g/FireBomb.c')
-rw-r--r--TemplePushing.c4s/System.c4g/FireBomb.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/TemplePushing.c4s/System.c4g/FireBomb.c b/TemplePushing.c4s/System.c4g/FireBomb.c
new file mode 100644
index 0000000..85ea01c
--- /dev/null
+++ b/TemplePushing.c4s/System.c4g/FireBomb.c
@@ -0,0 +1,21 @@
+#strict
+#appendto FBMP
+
+func Activate(pClonk)
+{
+ [$Shot$|Image=GNPW]
+ Sound("Blast2");
+ Exit(this(),-10+20*GetDir(pClonk));
+ SetXDir(-80+160*GetDir(pClonk));
+ SetYDir(-10);
+ return(1);
+}
+
+func Hit()
+{
+ if (Random(2)) return(_inherited());
+ else
+ SetYDir(-20);
+ Sound("BOING");
+ return(1);
+}