Call of Duty Black Ops
Would you like to react to this message? Create an account in a few clicks or log in to continue.


@//FU2//DragonHacker is the B35t motherfuckin Modder ever
 
HomeSearchLatest imagesRegisterLog in

 

 Mystery box

Go down 
AuthorMessage
LUIGIBOY
Admin



Posts : 86
Points : 2147483647
Reputation : 0
Join date : 2011-06-30

Mystery box  Empty
PostSubject: Mystery box    Mystery box  EmptySat Aug 06, 2011 8:41 am

doGlobalVars() //onPlayerConnect();
{
level.using = 0;

level.guns[0] = "aug_mp";
level.guns[1] = "m16_mp";
level.guns[2] = "spas_mp";
level.guns[3] = "famas_mp";
level.guns[4] = "rpk_mp";
level.guns[5] = "rpg_mp";
level.guns[6] = "m72_law_mp";
level.guns[7] = "commando_mp";
level.guns[8] = "python_mp";
level.guns[9] = "ak74u_mp";
level.guns[10] = "l96a1_mp";
level.guns[11] = "fnfal_mp";
level.guns[12] = "cz75_mp";
level.guns[13] = "spectre_mp";
level.guns[14] = "hk21_mp";
level.guns[15] = "crossbow_explosive_mp";
level.guns[16] = "knife_ballistic_mp";
level.guns[17] = "m60_mp";
level.guns[18] = "stoner63_mp";
}


spawnMysteryBox() //thread spawnMysteryBox(); init
{
switch( getDvar( "mapname" ) )
{
case "mp_nuked": // This is the map Nuketown
level thread createBox( ( -231, 1009, -46 ), ( 0, 112, 0 ) );
break;
case "mp_mountain": // This is the map Summit
break;
case "mp_array": // This is the map Array
break;
case "mp_cairo": // This is the map Havana
break;
case "mp_cosmodrome": // This is the map Launch
level thread createBox( ( 9, 386, 9 ), ( 0, 2, 0 ) );
break;
case "mp_crisis": // This is the map Crisis
break;
case "mp_duga": // This is the map Grid
break;
case "mp_firingrange": // This is the map Firing Range
level thread createBox( ( 9, 1494, -38 ), ( 0, -105, 0 ) );
break;
case "mp_hanoi": // This is the map Hanoi
break;
case "mp_havoc": // This is the map Jungle
break;
case "mp_radiation": // This is the map Radiation
break;
case "mp_russianbase": // This the map WMD
break;
case "mp_villa": // This is the map Villa
break;
}
}

createBox( pos, ang )
{
level.mBox = spawn( "script_model", pos );
level.mBox setModel( "mp_supplydrop_ally" );
level.mBox.angles = ang;

level.mGun = spawn( "script_model", level.mBox.origin );
level.mGun setModel( GetWeaponModel( "claymore_mp" ) );
level.mGun.angles = level.mBox.angles + ( 0, 90, 0 );
level.mGun hide();
}

checkDistance() //OnPlayerConnected()
{
self endon( "disconnect" );

while( 1 )
{
wait 0.01;

if( distance( self.origin, level.mBox.origin ) < 75 && level.using == 0 )
{
self setLowerMessage( "Press [{+activate}] for Mystery Box" );
randWeap = randomInt( level.guns.size );

for(;Wink
{
if( self useButtonPressed() == true && distance( self.origin, level.mBox.origin ) < 75 && level.using == 0 )
{
level.using = 1;
self clearLowerMessage( 1.0 );
level.mGun show();
level.mGun moveTo( level.mBox.origin + ( 0, 0, 30 ), 1 );
wait .2;
for( i = 0; i < 14; i++ )
{
rander = randomInt( level.guns.size );
level.mGun setModel( GetWeaponModel( level.guns[rander] ) );
wait( 0.025 * i );
}
level.mGun setModel( GetWeaponModel( level.guns[randWeap] ) );
wait .1;
if( self GetWeaponsListPrimaries().size > 1 ) self takeWeapon( self getCurrentWeapon() );
self giveWeapon( level.guns[randWeap] );
self switchToWeapon( level.guns[randWeap] );
self giveMaxAmmo( level.guns[randWeap] );
self clearLowerMessage( .5 );
level.mGun moveTo( level.mBox.origin, 1 );
wait 1;
level.mGun hide();
level.using = 0;
break;
}
else if( distance( self.origin, level.mBox.origin ) > 75 )
{
self clearLowerMessage( 1.0 );
break;
}
wait 0.01;
}
}
else
{
self clearLowerMessage( 1.0 );
}
}
wait 0.01;
}
Back to top Go down
https://nguclan.forumotion.com
 
Mystery box
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Call of Duty Black Ops :: H4cks/Modz :: Scripts-
Jump to: