Skip to content

Commit

Permalink
Reverted Blacklist Job Report delay
Browse files Browse the repository at this point in the history
  • Loading branch information
APGRoboCop committed Oct 16, 2022
1 parent aa520a9 commit 5e3c6d5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bot_job_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ int JobReport(bot_t *pBot) {
job_ptr->message[MAX_CHAT_LENGTH - 1] = '\0';

UTIL_HostSay(pBot->pEdict, 1, job_ptr->message);
BlacklistJob(pBot, JOB_REPORT, 3.0f); // don't report the same thing too often
//BlacklistJob(pBot, JOB_REPORT, 3.0f); // don't report the same thing too often
return JOB_TERMINATED; // job done
}

Expand Down
10 changes: 5 additions & 5 deletions bot_job_think.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,16 @@ static jobFunctions_struct jf[JOB_TYPE_TOTAL] = {
// these must be in the right order for each job to run properly
jobList_struct jl[JOB_TYPE_TOTAL] = { //Only handles 32 not 45? [APG]RoboCop[CL]
{ 490, "JOB_SEEK_WAYPOINT" }, { PRIORITY_MAXIMUM, "JOB_GET_UNSTUCK" }, { 0, "JOB_ROAM" }, { 380, "JOB_CHAT" },
{ 560, "JOB_REPORT" }, { 480, "JOB_PICKUP_ITEM" }, { 530, "JOB_PICKUP_FLAG" },
{ 800, "JOB_PUSH_BUTTON" }, { 660, "JOB_USE_TELEPORT" }, { 750, "JOB_MAINTAIN_OBJECT" },
{ 590, "JOB_REPORT" }, { 480, "JOB_PICKUP_ITEM" }, { 530, "JOB_PICKUP_FLAG" },
{ 800, "JOB_PUSH_BUTTON" }, { 650, "JOB_USE_TELEPORT" }, { 750, "JOB_MAINTAIN_OBJECT" },
{ 760, "JOB_BUILD_SENTRY" }, { 510, "JOB_BUILD_DISPENSER" }, { 690, "JOB_BUILD_TELEPORT" },
{ 400, "JOB_BUFF_ALLY" }, { 550, "JOB_ESCORT_ALLY" },
{ 460, "JOB_CALL_MEDIC" }, // this should be a higher priority than JOB_GET_HEALTH
{ 450, "JOB_GET_HEALTH" }, { 440, "JOB_GET_ARMOR" }, { 500, "JOB_GET_AMMO" }, { 670, "JOB_DISGUISE" },
{ 190, "JOB_FEIGN_AMBUSH" }, { 580, "JOB_SNIPE" }, { 250, "JOB_GUARD_WAYPOINT" }, { 610, "JOB_DEFEND_FLAG" },
{ 650, "JOB_GET_FLAG" }, { 780, "JOB_CAPTURE_FLAG" }, { 340, "JOB_HARRASS_DEFENSE" },
{ 190, "JOB_FEIGN_AMBUSH" }, { 560, "JOB_SNIPE" }, { 250, "JOB_GUARD_WAYPOINT" }, { 610, "JOB_DEFEND_FLAG" },
{ 660, "JOB_GET_FLAG" }, { 780, "JOB_CAPTURE_FLAG" }, { 340, "JOB_HARRASS_DEFENSE" },
{ 700, "JOB_ROCKET_JUMP" }, { 730, "JOB_CONCUSSION_JUMP" },
{ 390, "JOB_DETPACK_WAYPOINT" }, { 540, "JOB_PIPETRAP" }, { 570, "JOB_INVESTIGATE_AREA" },
{ 390, "JOB_DETPACK_WAYPOINT" }, { 540, "JOB_PIPETRAP" }, { 600, "JOB_INVESTIGATE_AREA" },
{ 630, "JOB_PURSUE_ENEMY" }, { 200, "JOB_PATROL_HOME" }, { 710, "JOB_SPOT_STIMULUS" },
{ 640, "JOB_ATTACK_BREAKABLE" }, { 430, "JOB_ATTACK_TELEPORT" }, { 620, "JOB_SEEK_BACKUP" },
{ 300, "JOB_AVOID_ENEMY" }, { 770, "JOB_AVOID_AREA_DAMAGE" },
Expand Down
2 changes: 2 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ TODO List:-

>> To allow bots to use Nail Guns for destroying SG turrets, when out of nades or from a long distance

>> To prevent bots from shooting at spy corpses too long as, they aren't aware that a player switched teams as enemy spy

>> Allow bots to toss grenades at a higher angle and from a lower range as their target aim is too far

>> BONUS: Maybe add a feature for bots to have experience and wisdom or learned data in order to be more human
Expand Down

0 comments on commit 5e3c6d5

Please sign in to comment.