]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Increase / decrease digestion damage and stomach kick damage based on the size of...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 8 Jul 2011 13:24:34 +0000 (16:24 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 8 Jul 2011 13:24:34 +0000 (16:24 +0300)
data/balanceVT.cfg
data/qcsrc/server/vore.qc

index 083446b7652a1544cfee731ca720cbbb67b0de50..487a6b6f8123aa1cf33bcad3664ac9a94b96d0ee 100644 (file)
@@ -200,14 +200,16 @@ set g_balance_vore_digestion_damage 5 "amount of damage applied to victims durin
 set g_balance_vore_digestion_vampire 1 "amount of health you gain from digestion"\r
 set g_balance_vore_digestion_vampire_stable 150 "maximum amount of health you can gain from digestion (best kept equal or less than g_balance_health_rotstable)"\r
 set g_balance_vore_digestion_distribute 1 "if enabled, digestion is reduced by the amount of prey you have. eg: having 2 prey will reduce digestion strength by 2"\r
+set g_balance_vore_digestion_playerscale 1 "if enabled, digestion damage is affected by the size of the player"\r
 set g_balance_vore_teamheal 1 "when enabled, having a team mate in your stomach will keep healing them by this amount"\r
 set g_balance_vore_teamheal_stable 150 "maximum amount of health you can gain from a teamheal (best kept equal or less than g_balance_health_rotstable)"\r
 set g_balance_vore_weight_gravity 1 "you get this heavier the more you eat, at 1 each meal makes you two times heavier"\r
 set g_balance_vore_weight_speed 0.15 "you get this slower the more you eat, at 0.5 each meal makes you two times slower"\r
-set g_balance_vore_kick_damage_min 15 "minimum amount of damage you can do with a stomach kick"\r
+set g_balance_vore_kick_damage_min 20 "minimum amount of damage you can do with a stomach kick"\r
 set g_balance_vore_kick_damage_max 30 "maximum amount of damage you can do with a stomach kick"\r
 set g_balance_vore_kick_delay 0.6 "how many seconds must pass before you can perform another stomach kick"\r
-set g_balance_vore_kick_force 140 "predators are pushed by this amount when stomach kicked, in the direction their prey is facing"\r
+set g_balance_vore_kick_force 180 "predators are pushed by this amount when stomach kicked, in the direction their prey is facing"\r
+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 3 "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_escapeprobability 0.005 "probability of getting regurgitated when the predator takes damage, based on the amount of damage dealt (0 = never, 1 = always)"\r
index 692776c66be13697cd29b51e0aef87f92d97c034..e5157453c2e7229168e924fd4378f3facf67711e 100644 (file)
@@ -378,7 +378,14 @@ void Vore_Digest()
                else\r
                        reduce = 1;\r
 \r
-               Damage(self, self.predator, self.predator, cvar("g_balance_vore_digestion_damage") / reduce, DEATH_DIGESTION, self.origin, '0 0 0');\r
+               float damage;\r
+               damage = cvar("g_balance_vore_digestion_damage") / reduce;\r
+\r
+               // apply player scale to digestion damage\r
+               if(cvar("g_balance_vore_digestion_playerscale"))\r
+                       damage *= self.predator.scale;\r
+\r
+               Damage(self, self.predator, self.predator, damage, DEATH_DIGESTION, self.origin, '0 0 0');\r
                if(cvar("g_balance_vore_digestion_vampire") && self.predator.health < cvar("g_balance_vore_digestion_vampire_stable"))\r
                        self.predator.health += cvar("g_balance_vore_digestion_vampire") / reduce;\r
 \r
@@ -422,9 +429,18 @@ void Vore_StomachKick()
        if(time > self.stomachkick_delay)\r
        {\r
                float damage;\r
+               vector force;\r
                damage = ceil(random() * (cvar("g_balance_vore_kick_damage_max") - cvar("g_balance_vore_kick_damage_min")) + cvar("g_balance_vore_kick_damage_min"));\r
+               force = v_forward * cvar("g_balance_vore_kick_force");\r
+\r
+               // apply player scale to the damage / force of the kick\r
+               if(cvar("g_balance_vore_kick_playerscale"))\r
+               {\r
+                       damage *= self.scale;\r
+                       force *= self.scale;\r
+               }\r
 \r
-               Damage(self.predator, self, self, damage, DEATH_STOMACHKICK, self.predator.origin, v_forward * cvar("g_balance_vore_kick_force"));\r
+               Damage(self.predator, self, self, damage, DEATH_STOMACHKICK, self.predator.origin, force);\r
                sound(self.predator, CHAN_PROJECTILE, strcat("weapons/hit", ftos(floor(random() * 8)), ".wav"), VOL_BASE, ATTN_NORM);\r
                self.predator.punchangle_x -= cvar("g_balance_vore_kick_predator_punchangle");\r
                self.punchangle_x += cvar("g_balance_vore_kick_prey_punchangle");\r