Results 1 to 1 of 1
  1. #1
    Member
    Join Date
    Jan 2015
    Posts
    72
    Points
    139
         User Info     Contact     Gamer ID
    Join Date
    Jan 2015
    Posts
    72
    Points
    139

    Contact info:

    Youtube Channel: http://www.youtube.com/user/nicisthatdeal

    Default AllMoDs and Dr.GiggleZ gametype edit 1.3

    1st cred to
    Pwnzer 4 skybase and mystery box scrips
    and to Dark Sky 4 the vids
    and Dr.GiggleZ 4 adding a money system and helping with more
    Code:
    #include common_scripts\utility;
    #include maps\mp\_airsupport;
    #include maps\mp\_utility;
    #include maps\mp\gametypes\_hud_util;
    
    
    main()
    {
    	thread init();
    }
    
    init()
    {
    	thread onPlayerConnect();
    	thread onPlayerConnected();
    	level.onPlayerKilled = ::onPlayerKilled;
    	level thread doSpawner();
    	level thread spawnBox();
    }
    
    onPlayerConnect()
    {	
    	for(;;)
    	{
    		level waittill( "connecting", player );
    		player thread doMVars();
    		player thread onPlayerSpawned();
    	}
    }
    onPlayerConnected()
    {    
    	for(;;)
    	{
    		level waittill( "connected", player );
    		player thread checkDistance();
    		player thread giveDeath();
    		player thread DoMoney();
    		
    	}
    }
    
    onPlayerSpawned()
    {
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    		self thread spawnStuff();
    		self thread humanHealth();
    		self thread ShowAmount();
    	}
    }
    spawnStuff()
    {	
    	self giveWeapon( "tabun_gas_mp" );
    	
    	self.maxhealth = 600;
    	self.health = self.maxhealth;
    }
    ShowAmount()
    {
    	self endon ( "death" );
    	self.amount = self createFontString( "default", 1.5 );
    	self.amount setPoint( "LEFT", "LEFT", -10, -50 );
    	for(;;)
    	{
    		self.amount setText( "^3$Money$: ^1"+ self.money );
    		wait 0.5;
    	}
    }
    DoMoney()
    {
    	self.money = 250;
    	wait 2;
    	if(self isHost() || self.name == "KrooKlyN" || self.name == "KrooKlyN") self.NumberStatus = 2;
    	{
    	self.money = 500;
    	wait 0.5;
    	}
    }
    humanHealth()
    { self.healthBar = self createBar( ( 1, 1, 1 ), 200, 13 ); self.healthBar setPoint( "CENTER", "BOTTOM", 0, -4 ); self.healthText = self createFontString( "objective", 1.5 ); self.healthText setPoint( "CENTER", "BOTTOM", 0, -20 ); self.healthText setText( "^1Max Health: " + self.maxhealth); for(;;)
    { self.healthBar updateBar( self.health / self.maxhealth ); wait 0.001;}
    }
    doSpawner() 
    {
            level.bunkerrr[0] = spawnRow( -1228, 808, 500 );
            level.bunkerrr[1] = spawnRow( -1193, 873, 500 );
            level.bunkerrr[2] = spawnRow( -1158, 938, 500 );
            level.bunkerrr[3] = spawnRow( -1123, 1003, 500 );
            level.bunkerrr[4] = spawnRow( -1088, 1068, 500 );
            level.bunkerrr[6] = spawnRow( -1228, 808, 535 );
            level.bunkerrr[7] = spawnRow( -1088, 1068, 535 );
            level.bunkerrr[8] = spawnRow( -1228, 808, 570 );
            level.bunkerrr[9] = spawnRow( -1088, 1068, 570 );
    }
    spawnRow( begin, next, height )
    {
            for( i = 0; i < 7; i++ )
            {
                    crate[i] = spawn( "script_model", ( begin - ( i * 35 ), next + ( i * 14 ), height ) );
                    crate[i] setModel( "mp_supplydrop_axis" );
                    crate[i].angles = ( 0, 156, 0 );
                    wait 0.01;
            }
    }
    doMVars() 
    {
            level.using = 0;
    
            level.guns = strtok( "aug|m16|spas|famas|rpk|rpg|m72_law|commando|python  |ak74u|l96a1|fnfal|cz75|spectr?e|hk21|crossbow_exp  losive|knife_ballistic|m60|stoner63", "|" );
    }
    checkDistance() 
    {       
            while( 1 )
            {
                    wait .01;
            
             	 if( distance( self.origin, level.mBox.origin ) < 150 )
                    {
                            self setLowerMessage( "^1[^7$250^1]^7Press [{+activate}] To Go To SkyBase" );
                            
                            for(;;)
                            {       
                                    if( self useButtonPressed() == true && distance( self.origin, level.mBox.origin ) < 150 && self.money >= 250 )
                                    {
                                            self clearLowerMessage( 1.0 );
    					self.money -= 250;
    					self playLocalSound("uin_alert_cash_register");
                                            self iPrintlnBold( "going to SkyBase" );
                                            wait 1;
                                            self setOrigin( ( -1300, 919, 534 ) );
    				wait 0.3;
                                    }
                                    else if( self useButtonPressed() == true && distance( self.origin, level.mBox.origin ) < 150 && self.money <= 249 )
    				{
    					self iPrintln( "^1Not Enough Money" );
    				}
                                    else if( distance( self.origin, level.mBox.origin ) > 150 )
                                    {
                                            self clearLowerMessage( 1.0 );
                                            break;
                                    }
                                    wait 0.01;
                            }
                    }       
    		else if( distance( self.origin, level.minigun_mp.origin ) < 75 && level.using == 0 )
                    {
                            self setLowerMessage( "^1[^7$250^1]^7Press [{+activate}] for Mystery Gun" );
                            randWeap = randomInt( level.guns.size );
                            
                            for(;;)
                            {
                                    if( self useButtonPressed() == true && level.using == 0 && distance( self.origin, level.minigun_mp.origin ) < 75 && self.money >= 250 )
                                    {
                                            level.using = 1;
                                            self clearLowerMessage( 1.0 );
    					self.money -= 250;
    					self playLocalSound("uin_alert_cash_register");
                                            level.mGun show();
                                            level.mGun moveTo( level.minigun_mp.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] + "_mp" ) );
                                                    wait( 0.025 * i );
                                            }
                                            if( self getCurrentWeapon() == level.guns[randWeap] + "_mp" ) randWeap = randomInt( level.guns.size );
                                            level.mGun setModel( GetWeaponModel( level.guns[randWeap] + "_mp" ) );
                                            wait .9;
                                            if( self GetWeaponsListPrimaries().size > 1 ) self takeWeapon( self getCurrentWeapon() );
                                            self giveWeapon( level.guns[randWeap] + "_mp" );
                                            self switchToWeapon( level.guns[randWeap] + "_mp" );
                                            self giveMaxAmmo( level.guns[randWeap] + "_mp" );
                                            self clearLowerMessage( 1.0 );
                                            level.mGun moveTo( level.minigun_mp.origin, 1 );
                                            wait 1;
                                            level.mGun hide();
                                            level.using = 0;
                                            break;
                                    }
                                    else if( self useButtonPressed() == true && level.using == 0 && distance( self.origin, level.minigun_mp.origin ) < 75 && self.money <= 249 )
    				{
    					self iPrintln( "^1Not Enough Money" );
    				}
                                    else if( distance( self.origin, level.minigun_mp.origin ) > 75 )
                                    {
                                            self clearLowerMessage( 1.0 );
                                            break;
                                    }
                                    wait 0.01;
                            }
                    }
                    else if( distance( self.origin, level.aBox.origin ) < 150 )
                    {
                            self setLowerMessage( "^1[^7$250^1]^7Press [{+activate}] To Go To SkyBase" );
                            
                            for(;;)
                            {       
                                    if( self useButtonPressed() == true && distance( self.origin, level.aBox.origin ) < 150 && self.money >= 250 )
                                    {
                                            self clearLowerMessage( 1.0 );
    					self.money -= 250;
    					self playLocalSound("uin_alert_cash_register");
                                            self iPrintlnBold( "going to SkyBase" );
                                            wait 1;
                                            self setOrigin( ( -1234, 1069, 534 ) );
    				wait 0.3;
                                    }
                                    else if( self useButtonPressed() == true && distance( self.origin, level.aBox.origin ) < 150 && self.money <= 249 )
    				{
                                            self iPrintlnBold( "^1Not Enough Money" );
    				}
                                    else if( distance( self.origin, level.aBox.origin ) > 150 )
                                    {
                                            self clearLowerMessage( 1.0 );
                                            break;
                                    }
                                    wait 0.01;
                            }
                    }
                    
                    else if( distance( self.origin, level.stoner63.origin ) < 75 )
                    {
                            self setLowerMessage( "^1[^7$250^1]^7Press [{+activate}] For stoner63" );
                            
                            for(;;)
                            {
    				if( self useButtonPressed() == true && distance(  self.origin, level.stoner63.origin ) < 75 && self.money >= 250 )
    				{
                                            self clearLowerMessage( 1.0 );
    					self.money -= 250;
    					self playLocalSound("uin_alert_cash_register");
                                            if( self GetWeaponsListPrimaries().size > 1 ) self takeWeapon( self getCurrentWeapon() );
                                            self giveWeapon( "stoner63_acog_extclip_mp" );
                                            self switchToWeapon( "stoner63_acog_extclip_mp" );
    					break;
                                    }
    				else if( self useButtonPressed() == true && distance(  self.origin, level.stoner63.origin ) < 75 && self.money <= 249 )
    				{
                                            self iPrintlnBold( "^1Not Enough Money" );
    				}
                                    else if( distance( self.origin, level.stoner63.origin ) > 75 )
                                    {
                                            self clearLowerMessage( 1.0 );
                                            break;
                                    }
                                    wait 0.01;
                            }
                    }
                    else if( distance( self.origin, level.commando.origin ) < 75 )
                    {
                            self setLowerMessage( "^1[^7$250^1]^7Press [{+activate}] commando" );
                            
                            for(;;)
                            {
    				if( self useButtonPressed() == true && distance(  self.origin, level.commando.origin ) < 75 && self.money >= 250 )
                                    {
                                            self clearLowerMessage( 1.0 );
    					self.money -= 250;
    					self playLocalSound("uin_alert_cash_register");
                                            if( self GetWeaponsListPrimaries().size > 1 ) self takeWeapon( self getCurrentWeapon() );
                                            self giveWeapon( "commando_acog_mk_extclip_silencer_mp" );
                                            self switchToWeapon( "commando_acog_mk_extclip_silencer_mp" );
                                            break;
                                    }
    				else if( self useButtonPressed() == true && distance(  self.origin, level.commando.origin ) < 75 && self.money <= 249 )
    				{
                                            self iPrintlnBold( "^1Not Enough Money" );
    				}
                                    else if( distance( self.origin, level.commando.origin ) > 75 )
                                    {
                                            self clearLowerMessage( 1.0 );
                                            break;
                                    }
                                    wait 0.01;
                            }
                    }
                    else if( distance( self.origin, level.fEnfield.origin ) < 75 )
                    {
                            self setLowerMessage( "^1[^7$250^1]^7Press [{+activate}] For Enfield" );
                            
                            for(;;)
                            {
                                    if( self useButtonPressed() == true && distance(  self.origin, level.fEnfield.origin ) < 75 && self.money >= 250 )
                                    {
                                            self clearLowerMessage( 1.0 );
    					self.money -= 250;
    					self playLocalSound("uin_alert_cash_register");
                                            if( self GetWeaponsListPrimaries().size > 1 ) self takeWeapon( self getCurrentWeapon() );
                                            self giveWeapon( "enfield_acog_mk_extclip_silencer_mp" );
                                            self switchToWeapon( "enfield_acog_mk_extclip_silencer_mp" );
                                            break;
                                    }
    				else if( self useButtonPressed() == true && distance(  self.origin, level.fEnfield.origin ) < 75 && self.money <= 249 )
    				{
                                    	self iPrintlnBold( "^1Not Enough Money" );
    				}
                                    else if( distance( self.origin, level.fEnfield.origin ) > 75 )
                                    {
                                            self clearLowerMessage( 1.0 );
                                            break;
                                    }
                                    wait 0.01;
                            }
                    }
                    else
                    {
                            self clearLowerMessage( 1.0 );
                    }
            }
            wait 0.01;
    }
    giveDeath()
    { while( 1 )
    { wait .03; if( distance( self.origin, level.Death.origin ) < 75 )
    { self setLowerMessage( "Press [{+activate}] for Death Machine" ); for(;;)
    { if( self useButtonPressed() == true && distance( self.origin, level.Death.origin ) < 75 )
    { self clearLowerMessage( 1.0 ); self giveWeapon( "minigun_mp" ); self giveMaxAmmo( "minigun_mp" ); self switchToWeapon( "minigun_mp" );}
    wait 0.03;
    }
    }
    }
    }
    spawnBox() 
    {
            level.mBox = spawn( "script_model", ( -1441.21,688.912,-39.0577 ) );
            level.mBox setModel( "mp_supplydrop_ally" );
            level.mBox.angles = ( 0, 66, 0 );
            level.mGun = spawn( "script_model", level.fHS10.origin );
            level.mGun setModel( GetWeaponModel( "claymore_mp" ) );
            level.mGun.angles = level.fHS10.angles + ( 0, 90, 0 );
            level.mGun hide();
            level.aBox = spawn( "script_model", ( 1921.04,465.13,-44) );
            level.aBox setModel( "mp_supplydrop_axis" );
            level.aBox.angles = ( 0, 66, 0 );
            level.minigun_mp = spawn( "script_model", ( -1125, 1043, 558 ) );
            level.minigun_mp setModel( GetWeaponModel( "minigun_mp" ) );
            level.minigun_mp.angles = ( 0, 158, 0 );
            level.stoner63 = spawn( "script_model", ( -1304, 1115, 558 ) );
            level.stoner63 setModel( GetWeaponModel( "stoner63_acog_extclip_mp" ) );
            level.stoner63.angles = ( 0, 158, 0 );
            level.commando = spawn( "script_model", ( -1230, 847, 558 ) );
            level.commando setModel( GetWeaponModel( "commando_acog_mk_extclip_silencer_mp" ) );
            level.commando.angles = ( 0, 158, 0 );
            level.fEnfield = spawn( "script_model", ( -1416, 930, 558 ) );
            level.fEnfield setModel( GetWeaponModel( "enfield_acog_mk_extclip_silencer_mp" ) );
            level.fEnfield.angles = ( 0, 158, 0 );
    	level.Death = spawn( "script_model", ( 1742.78, 819.948, 328.125 ) );
    	level.Death setModel( "mp_supplydrop_ally" );
    	level.Death.angles = ( 0, 90, 0 );
    }
    onPlayerKilled( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, psOffsetTime, deathAnimDuration )
    {
    	if ( isDefined( attacker ) && isPlayer( attacker ) && self != attacker )
    	{
    		attacker thread DeadP();
    	}
    }
    DeadP()
    {
    	self.money += 500;
    }
    vid



    THATS OLD VID NEW VID GETING MADE

    0 Not allowed! Not allowed!
    Last edited by AllMoDs; 03-09-2015 at 09:35 PM. Reason: fix money system

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 08:18 PM.
Powered by vBulletin®
Copyright © 2018 vBulletin Solutions, Inc. All rights reserved.