traceline(this.origin, this.origin + vup_left,MOVE_NOMONSTERS,this);
fup_left = trace_fraction;
- //te_lightning1(world,this.origin, trace_endpos);
+ //te_lightning1(NULL,this.origin, trace_endpos);
vup_right = (v_forward + (v_right * pitch + v_up * pitch)) * length;
traceline(this.origin,this.origin + vup_right ,MOVE_NOMONSTERS,this);
fup_right = trace_fraction;
- //te_lightning1(world,this.origin, trace_endpos);
+ //te_lightning1(NULL,this.origin, trace_endpos);
vdown_left = (v_forward + (v_left * pitch + v_down * pitch)) * length;
traceline(this.origin,this.origin + vdown_left,MOVE_NOMONSTERS,this);
fdown_left = trace_fraction;
- //te_lightning1(world,this.origin, trace_endpos);
+ //te_lightning1(NULL,this.origin, trace_endpos);
vdown_right = (v_forward + (v_right * pitch + v_down * pitch)) * length;
traceline(this.origin,this.origin + vdown_right,MOVE_NOMONSTERS,this);
fdown_right = trace_fraction;
- //te_lightning1(world,this.origin, trace_endpos);
+ //te_lightning1(NULL,this.origin, trace_endpos);
upwish = v_up * (fup_left + fup_right);
downwish = v_down * (fdown_left + fdown_right);
leftwish = v_left * (fup_left + fdown_left);
traceline(this.origin + vofs, this.origin + vofs + vt_left,MOVE_NOMONSTERS,this);
f_left = trace_fraction;
- //te_lightning1(world,this.origin, trace_endpos);
+ //te_lightning1(NULL,this.origin, trace_endpos);
vt_right = (v_forward + (v_right * pitch)) * length;
traceline(this.origin + vofs, this.origin + vofs + vt_right ,MOVE_NOMONSTERS,this);
f_right = trace_fraction;
- //te_lightning1(world,this.origin, trace_endpos);
+ //te_lightning1(NULL,this.origin, trace_endpos);
leftwish = v_left * f_left;
rightwish = v_right * f_right;
if(beamsweep_badpoint(trace_endpos,0))
return i / length;
#ifdef BEAMSTEER_VISUAL
- te_lightning1(world,a+u,b+u);
- te_lightning1(world,b+u,b-d);
+ te_lightning1(NULL,a+u,b+u);
+ te_lightning1(NULL,b+u,b-d);
#endif
a = trace_endpos;
}
Send_Effect(EFFECT_ROCKET_EXPLODE, this.origin, '0 0 0', 1);
this.owner.cnt += 1;
- this.owner = world;
+ this.owner = NULL;
this.nextthink = time;
setthink(this, SUB_Remove);
{
ee = this.enemy;
ee.health = -1;
- this.enemy = world;
+ this.enemy = NULL;
}