]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Don't allow players to swallow anyone larger than them by default. This means you...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 3 May 2011 00:42:28 +0000 (03:42 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 3 May 2011 00:42:28 +0000 (03:42 +0300)
data/defaultVT.cfg
data/qcsrc/server/vore.qc

index 16e9c69fc989bf30eafcc3ff474e6b94d5a88831..5d1f0b4e9c6fd73d69558dd1db2afb62aec3cf25 100644 (file)
@@ -1538,6 +1538,7 @@ set g_vore_spawnshield 0 "when disabled, players with spawn shields cannot be sw
 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
+set g_vore_biggersize 1 "when enabled, a player can't swallow someone larger than them, when g_healthsize is enabled"\r
 set g_vore_showhealth 1 "when enabled, a predator can see their prey's health on the stomach board, and prey can see the health of players he's joining in the stomach"\r
 set g_vore_gurglesound 1 "predators make an ambient gurgling sound"\r
 set g_vore_soundocclusion 0.25 "directional player sounds are cut to this amount of their initial volume for eaten players (simulates hearing harder from the stomach)"\r
index 871b199a6d09bf5c8404e30c1ecadd5faa4e5e46..4adbd900e443396e1710e16780f118823e24f78d 100644 (file)
@@ -47,6 +47,8 @@ float Swallow_condition_check(entity prey)
                        swallow_complain = strcat("You cannot swallow more than ^2", cvar_string("g_balance_vore_swallow_limit"), "^7 players at a time\n");\r
                else if(cvar("g_vore_biggergut") && prey.stomach_load > self.stomach_load)\r
                        swallow_complain = "You cannot swallow someone with a bigger stomach than yours\n";\r
+               else if(cvar("g_vore_biggersize") && prey.scale > self.scale)\r
+                       swallow_complain = "You cannot swallow someone larger than you\n";\r
 \r
                if(swallow_complain != "")\r
                {\r