self.lock_time = 0;
}
+ if(self.lock_time > time)
+ return;
+
if(trace_ent != world)
{
if(teams_matter && trace_ent.team == self.team)
trace_ent = world;
}
- if(self.lock_time > time)
- return;
-
if(self.lock_target == world && trace_ent != world)
self.lock_target = trace_ent;
}
else
{
- self.lock_strength = max(self.lock_strength - decr, 0);
+ if(trace_ent)
+ self.lock_strength = max(self.lock_strength - decr * 2, 0);
+ else
+ self.lock_strength = max(self.lock_strength - decr, 0);
if(self.lock_strength == 0)
self.lock_target = world;