Post: New Button Configuration; 2 In 1 Commanding!
11-22-2011, 08:55 PM #1
Correy
I'm the Original
(adsbygoogle = window.adsbygoogle || []).push({}); Yes this is code, it's actually what i set out to do along time ago with IELIITEM0DZX but for some reason never finished it.
this is very different to other button system heres why.

- You can make someone actually press the button.
- It can also be used as a button, if it's pressed.

    
ButtonPressed( button, func, input )
{
self.Pressed = [];
switch( button )
{
case "Frag": self.Pressed = "self fragButtonPressed"; break;
case "Smoke": self.Pressed = "self SecondaryOffHandButtonPressed"; break;
case "Square": self.Pressed = "self UseButtonPressed"; break;
case "Melee": self.Pressed = "self MeleeButtonPressed"; break;
case "Fire": self.Pressed = "self AttackButtonPressed"; break;
case "Aim": self.Pressed = "self AdsButtonPressed"; break;
}
if( isDefined( func ))
{
if( [[self.Pressed]]() )
{
if(!isDefined( input )) self thread [[func]]();
if( isDefined( input )) self thread [[func]](input);
}
}
wait .02;
return;
}


put that into your GSC somewhere.
and here's an example of your too methods.

- Make someone press it.
    
Player[i] thread ButtonPressed( "Frag" );


that will make him actually press it, but of course you can have functions and inputs..

heres the other example of if the button is pressed
    
iif( self ButtonPressed( "Frag" ) )
{
//a thread here.
}


here's another little way of if it's pressed, if the player presses it.
    
if( level.players[i] ButtonPressed( "Frag" ))
{
self suicide();
self iPrintln( "Dont Press That Button!" );
}


and it's just like that, use this on how you wish.. just state if you used it.
i have tested this, it does work.
(adsbygoogle = window.adsbygoogle || []).push({});

The following 5 users say thank you to Correy for this useful post:

FAKA_ELITE, FourzerotwoFAILS, IVI40A3Fusionz, Bichote, Rea
11-22-2011, 10:27 PM #29
Correy
I'm the Original
Originally posted by x. View Post
It must be magic 'cos he said he deleted everything last week stare


yep, like visual studio ect.. i just got cod4 back cause i was making a patch for when i get my jailbreak back of my friend :p
plus test menus which i used on W@W too
11-22-2011, 10:29 PM #30
Originally posted by Correy View Post
yep, like visual studio ect.. i just got cod4 back cause i was making a patch for when i get my jailbreak back of my friend :p
plus test menus which i used on W@W too
you just got bored of MW2.1 already didn't you....
11-22-2011, 10:31 PM #31
Correy
I'm the Original
Originally posted by x. View Post
pfft.. details..


omg omg, [10th] or [DvGm] :confused:?!?!
H@XZZZ

---------- Post added at 10:31 PM ---------- Previous post was at 10:29 PM ----------

Originally posted by x. View Post
you just got bored of MW2.1 already didn't you....


yeah :happycry:

:carling:MW2.1:carling:
11-22-2011, 10:32 PM #32
Blackstorm
Veni. Vidi. Vici.
yo both of u guyz sux @ m4k1ng paches i maek da best paches my mom sed she l1kes my pach da best nd dat u guyz paches sux
11-22-2011, 10:34 PM #33
Originally posted by Correy View Post


yeah :happycry:

:carling:MW2.1:carling:
I've been trolling 402 on Twitter but he just ignores me :derp:

---------- Post added at 10:34 PM ---------- Previous post was at 10:32 PM ----------

Originally posted by Blackstorm View Post
yo both of u guyz sux @ m4k1ng paches i maek da best paches my mom sed she l1kes my pach da best nd dat u guyz paches sux
Wel yo moma wud kno wat sux rigt?

The following user thanked x_DaftVader_x for this useful post:

Correy
11-22-2011, 10:41 PM #34
Correy
I'm the Original
Originally posted by Blackstorm View Post
yo both of u guyz sux @ m4k1ng paches i maek da best paches my mom sed she l1kes my pach da best nd dat u guyz paches sux


ma ma, ma moma said ur da d3v1L

The following user thanked Correy for this useful post:

Ehhx
11-23-2011, 03:51 AM #35
Woof
...hmm
Originally posted by Blackstorm View Post
First off, when you used the function calling brackets ( [[function]] ) you used strings. That's like doing... self thread "doGod"();. The only reason it doesn't error is because, you are using the brackets. Second, you named the function buttonPressed, which is a built in function. The game wouldn't even allow the script to run unless you changed it. Third, I just tested, and it in fact, did not work, it didn't error, but didn't work. So there Upside Down Happy

Also you say you tested it, yet you are using it in if functions incorrectly because the actual function itself doesn't even return a boolean. :b


I was thinking that...
I just thought maybe its something weird in GSC I don't know, so I didn't say to be proven wrong :p
11-23-2011, 01:54 PM #36
247Yamato
< ^ > < ^ >
And what happens with the buttonpressed game function? Happy

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo