#include "sv_domination.qh"
+#include <server/gamelog.qh>
#include <server/teamplay.qh>
bool g_domination;
this.enemy = NULL;
if (head.noise != "")
+ {
if(this.enemy)
_sound(this.enemy, CH_TRIGGER, head.noise, VOL_BASE, ATTEN_NORM);
else
_sound(this, CH_TRIGGER, head.noise, VOL_BASE, ATTEN_NORM);
+ }
if (head.noise1 != "")
play2all(head.noise1);
{
if(!IS_PLAYER(toucher))
return;
- if(GetResourceAmount(toucher, RESOURCE_HEALTH) < 1)
+ if(GetResource(toucher, RES_HEALTH) < 1)
return;
if(round_handler_IsActive() && !round_handler_IsRoundStarted())
if(it.cnt > -1) // this is just being fought
navigation_routerating(this, it, ratingscale, 5000);
else if(it.goalentity.cnt == 0) // unclaimed
- navigation_routerating(this, it, ratingscale * 0.5, 5000);
+ navigation_routerating(this, it, ratingscale, 5000);
else if(it.goalentity.team != this.team) // other team's point
- navigation_routerating(this, it, ratingscale * 0.2, 5000);
+ navigation_routerating(this, it, ratingscale, 5000);
});
}
{
navigation_goalrating_start(this);
havocbot_goalrating_controlpoints(this, 10000, this.origin, 15000);
- havocbot_goalrating_items(this, 8000, this.origin, 8000);
- //havocbot_goalrating_enemyplayers(this, 3000, this.origin, 2000);
+ havocbot_goalrating_items(this, 20000, this.origin, 8000);
+ //havocbot_goalrating_enemyplayers(this, 1500, this.origin, 2000);
havocbot_goalrating_waypoints(this, 1, this.origin, 3000);
navigation_goalrating_end(this);
entity player = M_ARGV(0, entity);
if(domination_roundbased)
- if(!round_handler_IsRoundStarted())
- player.player_blocked = 1;
- else
- player.player_blocked = 0;
+ player.player_blocked = !round_handler_IsRoundStarted();
}
MUTATOR_HOOKFUNCTION(dom, ClientConnect)