From 32a9632fbca3dd7a88bd3154b84a3773af39c276 Mon Sep 17 00:00:00 2001 From: Jan <> Date: Mon, 2 Feb 2015 17:55:29 +0100 Subject: TemplePush v6.1.7601.18409.c4s --- TemplePushing.c4s/System.c4g/Bounce.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 TemplePushing.c4s/System.c4g/Bounce.c (limited to 'TemplePushing.c4s/System.c4g/Bounce.c') diff --git a/TemplePushing.c4s/System.c4g/Bounce.c b/TemplePushing.c4s/System.c4g/Bounce.c new file mode 100644 index 0000000..e52c395 --- /dev/null +++ b/TemplePushing.c4s/System.c4g/Bounce.c @@ -0,0 +1,17 @@ +/*-- Makes some objects bounce after hit --*/ + +#strict 2 + +#appendto AXE1 +#appendto EFLN +#appendto SWOR + +protected func Hit() +{ + if (Random(2)) return _inherited(); + SetYDir(-20); + + Sound("Boing"); + + return 1; +} -- cgit v1.2.3-54-g00ecf