SERVER: Prevent non-AI from triggering point-and-kill sequence for Tesla-based weapons

This commit is contained in:
cypress 2024-01-07 18:46:20 -05:00
parent 2ccd55a2b5
commit 68bfc0f695

View file

@ -79,7 +79,7 @@ void(entity hit_ent, entity arc_parent, entity arc_owner, float arc_num, float d
self.state = self.hop_step = 0;
}
if(arc_owner != world) {
if(arc_owner != world && arc_owner.aistatus == "1") {
arc_owner.tesla_n_kills += 1;
// 50 points for waffe kills