]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Don't allow players with spawn shields active to be swallowed
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 18 Apr 2011 16:00:44 +0000 (19:00 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 18 Apr 2011 16:00:44 +0000 (19:00 +0300)
data/defaultVT.cfg
data/qcsrc/server/vore.qc

index 3966b9b87e8c5f07093fca0c84195480d7c6c7a3..e11b69eb7a224f69daec2c0b60cd3634a186f4c8 100644 (file)
@@ -1530,6 +1530,7 @@ seta cl_vore_autodigest 0 "when enabled, the player will automatically begin dig
 set g_vore 1 "enables the vore system, you want this on!"\r
 set g_vore_digestion 1 "enables digestion system, you want this on!"\r
 set g_vore_kick 1 "enables stomach kick system, you want this on!"\r
+set g_vore_spawnshield 0 "when disabled, players with spawn shields cannot be swallowed"\r
 set g_vore_reversescoring 0 "reverses vore scoring, and gives digested prey a frag rather than the predator (offer yourself gameplay), does not affect suicides, weapon kills and team kills"\r
 set g_vore_teamvore 1 "allow players to swallow their team mates"\r
 set g_vore_biggergut 1 "when enabled, a player can't swallow someone with more players in their stomach than them"\r
index 6fa15248e59653384e05721116a88a844aef78a6..2bf9291993194a24605bc3e75645c11514f97b4d 100644 (file)
@@ -67,6 +67,18 @@ float Swallow_condition_check(entity prey)
                        return FALSE;\r
                }\r
 \r
+               if(!cvar("g_vore_spawnshield"))\r
+               if(prey.spawnshieldtime > time)\r
+               {\r
+                       if(time > self.complain_vore && self.BUTTON_ATCK)\r
+                       {\r
+                               play2(self, "misc/forbidden.wav");\r
+                               sprint(self, "You cannot swallow someone protected by the spawn shield\n");\r
+                               self.complain_vore = time + complain_delay_time;\r
+                       }\r
+                       return FALSE;\r
+               }\r
+\r
                return TRUE;\r
        }\r
        return FALSE;\r