X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fgamemodes%2Fgamemode%2Fkeyhunt%2Fkeyhunt.qc;h=5af4c45b7ddc9b7752f5aee5eb8a0c194efe08e5;hp=5e0d3fcbbfaa0e475a8b6d0f3f87dc99ae18ac32;hb=70bba988cd32922d29e40235db6ad1d8149bdc67;hpb=13832240e226eba119844d7bd02ca51b617e586a diff --git a/qcsrc/common/gamemodes/gamemode/keyhunt/keyhunt.qc b/qcsrc/common/gamemodes/gamemode/keyhunt/keyhunt.qc index 5e0d3fcbbf..5af4c45b7d 100644 --- a/qcsrc/common/gamemodes/gamemode/keyhunt/keyhunt.qc +++ b/qcsrc/common/gamemodes/gamemode/keyhunt/keyhunt.qc @@ -299,7 +299,7 @@ void kh_Key_Detach(entity key) // runs every time a key is dropped or lost. Runs key.takedamage = DAMAGE_YES; // let key.team stay key.modelindex = kh_key_dropped; - navigation_dynamicgoal_set(key); + navigation_dynamicgoal_set(key, key.owner); key.kh_previous_owner = key.owner; key.kh_previous_owner_playerid = key.owner.playerid; } @@ -1077,9 +1077,9 @@ void havocbot_role_kh_carrier(entity this) navigation_goalrating_start(this); if(kh_Key_AllOwnedByWhichTeam() == this.team) - havocbot_goalrating_kh(this, 10, 0.1, 0.1); // bring home + havocbot_goalrating_kh(this, 10, 0.1, 0.05); // bring home else - havocbot_goalrating_kh(this, 4, 4, 1); // play defensively + havocbot_goalrating_kh(this, 4, 4, 0.5); // play defensively navigation_goalrating_end(this); @@ -1117,11 +1117,11 @@ void havocbot_role_kh_defense(entity this) key_owner_team = kh_Key_AllOwnedByWhichTeam(); if(key_owner_team == this.team) - havocbot_goalrating_kh(this, 10, 0.1, 0.1); // defend key carriers + havocbot_goalrating_kh(this, 10, 0.1, 0.05); // defend key carriers else if(key_owner_team == -1) - havocbot_goalrating_kh(this, 4, 1, 0.1); // play defensively + havocbot_goalrating_kh(this, 4, 1, 0.05); // play defensively else - havocbot_goalrating_kh(this, 0.1, 0.1, 10); // ATTACK ANYWAY + havocbot_goalrating_kh(this, 0.1, 0.1, 5); // ATTACK ANYWAY navigation_goalrating_end(this); @@ -1160,11 +1160,11 @@ void havocbot_role_kh_offense(entity this) key_owner_team = kh_Key_AllOwnedByWhichTeam(); if(key_owner_team == this.team) - havocbot_goalrating_kh(this, 10, 0.1, 0.1); // defend anyway + havocbot_goalrating_kh(this, 10, 0.1, 0.05); // defend anyway else if(key_owner_team == -1) - havocbot_goalrating_kh(this, 0.1, 1, 4); // play offensively + havocbot_goalrating_kh(this, 0.1, 1, 2); // play offensively else - havocbot_goalrating_kh(this, 0.1, 0.1, 10); // ATTACK! EMERGENCY! + havocbot_goalrating_kh(this, 0.1, 0.1, 5); // ATTACK! EMERGENCY! navigation_goalrating_end(this); @@ -1209,11 +1209,11 @@ void havocbot_role_kh_freelancer(entity this) int key_owner_team = kh_Key_AllOwnedByWhichTeam(); if(key_owner_team == this.team) - havocbot_goalrating_kh(this, 10, 0.1, 0.1); // defend anyway + havocbot_goalrating_kh(this, 10, 0.1, 0.05); // defend anyway else if(key_owner_team == -1) - havocbot_goalrating_kh(this, 1, 10, 4); // prefer dropped keys + havocbot_goalrating_kh(this, 1, 10, 2); // prefer dropped keys else - havocbot_goalrating_kh(this, 0.1, 0.1, 10); // ATTACK ANYWAY + havocbot_goalrating_kh(this, 0.1, 0.1, 5); // ATTACK ANYWAY navigation_goalrating_end(this);