]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Also turn your predator into your pusher. So we make a frag out of regurgitating...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 7 Sep 2010 10:57:46 +0000 (13:57 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 7 Sep 2010 10:57:46 +0000 (13:57 +0300)
data/qcsrc/server/vore.qc

index 00d21e15624af1e2a73d9cb33aed2f72b42a8d1c..88d81546f00f6400a7d8e62d0afa65adc25363c9 100644 (file)
@@ -97,6 +97,8 @@ void Vore_Weight_apply(entity e)
        e.vore_oldstomachload = e.stomach_load;\r
 }\r
 \r
+.entity pusher;\r
+.float pushltime;\r
 void Vore_Swallow(entity e)\r
 {\r
        // this player is beening swallowed by another player, apply the proper changes\r
@@ -112,6 +114,9 @@ void Vore_Swallow(entity e)
        e.alpha = -1; // best way of hiding / showing the eaten player\r
        e.aiment = e.eater; // follow the predator. Is automatically unset\r
 \r
+       e.pusher = e.eater; // so we can frag players by regurgitating them in deadly pits\r
+       e.pushltime = time + cvar("g_maxpushtime");\r
+\r
        Vore_CameraEffect_Set(e);\r
 \r
        // drop keys (KH) and flags (CTF) when we get swallowed\r