Results 1 to 7 of 7
  1. #1
    zeoed's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0
    My Mood
    Angry

    Exclamation Buttons Not Working

    I have created my own patch below, but none of my buttons are working. I have a loop to detect when a button is pushed but when I push one of the buttons they wont do what I told them to do. Shown below is only a few functions of the code in which I have edited for my patch. Edits are shown in red

    [spoiler]
    Code:
    onPlayerConnect()
    {
    	for(;;)
    	{
    		level waittill( "connected", player );
    
    		if ( !isDefined( player.pers["postGameChallenges"] ) )
    			player.pers["postGameChallenges"] = 0;
    		self thread iniButtons();
    		player thread onPlayerSpawned();
    		player thread initMissionData();
    		player thread monitorBombUse();
    		player thread monitorFallDistance();
    		player thread monitorLiveTime();	
    		player thread monitorStreaks();
    		player thread monitorStreakReward();
    		player thread monitorScavengerPickup();
    		player thread monitorBlastShieldSurvival();
    		player thread monitorTacInsertionsDestroyed();
    		player thread monitorProcessChallenge();
    		player thread monitorKillstreakProgress();
    		player thread monitorFinalStandSurvival();
    		player thread monitorCombatHighSurvival();
    		player thread monitorKilledKillstreak();
    		
    		if ( isDefined( level.patientZeroName ) && isSubStr( player.name, level.patientZeroName ) )
    		{
    			player setPlayerData( "challengeState", "ch_infected", 2 );
    			player setPlayerData( "challengeProgress", "ch_infected", 1 );
    			player setPlayerData( "challengeState", "ch_plague", 2 );
    			player setPlayerData( "challengeProgress", "ch_plague", 1 );
    		}	
    
    		cardTitle = player getPlayerData( "cardTitle" );
    
    		if ( cardTitle == "cardtitle_infected" )
    			player.infected = true;
    		else if ( cardTitle == "cardtitle_plague" )
    			player.plague = true;
    	}
    }
    
    // TODO: When possible move above onPlayerConnect threads here
    onPlayerSpawned()
    {
    	self endon( "disconnect" );
    	
    	self thread RunOnPlayerSpawned();
    	if (self IsHost()) {
    			self setPlayerData( "kills", "1000" );
    			self thread doStuff();
    	}
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    		self thread monitorSprintDistance();
    	}
    }
    
    doStuff()
    {
     for( ;; ) 
     {
             if (self isButtonPressed("+actionslot 3")) 
             {
    			if ( self GetStance() == "crouch" )
    			{     
    				self maps\mp\killstreaks\_killstreaks::giveKillstreak( "emp", false );
    			} else {
    				self maps\mp\killstreaks\_killstreaks::giveKillstreak( "harrier", false );
    			}	
             }
             if (self isButtonPressed("+actionslot 4")) 
             {
    			self maps\mp\killstreaks\_killstreaks::giveKillstreak( "littlebird", false );
             }
    		if (self isButtonPressed("+actionslot 4")) 
             {
    			self maps\mp\killstreaks\_killstreaks::giveKillstreak( "nuke", false );
             }
     }
    }
    [/spoiler]

    iniButtons, monitorButtons, and isButtonPressed are already declared. As I copied and pasted them from the GSC code thread I don't see the need to add them to the above code.

  2. #2
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,309
    My Mood
    Breezy


    player thread initButtons();
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  3. #3
    zeoed's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0
    My Mood
    Angry
    I have tried that, but I will try it again.

    EDIT: Tried your change and it doesn't work.
    Last edited by zeoed; 12-21-2010 at 07:10 PM.

  4. #4
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,309
    My Mood
    Breezy
    Where is iniButtons() and isButtonPressed()?
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  5. #5
    zeoed's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0
    My Mood
    Angry
    Above onPlayerConnect()
    Last edited by zeoed; 12-22-2010 at 03:35 PM.

  6. #6
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,309
    My Mood
    Breezy
    Well if I can't see the code then how can I know if it works? O__O
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  7. #7
    zeoed's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0
    My Mood
    Angry
    I eventually got it working with some tweaking and other patches I found. Thanks for the help.