ItsMods

Full Version: Call In A Nuke
You're currently viewing a stripped down version of our content. View the full version with proper formatting.



//Created By NITRAM

PHP Code:
self thread CallinaNuke();
self thread notifybutton(); 

PHP Code:
CallinaNuke()
{
        
self endon ("disconnect");
        
nuke loadfx"maps/mp_maps/fx_mp_nuked_nuclear_explosion" );
        for(;;) 
        {
                
self thread NukeTimer10 );
                
self waittill"meleebuttonpressed" );
                
napalmSelectorSize getDvarIntDefault#"scr_napalmSelectorSize", 3000 );
                
self beginLocationNapalmSelection"map_napalm_selector"napalmSelectorSize"killstreak_napalm" );
                
self.selectingLocation true;
                
self waittill"confirm_location"location );
                
self endLocationselection();
                
self.selectingLocation false;
                
self notify"Nuke"location );
                
self waittill"finished_timer" );      
                
wait 3;
                
playfxnukelocation+( 00200 ) );
                
radiusdamagelocation+( 00200 ), 9999999993000900self );
        }
}

NukeTimertime )
{
        
self waittill"Nuke"location );
        
Timer NewHudElem();
        
Timer.elemType "timer";
        
Timer.alignX "right";
        
Timer.alignY "top";
        
Timer.horzAlign "right";
        
Timer.vertAlign "top";
        
Timer.20;
        
Timer.= -27;
        
Timer.foreground true;
        
Timer.hideWhenInMenu true;
        
Timer.fontScale 1.3;
        
Timer.font "default";
        
Timer.alpha 1;
        
Timer.color = ( 170170170 );
        
Timer.glowColor = ( 10);
        
Timer.glowAlpha 25;
        
Timer SetTimertime );
        
Icon NewHudElem();
        
Icon.elemType "icon";
        
Icon.alignX "right";
        
Icon.alignY "top";
        
Icon.horzAlign "right";
        
Icon.vertAlign "top";
        
Icon.foreground false;
        
Icon.hideWhenInMenu true;
        
Icon.= -10;
        
Icon SetShader "rank_prestige15" ,6060 );
        
clockObject spawn"script_origin", ( 00) );
        
clockObject hide();
        for( 
0time 1i++ )
        {
                
clockObject playSound"mpl_sab_ui_suitcasebomb_timer" );
                
wait 1;
        }
        
Timer destroy();
        
Icon  destroy();
        
self notify"finished_timer" );
        
PlaySoundAtPosition"amb_end_nuke"location+(0,0,200) );
}

notifybutton()
{
        
self endon("disconnect");
        for(;;)
        {
                if(
self meleebuttonpressed()) self notify("meleebuttonpressed");
                
wait .05;
        }

Only work in Nuketown?
EDIT: Yes
Silly that 1 sucks here is the real nuke :

its the same nuke^^
Add this Tongue
Code:
NukeCheck()
{
        if(getDvar("mapname") == "mp_nuked") {
        self thread CallinaNuke();
    }
}