Post: Button Handling Question
06-24-2013, 01:02 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); So most COD5 menu's use "if (self AdsButtonPressed()" as a main button unlike cfgs "bind BUTTON_LSHLDR vstr" So what would the correct button name to insert if I wanted it to be dpad up.

Like if (self ActionButton3Pressed()


What's the button codes for the 4 actionslots like the AdsButtonPressed?



Thanks, Matt

The following user groaned matt0897 for this awful post:

FutureOps
06-24-2013, 02:25 AM #2
KadenxC28
Little One
I believe dpad_up is actionslot1? Nice sig btw, fucking love Bubbles XD
06-24-2013, 02:33 AM #3
Originally posted by KadenxC28 View Post
I believe dpad_up is actionslot1? Nice sig btw, fucking love Bubbles XD


That's for cfg, not gsc :p
06-24-2013, 06:05 AM #4
KadenxC28
Little One
Originally posted by P2TL View Post
That's for cfg, not gsc :p


Oh, I must've misunderstood the question, I thought you were asking for cfg. My bad, yeah I'm not too good with gsc lol so I'm not sure :dumb:
06-24-2013, 04:03 PM #5
zombiegangster
Pokemon Trainer
Originally posted by P2TL View Post
So most COD5 menu's use "if (self AdsButtonPressed()" as a main button unlike cfgs "bind BUTTON_LSHLDR vstr" So what would the correct button name to insert if I wanted it to be dpad up.

Like if (self ActionButton3Pressed()


What's the button codes for the 4 actionslots like the AdsButtonPressed?



Thanks, Matt


[{+actionslot 1}]

The other guy was right he just wrote the plain text.
06-24-2013, 04:21 PM #6
Sonoro
I like anteaters
Cross: [{+gostand}]
Circle : [{+stance}]
Square: [{+usereload}]
Triangle: [{weapnext}]

Dpad Up: [{+actionslot 1}]
Dpad Right: [{+actionslot 2}]
Dpad Down: [{+actionslot 3}]
Dpad Left: [{+actionslot 4}]
06-24-2013, 04:32 PM #7
FutureOps
Little One
Originally posted by P2TL View Post
So most COD5 menu's use "if (self AdsButtonPressed()" as a main button unlike cfgs "bind BUTTON_LSHLDR vstr" So what would the correct button name to insert if I wanted it to be dpad up.

Like if (self ActionButton3Pressed()


What's the button codes for the 4 actionslots like the AdsButtonPressed?



Thanks, Matt


Homie there isn't one, your limited to ButtonPresses.
06-24-2013, 04:32 PM #8
philipeininger
Treasure hunter
  *  *   * * * * * * * *


dpad-up: [{+actionslot 1}]
dpad-down: [{+actionslot 2}]
dpad-left: [{+actionslot 3}]
dpad-Right: [{+actionslot 4}]
X: [{+gostand}]
O: [{+crouch}]
Square: [{+usereload}]
Triangle: [{weapnext}]
R3: [{+melee}]
L3: [{+breath_sprint}]
R2: [{+frag}]
L2: [{+smoke}]
R1: [{+attack}]
L1: [{+toggleads_throw}]




An example
Code:

bind DPAD_UP "god"

That would make it so godmode is turned on and off by pressing up on the DPAD.
These are all the button binds:
Code:

bind BUTTON_RTRIG (Right Trigger)
bind BUTTON_LTRIG (Left Trigger)
bind BUTTON_RSHLDR (Right Bumper)
bind BUTTON_LSHLDR (Left Bumper)
bind BUTTON_RSTICK (Right Stick Press)
bind BUTTON_LSTICK (Left Stick Press)
bind BUTTON_A (A)
bind BUTTON_B (B)
bind BUTTON_X (X)
bind BUTTON_Y (Y)
bind DPAD_UP (DPAD Up)
bind DPAD_DOWN (DPAD Down)
bind DPAD_LEFT (DPAD Left)
bind DPAD_RIGHT (DPAD Right)
bind APAD_UP (Left Stick Up)
bind APAD_DOWN (Left Stick Down)
bind APAD_LEFT (Left Stick Left)
bind APAD_RIGHT (Left Stick Right)
bind BUTTON_BACK (Back)
bind BUTTON_START (Start)

They show up as XBOX buttons, but they'll work for PS3.

And you can reset your binds by using these:
Code:

+scores (Back button)
+attack (Right trigger)
+speed_throw (Left trigger)
+frag (Right bumper)
+smoker (Left bumper)
+melee (Right stick)
+breath_sprint (Left stick)
+gostand (A button)
+stance (B button)
+usereload (X button)
+weapnext (Y button)
+actionslot 1 (Dpad Up)
+actionslot 2 (Dpad Down)
+actionslot 3 (Dpad Left)
+actionslot 4 (Dpad Right)

(I forgot what the APAD's reset to...Maybe someone can post them)

An example:
Code:

bind DPAD_UP "god"

Would turn into:
Code:

bind DPAD_UP "+actionslot 1"

I'm not sure if this is what you meant. If not just say and I'll try to help.
06-24-2013, 04:34 PM #9
Originally posted by philipeininger View Post
* * * * * * * * * *


dpad-up: [{+actionslot 1}]
dpad-down: [{+actionslot 2}]
dpad-left: [{+actionslot 3}]
dpad-Right: [{+actionslot 4}]
X: [{+gostand}]
O: [{+crouch}]
Square: [{+usereload}]
Triangle: [{weapnext}]
R3: [{+melee}]
L3: [{+breath_sprint}]
R2: [{+frag}]
L2: [{+smoke}]
R1: [{+attack}]
L1: [{+toggleads_throw}]




An example
Code:

bind DPAD_UP "god"

That would make it so godmode is turned on and off by pressing up on the DPAD.
These are all the button binds:
Code:

bind BUTTON_RTRIG (Right Trigger)
bind BUTTON_LTRIG (Left Trigger)
bind BUTTON_RSHLDR (Right Bumper)
bind BUTTON_LSHLDR (Left Bumper)
bind BUTTON_RSTICK (Right Stick Press)
bind BUTTON_LSTICK (Left Stick Press)
bind BUTTON_A (A)
bind BUTTON_B (B)
bind BUTTON_X (X)
bind BUTTON_Y (Y)
bind DPAD_UP (DPAD Up)
bind DPAD_DOWN (DPAD Down)
bind DPAD_LEFT (DPAD Left)
bind DPAD_RIGHT (DPAD Right)
bind APAD_UP (Left Stick Up)
bind APAD_DOWN (Left Stick Down)
bind APAD_LEFT (Left Stick Left)
bind APAD_RIGHT (Left Stick Right)
bind BUTTON_BACK (Back)
bind BUTTON_START (Start)

They show up as XBOX buttons, but they'll work for PS3.

And you can reset your binds by using these:
Code:

+scores (Back button)
+attack (Right trigger)
+speed_throw (Left trigger)
+frag (Right bumper)
+smoker (Left bumper)
+melee (Right stick)
+breath_sprint (Left stick)
+gostand (A button)
+stance (B button)
+usereload (X button)
+weapnext (Y button)
+actionslot 1 (Dpad Up)
+actionslot 2 (Dpad Down)
+actionslot 3 (Dpad Left)
+actionslot 4 (Dpad Right)

(I forgot what the APAD's reset to...Maybe someone can post them)

An example:
Code:

bind DPAD_UP "god"

Would turn into:
Code:

bind DPAD_UP "+actionslot 1"

I'm not sure if this is what you meant. If not just say and I'll try to help.


Like I said, that's all for cfg... :p, I guess future ops answered it, it has to be a button to press not a dpad
Last edited by matt0897 ; 06-24-2013 at 04:36 PM.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo