From ce434f394fd8195965b2f31d98325d2b26c8d06e Mon Sep 17 00:00:00 2001 From: div0 Date: Mon, 28 Sep 2009 15:02:50 +0000 Subject: [PATCH] improved bot skill system with a config file now... this bot config file is mostly balanced now git-svn-id: svn://svn.icculus.org/nexuiz/trunk@7977 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/bots.txt | 42 ++++++++++++++++++------------------ data/qcsrc/server/bot/bot.qc | 10 ++++----- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/data/bots.txt b/data/bots.txt index 5557c431d..eab32aa2d 100644 --- a/data/bots.txt +++ b/data/bots.txt @@ -1,21 +1,21 @@ -//bot configuration: name model skin shirt-color pants-color team-override -//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 -Hellfire carni 0 4 0 0 -Toxic carni 1 14 7 0 -Discovery crash 0 2 6 0 -Pegasus grunt 0 13 11 0 -Eureka headhunter 0 12 7 0 -Airhead insurrectionist 0 11 1 0 -Gator lurk 0 3 10 0 -Delirium lurk 1 8 12 0 -Death lycanthrope 0 4 11 0 -Scorcher marine 0 13 13 0 -Necrotic nexus 0 12 14 0 -Dominator nexus 1 3 9 0 -Thunderstorm nexus 2 13 6 0 -Mystery pyria 0 9 14 0 -Lion shock 0 0 4 0 -Sensible skadi 0 9 9 0 -Shadow specop 0 4 8 0 -Resurrection visitant 0 1 1 0 \ No newline at end of file +//bot configuration: name model skin shirt pants team keyboard use moving dodging ping weapon use aggressivity range aiming calmhand mouse fightthink aithink +//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 +Hellfire carni 0 4 0 0 0 0 -0.5 -1 1 1 -0.5 -1 -1 2 0.5 -1 +Toxic carni 1 14 7 0 -1 -1.5 -0.5 0 1 0 0 0 2 -0.5 -0.5 1 +Discovery crash 0 2 6 0 0 -1 -0.5 -0.5 1 -0.5 0.5 1.5 -0.5 -1 1 0.5 +Pegasus grunt 0 13 11 0 1 1 1 1 -1 0 0.5 0 -2 0 -1 0 +Eureka headhunter 0 12 7 0 0 0 -1.5 -0.5 -0.5 0 0 0 0 -0.5 1.5 1.5 +Airhead insurrectionist 0 11 1 0 -1 -1.5 -1 -0.5 1 1 -1 1 -0.5 1 0.5 0 +Gator lurk 0 3 10 0 0 1 0 0.5 -0.5 0.5 -0.5 -1 0 0 -0.5 0 +Delirium lurk 1 8 12 0 0 -1 -1 -1 0 2 0 1 0 2 -1 -1 +Death lycanthrope 0 4 11 0 -0.5 0 0 1 -0.5 0 1 0 0 0 0 0 +Scorcher marine 0 13 13 0 0 -1 0 -0.5 0.5 1 0 1 -2 1 0 0 +Necrotic nexus 0 12 14 0 0 0 0 1 0 -1 -0.5 -1 1 0 0 0 +Dominator nexus 1 3 9 0 0 0 0 2 -1 0 0 0 -1 0 0 0 +Thunderstorm nexus 2 13 6 0 0 0 0 -0.5 -1 1 0.5 0.5 -0.5 0 0.5 0 +Mystery pyria 0 9 14 0 1 1 1 1 -1 -1 0 1 1 -2 -1 -1 +Lion shock 0 0 4 0 1 1.5 2 -1 -1 -1 1 0 1 -0.5 -1 -1 +Sensible skadi 0 9 9 0 0 0 0.5 -1 0 -1 0 -1 2.5 -1.5 1 0.5 +Shadow specop 0 4 8 0 -0.5 2 1 0 0 -1 0 -1 0 1 -1 -0.5 +Resurrection visitant 0 1 1 0 0 -0.5 -0.5 0 2 -1 -1 -1 0 -1 1 1 diff --git a/data/qcsrc/server/bot/bot.qc b/data/qcsrc/server/bot/bot.qc index f2626d997..96cef5b6a 100644 --- a/data/qcsrc/server/bot/bot.qc +++ b/data/qcsrc/server/bot/bot.qc @@ -170,9 +170,9 @@ void bot_setnameandstuff() #define READSKILL(f,w,r) if(argv(prio) != "") self.f = stof(argv(prio)) * (w); else self.f = (!cvar("g_campaign")) * (2 * random() - 1) * (r) * (w); ++prio //print(bot_name, ": ping=", argv(9), "\n"); - READSKILL(havocbot_keyboardskill, 1, 0.5); // keyboards kill + READSKILL(havocbot_keyboardskill, 0.5, 0.5); // keyboards kill READSKILL(bot_moveskill, 2, 0); // moves kill - READSKILL(bot_dodgeskill, 1, 0); // dodges kill + READSKILL(bot_dodgeskill, 2, 0); // dodges kill READSKILL(bot_pingskill, 0.5, 0); // pings kill @@ -180,11 +180,11 @@ void bot_setnameandstuff() READSKILL(bot_aggresskill, 1, 0); // aggres kill READSKILL(bot_rangepreference, 1, 0); // reads kill - READSKILL(bot_aimskill, 1, 0); // aims kill + READSKILL(bot_aimskill, 2, 0); // aims kill READSKILL(bot_offsetskill, 2, 0.5); // offsets kill - READSKILL(bot_mouseskill, 0.5, 0.5); // mouses kill + READSKILL(bot_mouseskill, 1, 0.5); // mouses kill - READSKILL(bot_thinkskill, 0.5, 0.5); // thinks kill + READSKILL(bot_thinkskill, 1, 0.5); // thinks kill READSKILL(bot_aiskill, 2, 0); // "ai"s kill self.bot_config_loaded = TRUE; -- 2.39.2