]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
75% probability that receiving a stomach kick will cause you to abort regurgitation
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 8 Jul 2011 17:13:50 +0000 (20:13 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 8 Jul 2011 17:13:50 +0000 (20:13 +0300)
data/balanceVT.cfg
data/qcsrc/server/vore.qc

index 92745824b3ffd01905583a9ab52c44fd62a1bbbb..8cac88b256831b20eac39d95f9cc84bcc828305f 100644 (file)
@@ -212,5 +212,6 @@ set g_balance_vore_kick_force 420 "predators are pushed by this amount when stom
 set g_balance_vore_kick_playerscale 1 "if enabled, the damage / force of stomach kicks is affected by the size of the player"\r
 set g_balance_vore_kick_predator_punchangle 6 "your view gets tilted by this amount when receiving stomach kicks"\r
 set g_balance_vore_kick_prey_punchangle 6 "your view gets tilted by this amount when dealing stomach kicks"\r
+set g_balance_vore_kick_cutregurgitate 0.75 "probability that a stomach kick will cause the predator to lose a scheduled regurgitation"\r
 set g_balance_vore_escapeprobability 0.002 "probability of getting regurgitated when the predator takes damage, based on the amount of damage dealt (0 = never, 1 = always)"\r
 // }}}\r
index e5157453c2e7229168e924fd4378f3facf67711e..18dddf8b70a208ae5ad7df3a1011d17b582ce8db 100644 (file)
@@ -445,6 +445,10 @@ void Vore_StomachKick()
                self.predator.punchangle_x -= cvar("g_balance_vore_kick_predator_punchangle");\r
                self.punchangle_x += cvar("g_balance_vore_kick_prey_punchangle");\r
 \r
+               // abort the predator's scheduled regurgitation\r
+               if(random() < cvar("g_balance_vore_kick_cutregurgitate"))\r
+                       self.predator.regurgitate_prepare = 0;\r
+\r
                self.stomachkick_delay = time + cvar("g_balance_vore_kick_delay");\r
        }\r
 }\r