From bc97ba73b39e15b46ed91b57d95c1713fd9bdd93 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Fri, 16 Mar 2012 02:47:11 +0200 Subject: [PATCH] Apply the bot offset to the swallow speed as well, not only damage. This hides the bot advantage better, while keeping the gameplay unchanged and fun --- data/qcsrc/server/vore.qc | 11 +++++++++++ docs/TODO.txt | 6 ++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index f88b245b..04433508 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -361,6 +361,17 @@ void Vore_SwallowStep(entity e) if(cvar("g_balance_vore_swallow_speed_fill_stomachload") && e.stomach_load) // fill rate is influenced by the prey's stomach load 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")) + { + float ofs; + ofs = pow(skill / cvar("skill_damage_center"), cvar("skill_damage")); + if(clienttype(self) == CLIENTTYPE_BOT) + fill *= ofs; + if(clienttype(e) == CLIENTTYPE_BOT) + fill /= ofs; + } + e.swallow_progress_prey += fill; } else diff --git a/docs/TODO.txt b/docs/TODO.txt index 812f7601..f944e983 100644 --- a/docs/TODO.txt +++ b/docs/TODO.txt @@ -118,7 +118,7 @@ - 0.8 BUG: Bots can still senect no weapon when they have the grabber -- 0.7 | 0.8: Maybe allow damage gained from digestion to go up to 250 +- 0.7 | 0.8: Maybe allow damage gained from digestion to go up to 250, as well as team healing - +0.8: Maybe turn health items into creatures that run around? @@ -148,4 +148,6 @@ - 0.7 | 0.8: Why does bot_number still get stuck at 7? -- 0.7: Smaller default zoom for minimap \ No newline at end of file +- 0.7: Smaller default zoom for minimap + +- 0.7 | 0.8 BUG: Display digits still appear on the 3rd person weapon when a player dies and becomes gibbed \ No newline at end of file -- 2.39.2