function Create(self) self.lista = {}; --TDExplosives self.lista[1] = "Frag Grenade"; self.lista[2] = "Blue Bomb"; self.lista[3] = "Standard Bomb"; self.lista[4] = "Grenade"; self.lista[5] = "Cluster Grenade"; self.lista[6] = "Disruptor Grenade"; self.lista[7] = "Impulse Grenade"; self.lista[8] = "Pineapple Grenade"; self.lista[9] = "Stick Grenade"; self.lista[10] = "Molotov Cocktail"; self.lista[11] = "Stick Grenade"; self.lista[12] = "Frag Shell"; self.lista[13] = "Coalition Flak Shell"; self.lista[14] = "Coalition Spike Shell"; self.lista[15] = "Particle Dummy Grenade Launcher"; --all this was vanilla self.lista[16] = "Plasma Grenade"; --By me self.lista[17] = "SHG"; --By me self.lista[18] = "Mk 2 grenade"; --By me self.lista[19] = "S-Mine 35"; --By me self.lista[20] = "AT-Mine"; --By me self.lista[21] = "Green Gas Grenade"; --By Geti self.lista[22] = "Grenade (HE)"; --By Geti self.lista[23] = "Curry Onigiri"; --by blargiefarg self.lista[24] = "D61 Chaff Grenade"; --By Darlos9D self.lista[25] = "D64 Cluster Mine"; --By Darlos9D self.lista[26] = "D65 EMP Grenade"; --By Darlos9D self.lista[27] = "Plasma Grenade"; --By Gotcha! self.lista[28] = "Pulse Grenade"; --By Gotcha! self.lista[29] = "Dynamite"; --By Gotcha! self.listb = {}; --AEmitters self.listb[1] = "Auto Cannon Shot"; self.listb[2] = "Revolver Cannon Shot"; self.listb[3] = "Uber Cannon Shell Launch"; self.listb[4] = "Particle Coalition Rocket Launcher"; self.listb[5] = "Particle Coalition Missile Launcher"; self.listb[6] = "Destroyer Cannon Shot"; self.listb[7] = "Particle RPC"; self.listb[8] = "Particle Bazooka"; self.listb[9] = "Drop Ship Engine A"; self.listb[10] = "Drop Ship Engine B"; --all this was vanilla self.listb[11] = "Panzerschreck Rocket HE"; --By me self.listb[12] = "Panzerschreck Rocket HEAT"; --By me self.listb[13] = "Flaming Boulder Chunk A"; --Karoshi by Roast Veg and 2Dcube self.listb[14] = "GUITAR"; --By Shook self.listc = {}; --MOSRotatings self.listc[1] = "Test Head"; self.listc[2] = "Test Rod" self.listc[3] = "Test Block" self.listc[4] = "Test Block Small" self.listc[5] = "Test Ball" --all this was vanilla self.listc[6] = "SHARK" --By Shook self.listd = {}; --Actors self.listd[1] = "Crab"; self.listd[2] = "Mega Crab"; --all this was vanilla self.listd[3] = "D45Shishi Constructor"; --By Darlos9D self.a = 29.0; self.b = 14.0; self.c = 6.0; self.d = 3.0; self.time = Timer(); self.r = 0; end function Update(self) if self.time:IsPastSimMS(250) then self.time:Reset(); self.l = math.random(1,100); self.l = self.l/100.0; if self.l <= (self.b/(self.a+self.b+self.c+self.d)) then self.l = math.random(1,self.b); local e = CreateAEmitter(self.listb[self.l]); e.Pos = self.Pos; e.Vel = Vector(self.Vel.X + math.random(-10,10),self.Vel.Y + math.random(-10,10)); MovableMan:AddMO(e); if e:IsEmitting() == false then e:EnableEmission(true); end elseif self.l > (self.b/(self.a+self.b+self.c+self.d)) and self.l <= ((self.a+self.b)/(self.a+self.b+self.c+self.d)) then self.l = math.random(1,self.a); local e = CreateTDExplosive(self.lista[self.l]); e:Activate(); e.Pos = self.Pos; e.Vel = Vector(self.Vel.X + math.random(-10,10),self.Vel.Y + math.random(-10,10)); MovableMan:AddMO(e); elseif self.l > ((self.a+self.b)/(self.a+self.b+self.c+self.d)) and self.l <= ((self.a+self.b+self.c)/(self.a+self.b+self.c+self.d)) then self.l = math.random(1,self.c); local e = CreateMOSRotating(self.listc[self.l]); e.Pos = self.Pos; e.Vel = Vector(self.Vel.X + math.random(-10,10),self.Vel.Y + math.random(-10,10)); MovableMan:AddMO(e); else self.l = math.random(1,self.d); local e = CreateACrab(self.listd[self.l]); e.Pos = self.Pos; e.Vel = Vector(self.Vel.X + math.random(-10,10),self.Vel.Y + math.random(-10,10)); MovableMan:AddMO(e); end end end function Destroy(self) while self.r < 10 do self.l = math.random(1,100); self.l = self.l/100; if self.l <= (self.b/(self.a+self.b+self.c+self.d)) then self.l = math.random(1,self.b); local e = CreateAEmitter(self.listb[self.l]); e.Pos = self.Pos; e.Vel = Vector(self.Vel.X + math.random(-15,15),self.Vel.Y + math.random(-15,15)); MovableMan:AddMO(e); if e:IsEmitting() == false then e:EnableEmission(true); end elseif self.l > (self.b/(self.a+self.b+self.c+self.d)) and self.l <= ((self.a+self.b)/(self.a+self.b+self.c+self.d)) then self.l = math.random(1,self.a); local e = CreateTDExplosive(self.lista[self.l]); e:Activate(); e.Pos = self.Pos; e.Vel = Vector(self.Vel.X + math.random(-15,15),self.Vel.Y + math.random(-15,15)); MovableMan:AddMO(e); elseif self.l > ((self.a+self.b)/(self.a+self.b+self.c+self.d)) and self.l <= ((self.a+self.b+self.c)/(self.a+self.b+self.c+self.d)) then self.l = math.random(1,self.c); local e = CreateMOSRotating(self.listc[self.l]); e.Pos = self.Pos; e.Vel = Vector(self.Vel.X + math.random(-15,15),self.Vel.Y + math.random(-15,15)); MovableMan:AddMO(e); else self.l = math.random(1,self.d); local e = CreateACrab(self.listd[self.l]); e.Pos = self.Pos; e.Vel = Vector(self.Vel.X + math.random(-15,15),self.Vel.Y + math.random(-15,15)); MovableMan:AddMO(e); end self.r = self.r + 1; end end