if(((this.spawnflags & INVERT_TEAMS) == 0) == (DIFF_TEAM(this, player)))
return false;
+ // no need to call IS_OBSERVER(), observers never call use/touch functions which means this is never an observer
+ if(this.classname == "trigger_teleport" && this.spawnflags & TELEPORT_OBSERVERS_ONLY)
+ return false;
+
return true;
}