diff options
Diffstat (limited to 'TemplePushing.c4s/System.c4g/Bounce.c')
| -rw-r--r-- | TemplePushing.c4s/System.c4g/Bounce.c | 17 |
1 files changed, 17 insertions, 0 deletions
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; +} |
