From 575fb13f2245ce024ff8a81b3b8bb1052a9adff3 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Fri, 16 Mar 2012 02:51:20 +0200 Subject: [PATCH] Rename the cvar accordingly --- data/botsVT.cfg | 4 ++-- data/qcsrc/server/g_damage.qc | 4 ++-- data/qcsrc/server/vore.qc | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/data/botsVT.cfg b/data/botsVT.cfg index 9ee33645..d23a13b4 100644 --- a/data/botsVT.cfg +++ b/data/botsVT.cfg @@ -7,8 +7,8 @@ set bot_god 0 "When set, all bots are god mode (take no damage)" seta bot_prefix ^8[BOT]^7 "Prefix in front of the bot names" seta bot_suffix "" "Suffix behind the bot names" seta skill_auto 0 "when 1, \"skill\" gets adjusted to match the best player on the map" -seta skill_damage 0.05 "the greater or lower the skill, the more / less damage bots will do or take" -seta skill_damage_center 1 "center skill around which to apply the damage offset" +set skill_offset 0.05 "the greater or lower the skill, the more / less damage bots will deal / take, and the faster or slower their swallowing speed" +set skill_offset_center 1 "center skill around which to apply the offset" set bot_navigation_ignoreplayers 0 // FIXME remove this once the issue is solved set bot_sound_monopoly 0 "when enabled, only bots can make any noise" diff --git a/data/qcsrc/server/g_damage.qc b/data/qcsrc/server/g_damage.qc index 6007f910..56851c07 100644 --- a/data/qcsrc/server/g_damage.qc +++ b/data/qcsrc/server/g_damage.qc @@ -799,10 +799,10 @@ void Damage (entity targ, entity inflictor, entity attacker, float damage, float } // skill-based damage offset for bots - if(skill && cvar("skill_damage")) + if(skill && cvar("skill_offset")) { float ofs; - ofs = pow(skill / cvar("skill_damage_center"), cvar("skill_damage")); + ofs = pow(skill / cvar("skill_offset_center"), cvar("skill_offset")); if(clienttype(attacker) == CLIENTTYPE_BOT) damage *= ofs; if(clienttype(targ) == CLIENTTYPE_BOT) diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index 04433508..3ba0134a 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -362,10 +362,10 @@ void Vore_SwallowStep(entity e) fill *= (1 - ((e.stomach_load / e.stomach_maxload) * bound(0, cvar("g_balance_vore_swallow_speed_fill_stomachload"), 1))); // skill-based speed offset for bots - if(skill && cvar("skill_damage")) + if(skill && cvar("skill_offset")) { float ofs; - ofs = pow(skill / cvar("skill_damage_center"), cvar("skill_damage")); + ofs = pow(skill / cvar("skill_offset_center"), cvar("skill_offset")); if(clienttype(self) == CLIENTTYPE_BOT) fill *= ofs; if(clienttype(e) == CLIENTTYPE_BOT) -- 2.39.2