c = 0;
while (c < 6)
{
- traceline (org, org + vec, true, world);
+ traceline (org, org + vec, true, NULL);
vec = vec * -1;
if (trace_fraction < 1)
{
loc = trace_endpos;
- traceline (loc, loc + vec, true, world);
+ traceline (loc, loc + vec, true, NULL);
if (trace_fraction >= 1)
org = loc + vec;
}
if(this.lodtarget1 != "")
{
- e = find(world, targetname, this.lodtarget1);
+ e = find(NULL, targetname, this.lodtarget1);
if(e)
{
this.lodmodel1 = e.model;
}
if(this.lodtarget2 != "")
{
- e = find(world, targetname, this.lodtarget2);
+ e = find(NULL, targetname, this.lodtarget2);
if(e)
{
this.lodmodel2 = e.model;
}
if(this.lodmodelindex1)
- if (!this.SendEntity)
+ if (!getSendEntity(this))
SetCustomizer(this, LOD_customize, LOD_uncustomize);
}
{
// trigger angles are used for one-way touches. An angle of 0 is assumed
// to mean no restrictions, so use a yaw of 360 instead.
- SetMovedir(self);
- self.solid = SOLID_TRIGGER;
+ SetMovedir(this);
+ this.solid = SOLID_TRIGGER;
SetBrushEntityModel(this);
- self.movetype = MOVETYPE_NONE;
- self.modelindex = 0;
- self.model = "";
+ this.movetype = MOVETYPE_NONE;
+ this.modelindex = 0;
+ this.model = "";
}
void InitSolidBSPTrigger(entity this)
this.movetype = MOVETYPE_PUSH;
if(this.modelindex == 0)
{
- objerror("InitMovingBrushTrigger: no brushes found!");
+ objerror(this, "InitMovingBrushTrigger: no brushes found!");
return false;
}
return true;