69 if(e.classname ==
"target_viewlocation_start")
75 if(e.classname ==
"target_viewlocation_end")
81 if(!this.
enemy) {
LOG_INFO(
"^1FAIL!");
delete(
this);
return; }
95 if(this.
target ==
"") {
LOG_INFO(
"^1FAIL!");
delete(
this);
return; }
136 spawnfunc_target_viewlocation_start(
this);
141void trigger_viewloc_updatelink(
entity this)
147NET_HANDLE(ENT_CLIENT_VIEWLOC_TRIGGER,
bool isnew)
151 float point1 = ReadShort();
152 float point2 = ReadShort();
161 setorigin(
this, this.
origin);
166 setthink(
this, trigger_viewloc_updatelink);
177 setorigin(
this, this.
origin);
183 this.
classname = ((this.
cnt == 2) ?
"target_viewlocation_end" :
"target_viewlocation_start");
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
const int INITPRIO_FINDTARGET
#define NET_HANDLE(id, param)
#define ReadAngleVector()
#define WriteHeader(to, id)
#define REGISTER_NET_LINKED(id)
void Net_LinkEntity(entity e, bool docull, float dt, bool(entity this, entity to, int sendflags) sendfunc)
bool WarpZoneLib_ExactTrigger_Touch(entity this, entity toucher, bool touchfunc)
void viewloc_link(entity this)
void viewloc_think(entity this)
void viewloc_init(entity this)
bool trigger_viewloc_send(entity this, entity to, int sf)
bool viewloc_send(entity this, entity to, int sf)
void WarpZoneLib_ExactTrigger_Init(entity this, bool unsetmodel)
#define FOREACH_CLIENT(cond, body)
void InitializeEntity(entity e, void(entity this) func, int order)