e.frame = 0;
e.skin = 0;
e.material = string_null;
- e.touch = sandbox_ObjectFunction_Touch;
+ settouch(e, sandbox_ObjectFunction_Touch);
e.think = sandbox_ObjectFunction_Think;
e.nextthink = time;
//e.effects |= EF_SELECTABLE; // don't do this all the time, maybe just when editing objects?
e.angles_y = self.v_angle.y;
}
- WITH(entity, self, e, CSQCMODEL_AUTOINIT(e));
+ CSQCMODEL_AUTOINIT(e);
object_count += 1;
return e;