From: MirceaKitsune Date: Sat, 9 Jul 2011 16:46:00 +0000 (+0300) Subject: Swallow speed, digestion damage, and stomach kick damage, now depend on the size... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e7a6d2cbd9e1f697d7209d6b8aa10a06d51c4962;p=voretournament%2Fvoretournament.git Swallow speed, digestion damage, and stomach kick damage, now depend on the size of the predator compared to the size of the prey, rather than the size of the predator alone. --- diff --git a/data/balanceVT.cfg b/data/balanceVT.cfg index 3c87d12e..bd32fa7f 100644 --- a/data/balanceVT.cfg +++ b/data/balanceVT.cfg @@ -188,7 +188,7 @@ set g_balance_grabber_reload_time 2 set g_balance_vore_swallow_range 100 "distance below which you can swallow another player when facing them" set g_balance_vore_swallow_limit 3 "how many players can fit in the stomach at a time, may range between 1 and 9" set g_balance_vore_swallow_speed_fill 3 "how long it takes to swallow a player, 0 is instant" -set g_balance_vore_swallow_speed_fill_healthsize 1 "fill rate depends on predator size" +set g_balance_vore_swallow_speed_fill_playerscale 1 "fill rate depends on predator size compared to prey size" set g_balance_vore_swallow_speed_decrease 0.2 "how fast the swallow progress decreases, when the predator is no longer swallowing" set g_balance_vore_swallow_speed_cutspd 0.5 "prey movement slows down by this amount the closer they are to being swallowed" set g_balance_vore_swallow_speed 1 "how long it takes to swallow a player" @@ -206,7 +206,7 @@ set g_balance_vore_digestion_damage 4 "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_digestion_playerscale 1 "if enabled, digestion damage is affected by the size of the predator compared to the size of the prey" 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" @@ -215,7 +215,7 @@ set g_balance_vore_kick_damage_min 30 "minimum amount of damage you can do with set g_balance_vore_kick_damage_max 45 "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 420 "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_playerscale 1 "if enabled, the damage / force of stomach kicks is affected by the size of the prey compared to the size of the predator" set g_balance_vore_kick_predator_punchangle 6 "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_kick_cutregurgitate 0.75 "probability that a stomach kick will cause the predator to lose a scheduled regurgitation" diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index 511af9c5..f3967b45 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -260,8 +260,8 @@ void Vore_SwallowStep(entity e) { float fill; fill = cvar("g_balance_vore_swallow_speed_fill") * frametime; - if(cvar("g_balance_vore_swallow_speed_fill_healthsize")) // fill rate depends on predator size - fill *= self.scale; + if(cvar("g_balance_vore_swallow_speed_fill_playerscale")) // fill rate depends on predator size compared to prey size + fill *= (self.scale / e.scale); e.swallow_progress_prey += fill; } @@ -415,7 +415,7 @@ void Vore_Digest() // apply player scale to digestion damage if(cvar("g_balance_vore_digestion_playerscale")) - damage *= self.predator.scale; + damage *= (self.predator.scale / self.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")) @@ -468,8 +468,8 @@ void Vore_StomachKick() // 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.scale / self.predator.scale); + force *= (self.scale / self.predator.scale); } Damage(self.predator, self, self, damage, DEATH_STOMACHKICK, self.predator.origin, force);