From: MirceaKitsune Date: Fri, 8 Jul 2011 13:24:34 +0000 (+0300) Subject: Increase / decrease digestion damage and stomach kick damage based on the size of... X-Git-Url: https://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=commitdiff_plain;h=328192ad4edba15666acde860838df3501ee268f Increase / decrease digestion damage and stomach kick damage based on the size of the player dealing them. Being bigger means you have a stronger digestion / kick, while being smaller makes you have weaker damage instead. --- diff --git a/data/balanceVT.cfg b/data/balanceVT.cfg index 083446b7..487a6b6f 100644 --- a/data/balanceVT.cfg +++ b/data/balanceVT.cfg @@ -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" 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)" 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" +set g_balance_vore_digestion_playerscale 1 "if enabled, digestion damage is affected by the size of the player" set g_balance_vore_teamheal 1 "when enabled, having a team mate in your stomach will keep healing them by this amount" 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)" set g_balance_vore_weight_gravity 1 "you get this heavier the more you eat, at 1 each meal makes you two times heavier" 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" -set g_balance_vore_kick_damage_min 15 "minimum amount of damage you can do with a stomach kick" +set g_balance_vore_kick_damage_min 20 "minimum amount of damage you can do with a stomach kick" set g_balance_vore_kick_damage_max 30 "maximum amount of damage you can do with a stomach kick" set g_balance_vore_kick_delay 0.6 "how many seconds must pass before you can perform another stomach kick" -set g_balance_vore_kick_force 140 "predators are pushed by this amount when stomach kicked, in the direction their prey is facing" +set g_balance_vore_kick_force 180 "predators are pushed by this amount when stomach kicked, in the direction their prey is facing" +set g_balance_vore_kick_playerscale 1 "if enabled, the damage / force of stomach kicks is affected by the size of the player" set g_balance_vore_kick_predator_punchangle 3 "your view gets tilted by this amount when receiving stomach kicks" set g_balance_vore_kick_prey_punchangle 6 "your view gets tilted by this amount when dealing stomach kicks" 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)" diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index 692776c6..e5157453 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -378,7 +378,14 @@ void Vore_Digest() else reduce = 1; - Damage(self, self.predator, self.predator, cvar("g_balance_vore_digestion_damage") / reduce, DEATH_DIGESTION, self.origin, '0 0 0'); + float damage; + damage = cvar("g_balance_vore_digestion_damage") / reduce; + + // apply player scale to digestion damage + if(cvar("g_balance_vore_digestion_playerscale")) + damage *= self.predator.scale; + + Damage(self, self.predator, self.predator, damage, DEATH_DIGESTION, self.origin, '0 0 0'); if(cvar("g_balance_vore_digestion_vampire") && self.predator.health < cvar("g_balance_vore_digestion_vampire_stable")) self.predator.health += cvar("g_balance_vore_digestion_vampire") / reduce; @@ -422,9 +429,18 @@ void Vore_StomachKick() if(time > self.stomachkick_delay) { float damage; + vector force; damage = ceil(random() * (cvar("g_balance_vore_kick_damage_max") - cvar("g_balance_vore_kick_damage_min")) + cvar("g_balance_vore_kick_damage_min")); + force = v_forward * cvar("g_balance_vore_kick_force"); + + // apply player scale to the damage / force of the kick + if(cvar("g_balance_vore_kick_playerscale")) + { + damage *= self.scale; + force *= self.scale; + } - Damage(self.predator, self, self, damage, DEATH_STOMACHKICK, self.predator.origin, v_forward * cvar("g_balance_vore_kick_force")); + Damage(self.predator, self, self, damage, DEATH_STOMACHKICK, self.predator.origin, force); sound(self.predator, CHAN_PROJECTILE, strcat("weapons/hit", ftos(floor(random() * 8)), ".wav"), VOL_BASE, ATTN_NORM); self.predator.punchangle_x -= cvar("g_balance_vore_kick_predator_punchangle"); self.punchangle_x += cvar("g_balance_vore_kick_prey_punchangle");