void LaunchDebris (string debrisname, vector force)
{SELFPARAM();
entity dbr = spawn();
- dbr.origin = self.absmin
+ vector org = 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);
- setorigin(dbr, dbr.origin);
+ setorigin(dbr, org);
_setmodel (dbr, debrisname );
dbr.skin = self.debrisskin;
dbr.colormap = self.colormap; // inherit team colors