summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s/System.c4g/ShootInventory.c
diff options
context:
space:
mode:
authorJan <>2015-02-02 17:58:18 +0100
committerJan <_>2015-07-10 17:51:43 +0200
commitca61c54b9bd69af897e4cc9d4385137fb56fd11a (patch)
treea4363f466cea6de48ca81fadc08273d58698d2ff /TemplePushing.c4s/System.c4g/ShootInventory.c
parent32a9632fbca3dd7a88bd3154b84a3773af39c276 (diff)
downloadtempelschubsen-ca61c54b9bd69af897e4cc9d4385137fb56fd11a.tar.gz
tempelschubsen-ca61c54b9bd69af897e4cc9d4385137fb56fd11a.zip
TemplePushingBeta.c4s
Diffstat (limited to 'TemplePushing.c4s/System.c4g/ShootInventory.c')
-rw-r--r--TemplePushing.c4s/System.c4g/ShootInventory.c53
1 files changed, 45 insertions, 8 deletions
diff --git a/TemplePushing.c4s/System.c4g/ShootInventory.c b/TemplePushing.c4s/System.c4g/ShootInventory.c
index f2636dd..20bfef3 100644
--- a/TemplePushing.c4s/System.c4g/ShootInventory.c
+++ b/TemplePushing.c4s/System.c4g/ShootInventory.c
@@ -4,10 +4,13 @@
#appendto AXE1
#appendto EGBL
+#appendto SFLN
#appendto EFLN
#appendto GBLT
#appendto ROCK
#appendto SWOR
+#appendto SPER
+#appendto TSWB
protected func Activate(object clonk)
{
@@ -16,38 +19,72 @@ protected func Activate(object clonk)
// Sound
if (GetID() == EGBL)
{
+ Sound("Blast*");
Sound("Crystal3");
}
+ else if (GetID() == SPER)
+ {
+ Sound("Arrow");
+ }
+ else if (GetID() == TSWB)
+ {
+ Sound("Arrow");
+ }
else if (GetID() == GBLT)
{
+ Sound("Blast*");
Sound("Crystal3");
}
+ else if (GetID() == SWOR)
+ {
+ Sound("Blast*");
+ Sound("SwordHit*");
+ }
+ else if (GetID() == AXE1)
+ {
+ Sound("Blast*");
+ Sound("AxeHit*");
+ }
else
{
- Sound("Blast2");
+ Sound("Blast*");
}
- // Make shooting clonk responsible for possible kill
+ // Make shooting clonk responsible for possible kill and owner of object to be shot
SetController(clonk->GetOwner());
+ SetOwner(clonk->GetOwner());
// Shoot
if (GetID() == EGBL)
{
- Exit(0, -20 + 40 * clonk->GetDir());
+ Exit(0, -10 + 20 * clonk->GetDir());
+ SetYDir(-10);
SetXDir(-100 + 200 * clonk->GetDir());
}
else if (GetID() == ROCK)
{
- Exit(0, -15 + 30 * clonk->GetDir());
+ Exit(0, -10 + 20 * clonk->GetDir());
+ SetYDir(-15);
SetXDir(-100 + 200 * clonk->GetDir());
}
+ else if (GetID() == TSWB)
+ {
+ Exit(0, -5 + 10 * clonk->GetDir());
+ SetYDir(-30);
+ SetXDir(-50 + 100 * clonk->GetDir());
+ }
+ else if (GetID() == SPER)
+ {
+ Exit(0, -10 + 20 * clonk->GetDir(), -4, 0 + 180 * clonk->GetDir(), -150 + 300 * clonk->GetDir(), -7);
+ SetYDir(-7);
+ SetXDir(-175 + 350 * clonk->GetDir());
+ }
else
{
- Exit(0, -10 + 20 * clonk->GetDir());
+ Exit(0, -10 + 20 * clonk->GetDir(), 0, 0 + 180 * clonk->GetDir(), -80 + 160 * clonk->GetDir(), -15);
+ SetYDir(-15);
SetXDir(-80 + 160 * clonk->GetDir());
}
-
- SetYDir(-10);
-
+
return 1;
} \ No newline at end of file