if(!this.scale) this.scale = 1;
if(!this.modelscale) this.modelscale = 1;
else if(this.modelscale < 0) this.modelscale = 0;
if(!this.scale) this.scale = 1;
if(!this.modelscale) this.modelscale = 1;
else if(this.modelscale < 0) this.modelscale = 0;
- self.origin_x = ReadCoord();
- self.origin_y = ReadCoord();
- self.origin_z = ReadCoord();
- setorigin(self, self.origin);
+ this.origin_x = ReadCoord();
+ this.origin_y = ReadCoord();
+ this.origin_z = ReadCoord();
+ setorigin(this, this.origin);
- self.colormod_x = ReadByte() / 255.0;
- self.colormod_y = ReadByte() / 255.0;
- self.colormod_z = ReadByte() / 255.0;
+ this.colormod_x = ReadByte() / 255.0;
+ this.colormod_y = ReadByte() / 255.0;
+ this.colormod_z = ReadByte() / 255.0;
- self.scale *= ReadByte() / 16.0; // beam radius
- self.modelscale *= ReadByte() / 16.0; // dlight radius
+ this.scale *= ReadByte() / 16.0; // beam radius
+ this.modelscale *= ReadByte() / 16.0; // dlight radius
- self.velocity_x = ReadCoord();
- self.velocity_y = ReadCoord();
- self.velocity_z = ReadCoord();
+ this.velocity_x = ReadCoord();
+ this.velocity_y = ReadCoord();
+ this.velocity_z = ReadCoord();