0


Code: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(;;) { 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; }
EDit: i looked through the script and answerred the question myself lol
Last edited by tony; 07-10-2011 at 08:34 AM.
sweet how would i add it and decide where it goes and stuff?
u need to edit the
switch( getDvar( "mapname" ) )
{
case "mp_nuked": // This is the map Nuketown
level thread createBox( ( -231, 1009, -46 ), ( 0, 112, 0 ) );
if u need help doing this pm me
wait...is this for multiplayer??? Like the actual mystery box, or just a care package model???
so we could just put in different coordinates and it will work for whatever map![]()
no homo but i love you Tlpwnzer!!! i can now start up my fort on every map project
could you get your different map options script working for guns on the wall and starting spawn points?
can some1 mail me the modded iso disc
how do you add this to nitys mod menu
Launch doesn't work
Bookmarks