From: MirceaKitsune Date: Sat, 9 Jul 2011 16:47:22 +0000 (+0300) Subject: Rename _playerscale to _scalediff cvars X-Git-Url: http://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=commitdiff_plain;h=12c9aba5f21f4362ab0d8d00af36e2a466995288;hp=e7a6d2cbd9e1f697d7209d6b8aa10a06d51c4962 Rename _playerscale to _scalediff cvars --- diff --git a/data/balanceVT.cfg b/data/balanceVT.cfg index bd32fa7f..57edb3be 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_playerscale 1 "fill rate depends on predator size compared to prey size" +set g_balance_vore_swallow_speed_fill_scalediff 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 predator compared to the size of the prey" +set g_balance_vore_digestion_scalediff 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 prey compared to the size of the predator" +set g_balance_vore_kick_scalediff 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 f3967b45..e3cef54e 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -260,7 +260,7 @@ void Vore_SwallowStep(entity e) { float fill; fill = cvar("g_balance_vore_swallow_speed_fill") * frametime; - if(cvar("g_balance_vore_swallow_speed_fill_playerscale")) // fill rate depends on predator size compared to prey size + if(cvar("g_balance_vore_swallow_speed_fill_scalediff")) // fill rate depends on predator size compared to prey size fill *= (self.scale / e.scale); e.swallow_progress_prey += fill; @@ -414,7 +414,7 @@ void Vore_Digest() damage = cvar("g_balance_vore_digestion_damage") / reduce; // apply player scale to digestion damage - if(cvar("g_balance_vore_digestion_playerscale")) + if(cvar("g_balance_vore_digestion_scalediff")) damage *= (self.predator.scale / self.scale); Damage(self, self.predator, self.predator, damage, DEATH_DIGESTION, self.origin, '0 0 0'); @@ -466,7 +466,7 @@ void Vore_StomachKick() 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")) + if(cvar("g_balance_vore_kick_scalediff")) { damage *= (self.scale / self.predator.scale); force *= (self.scale / self.predator.scale);