From eb0a3e177cfebcdd07434d6d5ce142599142a0fa Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Thu, 9 Sep 2010 18:55:13 +0300 Subject: [PATCH] Split the vore_think skill in two categories (predator and prey). The bigger the predator skill, the better the bot will be at eating you. The better their prey skill, the more trouble they'll cause inside your belly. --- data/bots.txt | 26 +++++++++++------------ data/qcsrc/server/bot/bot.qc | 3 ++- data/qcsrc/server/bot/bot.qh | 3 ++- data/qcsrc/server/bot/havocbot/vore_ai.qc | 4 ++-- 4 files changed, 19 insertions(+), 17 deletions(-) diff --git a/data/bots.txt b/data/bots.txt index 5ceb17c0..9bb9b302 100644 --- a/data/bots.txt +++ b/data/bots.txt @@ -1,15 +1,15 @@ -//bot configuration: name model skin shirt pants team keyboard use moving dodging ping weapon use aggressivity range aiming calmhand mouse fightthink aithink vore vorethink vorefear voreteamheal +//bot configuration: name model skin shirt pants team keyboard use moving dodging ping weapon use aggressivity range aiming calmhand mouse fightthink aithink vore predskill preyskill fear teamheal //default team values (team-override): 1 = red, 2 = blue, 3 = yellow, 4 = pink //use -1 for shirt-color or pants-color to get random colors -DarkVixen vixen.zym 1 4 0 0 0 0 -0.5 -1 1 1 -0.5 -1 -1 2 0.5 -1 1.25 1.5 0.5 -Rainbow vixen.zym 1 15 0 0 0 -1 -1 -1 0 2 0 1 0 2 -1 -1 0.75 0.5 1.25 -VorePrincess vixen.zym 0 -1 0 0 -0.5 0 0 1 -0.5 0 1 0 0 0 0 0 1.5 1.25 0.75 -Eater vixen.zym 0 1 1 0 0 -1 0 -0.5 0.5 1 0 1 -2 1 0 0 1 1 0.75 -HungryFox vixen.zym 1 8 14 0 0 0 0 1 0 -1 -0.5 -1 1 0 0 0 1.25 1 0.5 -Angel vixen.zym 1 0 0 0 0 0 0 2 -1 0 0 0 -1 0 0 0 0.75 1.25 1.5 -Mystic vixen.zym 0 11 4 0 0 0 0 -0.5 -1 1 0.5 0.5 -0.5 0 0.5 0 1 1.25 1 -Sweetie vixen.zym 0 9 9 0 1 1 1 1 -1 -1 0 1 1 -2 -1 -1 1 0.5 1.25 -Silver vixen.zym 1 6 5 0 1 1.5 2 -1 -1 -1 1 0 1 -0.5 -1 -1 1.25 1 1 -Shadow vixen.zym 0 4 8 0 -0.5 2 1 0 0 -1 0 -1 0 1 -1 -0.5 1.25 1.25 0.75 -BellyFox vixen.zym 1 12 -1 0 1 1 1 1 -1 0 0.5 0 -2 0 -1 0 0.75 1 1 -Snack vixen.zym 1 -1 -1 0 0 0 -1.5 -0.5 -0.5 0 0 0 0 -0.5 1.5 1.5 0.75 1 1.25 \ No newline at end of file +DarkVixen vixen.zym 1 4 0 0 0 0 -0.5 -1 1 1 -0.5 -1 -1 2 0.5 -1 1.25 1.25 1.5 0.5 +Rainbow vixen.zym 1 15 0 0 0 -1 -1 -1 0 2 0 1 0 2 -1 -1 0.75 0.5 0.5 1.25 +VorePrincess vixen.zym 0 -1 0 0 -0.5 0 0 1 -0.5 0 1 0 0 0 0 0 1.5 1.25 1.25 0.75 +Eater vixen.zym 0 1 1 0 0 -1 0 -0.5 0.5 1 0 1 -2 1 0 0 1 0.75 1 0.75 +HungryFox vixen.zym 1 8 14 0 0 0 0 1 0 -1 -0.5 -1 1 0 0 0 1.25 1 1 0.5 +Angel vixen.zym 1 0 0 0 0 0 0 2 -1 0 0 0 -1 0 0 0 0.75 1.25 1.25 1.5 +Mystic vixen.zym 0 11 4 0 0 0 0 -0.5 -1 1 0.5 0.5 -0.5 0 0.5 0 1 1.25 1.25 1 +Sweetie vixen.zym 0 9 9 0 1 1 1 1 -1 -1 0 1 1 -2 -1 -1 1 0.75 0.5 1.25 +Silver vixen.zym 1 6 5 0 1 1.5 2 -1 -1 -1 1 0 1 -0.5 -1 -1 1.25 1 1 1 +Shadow vixen.zym 0 4 8 0 -0.5 2 1 0 0 -1 0 -1 0 1 -1 -0.5 1.25 1.5 1.25 0.75 +BellyFox vixen.zym 1 12 -1 0 1 1 1 1 -1 0 0.5 0 -2 0 -1 0 0.75 0.5 1 1 +Snack vixen.zym 1 -1 -1 0 0 0 -1.5 -0.5 -0.5 0 0 0 0 -0.5 1.5 1.5 0.75 0.75 1 1.25 \ No newline at end of file diff --git a/data/qcsrc/server/bot/bot.qc b/data/qcsrc/server/bot/bot.qc index c9c1e44a..aed35b42 100644 --- a/data/qcsrc/server/bot/bot.qc +++ b/data/qcsrc/server/bot/bot.qc @@ -191,7 +191,8 @@ void bot_setnameandstuff() READSKILL(bot_thinkskill, 1, 0.5); // think skill READSKILL(bot_aiskill, 2, 0); // "ai" skill - READSKILL(bot_vorethink, 1, 0.5); // vore think skill + READSKILL(bot_vorethinkpred, 1, 0.5); // vore predator skill + READSKILL(bot_vorethinkprey, 1, 0.5); // vore prey skill READSKILL(bot_vorefear, 1, 0.5); // vore fear skill READSKILL(bot_voreteamheal, 1, 0.5); // vore teamheal skill diff --git a/data/qcsrc/server/bot/bot.qh b/data/qcsrc/server/bot/bot.qh index 21adcf1a..109f5d26 100644 --- a/data/qcsrc/server/bot/bot.qh +++ b/data/qcsrc/server/bot/bot.qh @@ -38,7 +38,8 @@ float autoskill_nextthink; .float bot_thinkskill; // target choice .float bot_aiskill; // strategy choice -.float bot_vorethink; // vore decision time +.float bot_vorethinkpred; // vore decision time for predators +.float bot_vorethinkprey; // vore decision time for prey .float bot_vorefear; // vore fear choice .float bot_voreteamheal; // vore teamheal choice diff --git a/data/qcsrc/server/bot/havocbot/vore_ai.qc b/data/qcsrc/server/bot/havocbot/vore_ai.qc index 0b46daeb..2fdc0f9f 100644 --- a/data/qcsrc/server/bot/havocbot/vore_ai.qc +++ b/data/qcsrc/server/bot/havocbot/vore_ai.qc @@ -110,8 +110,8 @@ void Vore_AI() randomtry_pred /= cvar("bot_ai_vore_fear") * self.bot_vorefear; if(prey.items & IT_INVINCIBLE) // avoid eating bots that have the Invincible powerup randomtry_pred /= cvar("bot_ai_vore_fear") * self.bot_vorefear; - decide_pred_time = cvar("bot_ai_vore_decide_pred") / (skill * 2 + 1) / self.bot_vorethink; - decide_prey_time = cvar("bot_ai_vore_decide_prey") / (skill * 2 + 1) / self.bot_vorethink; + decide_pred_time = cvar("bot_ai_vore_decide_pred") / (skill * 2 + 1) / self.bot_vorethinkpred; + decide_prey_time = cvar("bot_ai_vore_decide_prey") / (skill * 2 + 1) / self.bot_vorethinkprey; if(time > self.decide_swallow) if(Swallow_condition_check_bot(prey)) -- 2.39.2