voice no longer hard-coded, bogeydope ordering fix, tripwire ignoring on-ground units
This commit is contained in:
@@ -45,6 +45,10 @@ fn tripwire(
|
||||
}
|
||||
|
||||
for (n_id, n_position, n_heading) in npc.iter() {
|
||||
if n_position.angels() == 0 {
|
||||
// ignore on-ground units
|
||||
continue;
|
||||
}
|
||||
let distance = n_position.distance_to_nmi(p_position);
|
||||
if distance <= p_tripwire.range && !p_tripwire.reported.contains(n_id) {
|
||||
p_tripwire.reported.push(*n_id);
|
||||
|
||||
Reference in New Issue
Block a user