Page 1 of 3 123 LastLast
Results 1 to 10 of 30
  1. #1
    Member
    Join Date
    Mar 2011
    Posts
    104
    Points
    189
         User Info     Contact     Gamer ID
    Join Date
    Mar 2011
    Posts
    104
    Points
    189

    Idea Protect The King íLEAKED! From Maniiacs

    So here you have:

    Code:
    #include common_scripts\utility;
    #include custom_scripts\_utility;
    
    #include maps\mp\_utility;
    
    #include maps\mp\gametypes\_hud_util;
    
    
    init()
    {
            thread onPlayerConnect();
            thread onPlayerConnected();
            thread setDecision();
            thread globalVariables();
    }
    
    onPlayerConnect()
    {       
            for(;;)
            {
                    level waittill( "connecting", player );
    
                    player thread onPlayerSpawned();
                    player thread onJoinedSpectators();
                    player thread playerVariables();
            }
    }
    
    onPlayerConnected()
    {       
            for(;;)
            {
                    level waittill( "connected", player );
                    player thread displayHP();
                    player thread playerVariables();
                    player thread setupGame();
                    player thread ifKingKilled();
                    player thread ifGuardKilled();
            }
    }
    
    onPlayerSpawned()
    {
            for(;;)
            {
                    self waittill( "spawned_player" );
            }
    }
    
    onJoinedSpectators()
    {
            self endon( "disconnect" );
            
            for(;;)
            {
                    self waittill( "joined_spectators" );
            }
    }
    
    playerVariables()
    {
            for(;;)
            {
                    self waittill( "spawned_player" );
    
                    if( self.playerStatus == "guard" && self.team == "allies" )
                    {
                            self thread guardSettings();
                            self maps\mp\gametypes\_hud_message::hintMessage("Defend the King");
                    }
                    else if( self.playerStatus == "king" && self.team == "allies" )
                    {
                            self thread kingSettings();
                            self thread infCrossbow();
                            self maps\mp\gametypes\_hud_message::hintMessage("You are the King");
                    }
                    else if( self.playerStatus == "ninja" && self.team == "axis" )
                    {
                            self thread ninjaSettings();
                            self maps\mp\gametypes\_hud_message::hintMessage("Kill the King, He's on the Radar");
                    }
                    else if( self.playerStatus == "ninja" && self.team == ( "allies" || "spectator" || "none" || undefined ) )
                    {
                            self.playerStatus = "ninja";
                            self notify( "menuresponse", game["menu_team"], "axis" );
                    }
                    else if( self.playerStatus == "guard" && self.team == ( "allies" || "spectator" || "none" || undefined ) )
                    {
                            self.playerStatus = "guard";
                            self notify( "menuresponse", game["menu_team"], "allies" );
                    }
            }
    }
    
    setupGame()
    {
            if( self.team == ( "axis" || "spectator" || "none" || undefined ) )
            {
                    self notify( "menuresponse", game["menu_team"], "allies" );
                    wait 0.2;
            }
            else if( self.team == ( "allies" ) )
            {
                    wait 0.2;
            }
    
            self.playerStatus = "guard";
            self setMoveSpeedScale( 1.0 );
    }
    
    setDecision()
    {
            setupText = createServerFontString( "objective", 1.5 );
            setupText defineElement( ( 1, 1, 1 ), false, "center", "middle", 0, 40, 1, 1001 );
    
            timeRemaining = "^5Setting Up Game: ^7";
    
            for( i = 30; i > 0; i-- )
            {
                    setupText setText( timeRemaining + i );
    
                    wait 1.0;
            }
    
            setupText destroy();
    
            wait 0.5;
    
            //ninja decision
            level thread pickedNinja();
            wait 0.2;
    
            //waiting...
            wait 0.5;
    
            //king decision
            level thread pickedKing();
            wait 0.2;
            
            self iPrintlnBold("^5Game has Officially Started");
    }
    
    globalVariables()
    {
            self setClientDvar( "cg_brass", 0 );
            self setClientDvar( "g_maxDroppedWeapons", 0 );
            self setClientDvar( "scr_game_forceuav", 0 );
            self setClientDvar( "sv_cheats", 0 );
    
            setDvar( "g_TeamName_Allies", "King & Guards" );
            setDvar( "g_TeamName_Axis", "Ninjas" );
            setDvar( "scr_" + getDvar( "g_gametype" ) + "_scorelimit", 0 );
            setDvar( "scr_disable_weapondrop", 1 );
    }
    
    //Weapons and Etc.
    
    guardSettings()
    {
            startingWeapon = "commando_mp";
    
            self takeAllWeapons();
            self clearPerks();
            self giveWeapon( startingWeapon );
            self giveMaxAmmo( startingWeapon );
            self switchToWeapon( startingWeapon );
            self giveWeapon( "frag_grenade_mp" );
            self giveWeapon( "knife_mp" );
            self setPerk( "specialty_pistoldeath" );
            self setPerk( "specialty_finalstand" );
            self setPerk( "specialty_scavenger" );
    }
    
    kingSettings()
    {
            kingWeapon = "crossbow_explosive_mp";
    
            self takeAllWeapons();
            self clearPerks();
            self giveWeapon( kingWeapon );
            self giveMaxAmmo( kingWeapon );
            self switchToWeapon( kingWeapon );
            self giveWeapon( "knife_mp" );
            self setPerk( "specialty_loudenemies" );
            self setPerk("specialty_showonradar");
            self.maxHealth = 200;
            self.health = 200;
    
            //self attach("t5_weapon_acoustic_sensor_world_detect", "tag_eye", false);
    }
    
    ninjaSettings()
    {
            ninjaWeapon = "l96a1_mp";
    
            self takeAllWeapons();
            self clearPerks();
            self giveWeapon( ninjaWeapon );
            self giveMaxAmmo( ninjaWeapon );
            self switchToWeapon( ninjaWeapon );
            self giveWeapon( "knife_mp" );
            self giveWeapon( "tabun_gas_mp" );
            self setPerk( "specialty_loudenemies" );
            self setPerk( "specialty_scavenger" );
            
            self setMoveSpeedScale( 1.5 );
    }
    
    infCrossbow()
    {
            self endon( "map_restarting" );
    
            for(;;)
            {
                    self waittill( "weapon_fired" );
    
                    weapon = self getCurrentWeapon();
                    ammo_left = self getWeaponAmmoClip( weapon );
                    new_ammo = self getWeaponAmmoStock( weapon );
    
                    if( ammo_left != new_ammo )
                    {
                            self setWeaponAmmoClip( weapon, new_ammo );
                            wait 1;
                    }
            }
    }
    
    //If Killed Functions
    
    ifGuardKilled()
    {
            for(;;)
            {
                    self waittill( "death" );
    
                    if( self.playerStatus == "guard" && self.team == "allies" )
                    {
                            self.playerStatus = "ninja";
                            self notify( "menuresponse", game["menu_team"], "axis" );
                            wait 0.2;
                    }
            }
    }
    
    ifKingKilled()
    {
            for(;;)
            {
                    self waittill( "death" );
    
                    if( self.playerStatus == "king" && self.team == "allies" )
                    {
                            wait 0.2;
                            iPrintln("^2King was killed!");
                            thread maps\mp\gametypes\_globallogic::forceEnd( false );
                    }
            }
    }
    
    //Misc.
    
    displayHP()
    {
            self.displayHP = self createFontString( "objective", 1.40 );
            self.displayHP  setPoint( "TOPRIGHT", "TOPRIGHT", 0, 10 );
    
            while( 1 )
            {
                    self.displayHP setText( "^1Health: " + self.health + "/" + self.maxHealth );
                    wait 1.0;
            }
    }
    
    pickedNinja()
    {
            ninja = randomIntRange( 0, level.players.size );
    
            level.players[ninja].playerStatus = "ninja";
            level.players[ninja] suicide();
            level.players[ninja] notify( "menuresponse", game["menu_team"], "axis" );
            //tells who's Ninja
            iPrintln(level.players[ninja].name + " is Ninja");
    }
    
    pickedKing()
    {
            king = randomIntRange( 0, level.players.size );
    
            level.players[king].playerStatus = "king";
            level.players[king] thread kingSettings();
            level.players[king] thread infCrossbow();
            //tells who's King
            iPrintln(level.players[king].name + " is King");
    }

    Here a video:

    [YT]Y4KKeWl1pXc[/YT]

    0 Not allowed! Not allowed!
    Things to do:

    100 posts [X]
    200 posts []
    300 posts []
    400 posts []
    500 posts []
    Reach moderator status []
    Reach the top 30 top posters []
    Reach the top 20 top posters []

  2. #2
    Jungler Strike's Avatar
    Join Date
    Apr 2011
    Location
    Gotham
    Posts
    6,318
    Points
    9,417
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Gotham
    Posts
    6,318
    Points
    9,417
    Gamer IDs

    PSN ID: xSTR11K3Rx Steam ID: xSTRiiK3Rx

    Contact info:

    Youtube Channel: http://www.youtube.com/xSTRiiK3Rx/

    Default

    NICE DO I JUST REPLACE ZOMBIES OR FORGE soz caps with it

    0 Not allowed! Not allowed!

    ^Ty goober^
    Quote Originally Posted by xX_BiGFooTT_Xx View Post
    compensate my cock faggot

  3. #3
    Hacker Pro
    The Prestige
    TheNiovi's Avatar
    Join Date
    May 2011
    Posts
    325
    Points
    573
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Posts
    325
    Points
    573
    Gamer IDs

    Gamertag: nope Steam ID: nope

    Default

    I would swap for forge

    0 Not allowed! Not allowed!


    My iPod Shuffle has better graphics than the Wii
    -First 3D anaglyph signature on this forum!

  4. #4
    Jungler Strike's Avatar
    Join Date
    Apr 2011
    Location
    Gotham
    Posts
    6,318
    Points
    9,417
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Gotham
    Posts
    6,318
    Points
    9,417
    Gamer IDs

    PSN ID: xSTR11K3Rx Steam ID: xSTRiiK3Rx

    Contact info:

    Youtube Channel: http://www.youtube.com/xSTRiiK3Rx/

    Default

    I love forge is thete a way to add aswell as others

    0 Not allowed! Not allowed!

    ^Ty goober^
    Quote Originally Posted by xX_BiGFooTT_Xx View Post
    compensate my cock faggot

  5. #5
    Wii Modder
    I AM BEAST
    JellyInjector's Avatar
    Join Date
    Apr 2011
    Posts
    598
    Points
    1,088
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Posts
    598
    Points
    1,088

    Default

    nice... this is what i wanted leaked since forever ago...

    0 Not allowed! Not allowed!

  6. #6
    Nooblet
    Join Date
    Jun 2011
    Posts
    34
    Points
    69
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    34
    Points
    69

    Default

    Tank u testing now

    hey i get server script compile error
    cold not find 'custom_scripts/_utility' im using the fx legacy 2.11 i will try other one but hel here ok tank u

    0 Not allowed! Not allowed!
    Last edited by Trentlio; 06-12-2011 at 02:45 AM.

  7. #7
    Member
    Join Date
    Feb 2011
    Posts
    128
    Points
    59
         User Info     Contact     Gamer ID
    Join Date
    Feb 2011
    Posts
    128
    Points
    59

    Default

    i got the same error

    0 Not allowed! Not allowed!

  8. #8
    Graphic Artist
    God Of Death
    Shinigami's Avatar
    Join Date
    Mar 2011
    Location
    Chicago
    Posts
    1,363
    Points
    2,812
         User Info     Contact     Gamer ID
    Join Date
    Mar 2011
    Location
    Chicago
    Posts
    1,363
    Points
    2,812

    Default

    Thanks Ima try this

    Gona have to swap with zombies cuz I put some extra functions in forge

    0 Not allowed! Not allowed!
    Last edited by Shinigami; 06-12-2011 at 07:53 AM.



  9. #9
    Jungler Strike's Avatar
    Join Date
    Apr 2011
    Location
    Gotham
    Posts
    6,318
    Points
    9,417
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Gotham
    Posts
    6,318
    Points
    9,417
    Gamer IDs

    PSN ID: xSTR11K3Rx Steam ID: xSTRiiK3Rx

    Contact info:

    Youtube Channel: http://www.youtube.com/xSTRiiK3Rx/

    Default

    what extra function?

    0 Not allowed! Not allowed!

    ^Ty goober^
    Quote Originally Posted by xX_BiGFooTT_Xx View Post
    compensate my cock faggot

  10. #10
    Graphic Artist
    God Of Death
    Shinigami's Avatar
    Join Date
    Mar 2011
    Location
    Chicago
    Posts
    1,363
    Points
    2,812
         User Info     Contact     Gamer ID
    Join Date
    Mar 2011
    Location
    Chicago
    Posts
    1,363
    Points
    2,812

    Default

    Oh I was trying to put the two scripts that Joker posted in the mod menu

    I did something wrong cuz I got an error, something about crosshairs

    Anyway Ima put this in forge noa

    EDIT: Im having a hard time getting this to work

    Any suggestions?

    0 Not allowed! Not allowed!



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 12:21 AM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.