]> git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Rename the cvar accordingly
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 16 Mar 2012 00:51:20 +0000 (02:51 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 16 Mar 2012 00:51:20 +0000 (02:51 +0200)
data/botsVT.cfg
data/qcsrc/server/g_damage.qc
data/qcsrc/server/vore.qc

index 9ee336450923a6bcf8f5b34775fbec8fb42c10a0..d23a13b40931ab14fa4bb4d0892148201569bd14 100644 (file)
@@ -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"\r
 seta bot_suffix ""     "Suffix behind the bot names"\r
 seta skill_auto 0      "when 1, \"skill\" gets adjusted to match the best player on the map"\r
-seta skill_damage 0.05 "the greater or lower the skill, the more / less damage bots will do or take"\r
-seta skill_damage_center 1 "center skill around which to apply the damage offset"\r
+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"\r
+set skill_offset_center 1 "center skill around which to apply the offset"\r
 \r
 set bot_navigation_ignoreplayers 0 // FIXME remove this once the issue is solved\r
 set bot_sound_monopoly 0 "when enabled, only bots can make any noise"\r
index 6007f9105f8de95caf878a39a68b8740d03dd3d5..56851c07464187b7c1fc7ba345ab22661c29cf61 100644 (file)
@@ -799,10 +799,10 @@ void Damage (entity targ, entity inflictor, entity attacker, float damage, float
                }\r
 \r
                // skill-based damage offset for bots\r
-               if(skill && cvar("skill_damage"))\r
+               if(skill && cvar("skill_offset"))\r
                {\r
                        float ofs;\r
-                       ofs = pow(skill / cvar("skill_damage_center"), cvar("skill_damage"));\r
+                       ofs = pow(skill / cvar("skill_offset_center"), cvar("skill_offset"));\r
                        if(clienttype(attacker) == CLIENTTYPE_BOT)\r
                                damage *= ofs;\r
                        if(clienttype(targ) == CLIENTTYPE_BOT)\r
index 04433508b43ad5398659ee8651c08d44cea63f81..3ba0134a645684ffbee796815d5e8eaa6b814ac4 100644 (file)
@@ -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)));\r
 \r
                // skill-based speed offset for bots\r
-               if(skill && cvar("skill_damage"))\r
+               if(skill && cvar("skill_offset"))\r
                {\r
                        float ofs;\r
-                       ofs = pow(skill / cvar("skill_damage_center"), cvar("skill_damage"));\r
+                       ofs = pow(skill / cvar("skill_offset_center"), cvar("skill_offset"));\r
                        if(clienttype(self) == CLIENTTYPE_BOT)\r
                                fill *= ofs;\r
                        if(clienttype(e) == CLIENTTYPE_BOT)\r