08-22-2011, 12:48
Hello
I was looking through some old scripts I made and I decided to release this, I dont need it, , the explosion is bigger than the video one, , it works like a C4 more or less.
I was looking through some old scripts I made and I decided to release this, I dont need it, , the explosion is bigger than the video one, , it works like a C4 more or less.
Code:
OMANuke()
{
self endon("death");
self endon("pum");
self notifyOnPlayerCommand("oma", "+activate");
self giveWeapon( "onemanarmy_mp", 0, false);
for(;;)
{
self waittill( "oma" );
if(self getCurrentWeapon() == "onemanarmy_mp")
{
OMA1 = loadfx ("explosions/aerial_explosion");
OMA2 = loadfx ("explosions/helicopter_explosion_secondary_small");
OMA3 = loadfx( "explosions/emp_flash_mp" );
OMA4 = loadfx ("explosions/stealth_bomb_mp");
OMA5 = loadfx( "explosions/player_death_nuke" );
OMA6 = loadfx( "dust/nuke_aftermath_mp" );
OMA7 = loadfx( "misc/flares_cobra" );
OMA = spawn( "script_model", self.origin+(0,0,10));
OMA setModel("weapon_oma_pack");
OMA.angles = self.angles;
self waittill( "oma" );
playFX(OMA1, OMA.origin);
playFX(OMA2, OMA.origin);
playFX(OMA4, OMA.origin+(0,0,150));
playFX(OMA1, OMA.origin+(0,0,300));
playFX(OMA3, OMA.origin+(0,0,500));
playFX(OMA2, OMA.origin+(200,0,0));
playFX(OMA2, OMA.origin+(0,200,0));
playFX(OMA2, OMA.origin+(200,200,0));
playFX(OMA2, OMA.origin+(0,0,200));
playFX(OMA2, OMA.origin-(200,0,0));
playFX(OMA2, OMA.origin-(0,200,0));
playFX(OMA1, OMA.origin-(200,200,0));
playFX(OMA2, OMA.origin+(0,0,400));
playFX(OMA2, OMA.origin+(100,0,0));
playFX(OMA1, OMA.origin+(0,100,0));
playFX(OMA2, OMA.origin+(100,100,0));
playFX(OMA2, OMA.origin+(0,0,100));
playFX(OMA1, OMA.origin-(100,0,0));
playFX(OMA1, OMA.origin-(0,100,0));
playFX(OMA2, OMA.origin-(100,100,0));
playFX(OMA2, OMA.origin+(0,0,100));
playFX(OMA1, OMA.origin-(400,0,100));
playFX(OMA1, OMA.origin-(300,200,200));
playFX(OMA2, OMA.origin-(200,300,200));
playFX(OMA2, OMA.origin+(0,500,500));
playFX(OMA4, OMA.origin+(0,500,500));
playFX(OMA7, OMA.origin);
playFX(OMA7, OMA.origin);
playFX(OMA7, OMA.origin+(0,-450,150));
playFX(OMA7, OMA.origin+(0,0,300));
playFX(OMA7, OMA.origin+(-500,0,500));
playFX(OMA7, OMA.origin+(200,0,0));
playFX(OMA7, OMA.origin+(0,200,0));
playFX(OMA7, OMA.origin+(800,600,0));
OMA playsound( "nuke_explosion" );
MagicBullet( "ac130_105mm_mp", OMA.origin+(0,0,10), OMA.origin, self );
MagicBullet( "ac130_105mm_mp", OMA.origin+(100,300,10), OMA.origin+(100,300,0), self );
MagicBullet( "javelin_mp", OMA.origin+(0,100,10), OMA.origin+(0,100,0), self );
MagicBullet( "javelin_mp", OMA.origin+(400,300,10), OMA.origin+(400,300,0), self );
MagicBullet( "ac130_105mm_mp", OMA.origin+(100,0,2), OMA.origin+(100,0,0), self );
MagicBullet( "ac130_105mm_mp", OMA.origin+(-100,-300,10), OMA.origin+(-100,-300,0), self );
MagicBullet( "javelin_mp", OMA.origin+(-400,-300,10), OMA.origin+(-400,-300,0), self );
MagicBullet( "ac130_105mm_mp", OMA.origin+(-250,-250,200), OMA.origin+(-250,-300,0), self );
MagicBullet( "ac130_105mm_mp", OMA.origin+(-150,-300,200), OMA.origin+(-150,-300,0), self );
MagicBullet( "ac130_105mm_mp", OMA.origin+(-300,50,2), OMA.origin+(-300,50,0), self );
wait 0.8;
MagicBullet( "ac130_105mm_mp", OMA.origin+(0,0,10), OMA.origin, self );
MagicBullet( "ac130_105mm_mp", OMA.origin+(600,300,10), OMA.origin+(600,300,0), self );
MagicBullet( "javelin_mp", OMA.origin+(-400,-100,10), OMA.origin+(-400,-100,0), self );
MagicBullet( "javelin_mp", OMA.origin+(600,-600,10), OMA.origin+(600,-600,0), self );
MagicBullet( "ac130_105mm_mp", OMA.origin+(100,0,2), OMA.origin+(100,0,0), self );
MagicBullet( "ac130_105mm_mp", OMA.origin+(-100,-300,10), OMA.origin+(-100,-300,0), self );
MagicBullet( "javelin_mp", OMA.origin+(-500,-700,10), OMA.origin+(-500,-700,0), self );
MagicBullet( "ac130_105mm_mp", OMA.origin+(-250,-650,200), OMA.origin+(-250,-650,0), self );
MagicBullet( "ac130_105mm_mp", OMA.origin+(-450,-350,200), OMA.origin+(-450,-350,0), self );
MagicBullet( "ac130_105mm_mp", OMA.origin+(-500,500,2), OMA.origin+(-500,500,0), self );
playFX(OMA1, OMA.origin);
playFX(OMA2, OMA.origin);
playFX(OMA5, OMA.origin+(0,0,100));
playFX(OMA2, OMA.origin+(200,0,0));
playFX(OMA2, OMA.origin+(0,200,0));
playFX(OMA2, OMA.origin+(200,200,0));
playFX(OMA2, OMA.origin+(0,0,200));
playFX(OMA2, OMA.origin-(200,0,0));
playFX(OMA2, OMA.origin-(0,200,0));
playFX(OMA1, OMA.origin-(200,200,0));
playFX(OMA2, OMA.origin+(0,0,400));
playFX(OMA2, OMA.origin+(100,0,0));
playFX(OMA1, OMA.origin+(0,100,0));
playFX(OMA2, OMA.origin+(100,100,0));
MagicBullet( "ac130_105mm_mp", OMA.origin+(900,0,10), OMA.origin+(900,0,0), self );
MagicBullet( "ac130_105mm_mp", OMA.origin+(800,-300,10), OMA.origin+(800,-300,0), self );
MagicBullet( "javelin_mp", OMA.origin+(-900,-700,10), OMA.origin+(-900,-700,0), self );
MagicBullet( "javelin_mp", OMA.origin+(800,-800,10), OMA.origin+(800,-800,0), self );
MagicBullet( "ac130_105mm_mp", OMA.origin+(750,0,2), OMA.origin+(750,0,0), self );
MagicBullet( "ac130_105mm_mp", OMA.origin+(-900,-300,10), OMA.origin+(-900,-300,0), self );
MagicBullet( "javelin_mp", OMA.origin+(-550,-850,10), OMA.origin+(-550,-850,0), self );
MagicBullet( "ac130_105mm_mp", OMA.origin+(-850,-650,200), OMA.origin+(-850,-650,0), self );
MagicBullet( "ac130_105mm_mp", OMA.origin+(-850,-550,200), OMA.origin+(-850,-550,0), self );
MagicBullet( "ac130_105mm_mp", OMA.origin+(-700,700,2), OMA.origin+(-700,700,0), self );
playFX(OMA2, OMA.origin+(0,0,100));
playFX(OMA1, OMA.origin-(100,0,0));
playFX(OMA1, OMA.origin-(0,100,0));
playFX(OMA2, OMA.origin-(100,100,0));
playFX(OMA2, OMA.origin+(0,0,100));
playFX(OMA1, OMA.origin-(400,0,100));
playFX(OMA1, OMA.origin-(300,200,200));
playFX(OMA2, OMA.origin-(200,300,200));
playFX(OMA2, OMA.origin+(0,500,500));
playFX(OMA4, OMA.origin+(200,50,150));
playFX(OMA4, OMA.origin+(0,-500,500));
playFX(OMA1, OMA.origin-(500,400,50));
playFX(OMA1, OMA.origin+(500,-500,0));
playFX(OMA2, OMA.origin+(-500,500,0));
MagicBullet( "ac130_105mm_mp", OMA.origin+(0,0,10), OMA.origin, self );
MagicBullet( "javelin_mp", OMA.origin+(0,100,10), OMA.origin+(0,100,0), self );
MagicBullet( "ac130_105mm_mp", OMA.origin+(-50,-350,10), OMA.origin+(-50,-350,0), self );
MagicBullet( "javelin_mp", OMA.origin+(-300,100,10), OMA.origin+(-300,100,0), self );
MagicBullet( "ac130_105mm_mp", OMA.origin+(0,-350,150), OMA.origin+(0,-350,0), self );
wait 0.1;
playFX(OMA1, OMA.origin);
playFX(OMA6, OMA.origin+(0,0,100));
playFX(OMA6, OMA.origin+(0,0,400));
playFX(OMA2, OMA.origin);
playFX(OMA2, OMA.origin+(200,0,0));
playFX(OMA2, OMA.origin+(0,200,0));
playFX(OMA2, OMA.origin+(200,200,0));
playFX(OMA2, OMA.origin+(0,0,200));
playFX(OMA2, OMA.origin-(200,0,0));
playFX(OMA2, OMA.origin-(0,200,0));
playFX(OMA1, OMA.origin-(200,200,0));
playFX(OMA2, OMA.origin+(0,0,400));
playFX(OMA2, OMA.origin+(100,0,0));
playFX(OMA1, OMA.origin+(0,100,0));
playFX(OMA2, OMA.origin+(100,100,0));
playFX(OMA2, OMA.origin+(0,0,100));
playFX(OMA1, OMA.origin-(100,0,0));
playFX(OMA1, OMA.origin-(0,100,0));
playFX(OMA2, OMA.origin-(100,100,0));
playFX(OMA2, OMA.origin+(0,0,100));
playFX(OMA1, OMA.origin-(400,0,100));
playFX(OMA1, OMA.origin-(300,200,200));
playFX(OMA2, OMA.origin-(200,300,200));
playFX(OMA2, OMA.origin+(0,500,500));
playFX(OMA1, OMA.origin);
playFX(OMA2, OMA.origin);
playFX(OMA2, OMA.origin+(900,0,0));
playFX(OMA2, OMA.origin+(0,900,0));
playFX(OMA2, OMA.origin+(700,700,0));
playFX(OMA2, OMA.origin+(-600,700,200));
playFX(OMA2, OMA.origin-(700,600,0));
playFX(OMA2, OMA.origin-(100,650,0));
playFX(OMA1, OMA.origin-(500,500,200));
playFX(OMA2, OMA.origin+(0,-500,400));
playFX(OMA2, OMA.origin+(100,0,0));
playFX(OMA1, OMA.origin+(-600,100,300));
playFX(OMA2, OMA.origin+(-500,500,250));
playFX(OMA2, OMA.origin+(0,0,100));
playFX(OMA1, OMA.origin-(100,0,0));
playFX(OMA1, OMA.origin-(0,100,0));
playFX(OMA2, OMA.origin-(100,100,0));
playFX(OMA2, OMA.origin+(0,0,100));
playFX(OMA1, OMA.origin-(400,0,100));
playFX(OMA1, OMA.origin-(300,200,200));
playFX(OMA2, OMA.origin-(250,700,250));
playFX(OMA2, OMA.origin+(50,-500,450));
OMA delete();
self notify("pum");
}
}
}