void LaunchDebris (string debrisname, vector force)
{SELFPARAM();
entity dbr = spawn();
- setorigin(dbr, self.absmin
+ dbr.origin = self.absmin
+ '1 0 0' * random() * (self.absmax.x - self.absmin.x)
+ '0 1 0' * random() * (self.absmax.y - self.absmin.y)
- + '0 0 1' * random() * (self.absmax.z - self.absmin.z));
+ + '0 0 1' * random() * (self.absmax.z - self.absmin.z);
+ setorigin(dbr, dbr.origin);
_setmodel (dbr, debrisname );
dbr.skin = self.debrisskin;
dbr.colormap = self.colormap; // inherit team colors
self.maxs_y = fabs(self.aiment.origin.y - self.enemy.origin.y) * 0.5;
self.maxs_z = fabs(self.aiment.origin.z - self.enemy.origin.z) * 0.5;
self.mins = -1 * self.maxs;
- setorigin(self, self.origin); setsize(self, self.mins, self.maxs); // link edict
+ setorigin(self, self.origin);
+ setsize(self, self.mins, self.maxs); // link edict
}
if(self.cnt == -1) // actually race_place -1