X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Ftriggers%2Ftarget%2Flocation.qc;h=5259276e43c0f1bb7c47ae87ea9365577e89bbc8;hb=63cf60651482d650ae40d005bd4847d5111123a9;hp=1430cabd81ee3364a9998ff3721aca30a7a47627;hpb=777dc5e23d7512c3e33576884d8d200f244d3006;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/triggers/target/location.qc b/qcsrc/common/triggers/target/location.qc index 1430cabd8..5259276e4 100644 --- a/qcsrc/common/triggers/target/location.qc +++ b/qcsrc/common/triggers/target/location.qc @@ -1,14 +1,21 @@ +#include "location.qh" #ifdef SVQC -void spawnfunc_target_location() +void target_push_init(entity this); + +spawnfunc(target_location) { - self.classname = "target_location"; + this.classname = "target_location"; // location name in netname // eventually support: count, teamgame selectors, line of sight? + + target_push_init(this); } -void spawnfunc_info_location() +spawnfunc(info_location) { - self.classname = "target_location"; - self.message = self.netname; + this.classname = "target_location"; + this.message = this.netname; + + target_push_init(this); } #endif