.float target_spawn_id;
float target_spawn_count;
-void target_spawn_helper_setmodel()
-{SELFPARAM();
+void target_spawn_helper_setmodel(entity this)
+{
_setmodel(self, self.model);
}
-void target_spawn_helper_setsize()
-{SELFPARAM();
+void target_spawn_helper_setsize(entity this)
+{
setsize(self, self.mins, self.maxs);
}
spawnfunc(target_spawn)
{
initialize_field_db();
- self.use = target_spawn_use;
- self.message = strzone(strreplace("'", "\"", self.message));
- self.target_spawn_id = ++target_spawn_count;
- InitializeEntity(self, target_spawn_spawnfirst, INITPRIO_LAST);
+ this.use = target_spawn_use;
+ this.message = strzone(strreplace("'", "\"", this.message));
+ this.target_spawn_id = ++target_spawn_count;
+ InitializeEntity(this, target_spawn_spawnfirst, INITPRIO_LAST);
}
#endif