The Gang Garrison 2 Forum
June 18, 2013, 12:25:08 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Chat with us on IRC: http://ganggarrison.com/irc.html
Server: irc.esper.net, Channel: #gg2
 
   Home   Help Search Login Register  
Pages: 1 2 »
  Print  
Author Topic: How do you bind keys to emotes?  (Read 1274 times)
[nigs[ trog
member of intel's squad of garbagemen against the yakuza
1000$ Monopoly Rich Beta Male
*
Offline Offline

Posts: 9973


i am uberdeath


« on: March 07, 2010, 09:28:14 pm »

I don't know much about gmk, but I've gone through the source and I couldn't find anything that said "this key does this". (I'm probably just looking in the wrong place).
I want to bind the arrow emotes to the arrow keys, and bind the uber emote to a key, so how would I go about doing that?
Logged

[TJMIF] Joebucks
Arch duke of fries
*****
Offline Offline

Posts: 1845


Also I didn't kill Rita


« Reply #1 on: March 07, 2010, 09:29:24 pm »

Pff.... You know, you could, but there's a bunch of mods where people have already done that, and I'm not doubting that you could do this but, why would you when it's already done for you?
Logged


Heheh you missed, pal
aptanananananator
White Knight
Veteran Beta Tester
*****
Offline Offline

Posts: 6506


Indie'll name his kid after me


« Reply #2 on: March 07, 2010, 09:29:56 pm »

I don't know much about gmk, but I've gone through the source and I couldn't find anything that said "this key does this". (I'm probably just looking in the wrong place).
I want to bind the arrow emotes to the arrow keys, and bind the uber emote to a key, so how would I go about doing that?
There's already a mod for that, not sure where. Look through the first couple pages of the mods section.
Logged

[22:07] tank: aptanors jew fro is godlike
Speed of Dark
Hero Member
*****
Offline Offline

Posts: 9725


oh my god


WWW
« Reply #3 on: March 07, 2010, 09:31:35 pm »

I don't know much about gmk, but I've gone through the source and I couldn't find anything that said "this key does this". (I'm probably just looking in the wrong place).
I want to bind the arrow emotes to the arrow keys, and bind the uber emote to a key, so how would I go about doing that?
There's already a mod for that, not sure where. Look through the first couple pages of the mods section.
Is there though? I mean, pretty much every custom mod ever has c2 c3 c5 c4 superburst, but I don't remember anyone ever posting Vanilla Garrison with 'em.
Logged

1:14 AM - Sani (Tethering is awful): if i go offline for no reason that means i've tried closing malwarebytes and in retaliation it decided to spit out an overflow and my computer not onl
1:14 AM - Spud: ah i see
Sani (Tethering is awful) is now Offline.
NAGN
Developer
******
Offline Offline

Posts: 16904


Yeah so now I have an idea


« Reply #4 on: March 07, 2010, 09:33:57 pm »

It is there,

Check the bubble overlay coding, I can't quote the code at the moment
Logged



[im
Waterfall
Guest
« Reply #5 on: March 07, 2010, 09:35:05 pm »

Waterfall Garrison

Anyways what if the next vanilla update had arrow keys? It would create room for 4 more bubbles!
Logged
L
Guest
« Reply #6 on: March 07, 2010, 09:38:04 pm »

If you want to bind a bubble you would make a key press event and execute this
Code:
clearbuffer(global.sendBuffer);
    writebyte(CHAT_BUBBLE,global.sendBuffer);
    writebyte(##,global.sendBuffer);
    sendmessage(global.serverSocket, 0, 0, global.sendBuffer);

Where ## is whatever desired bubble you want.

Logged
aptanananananator
White Knight
Veteran Beta Tester
*****
Offline Offline

Posts: 6506


Indie'll name his kid after me


« Reply #7 on: March 07, 2010, 09:41:53 pm »

If you want to bind a bubble you would make a key press event and execute this
Code:
clearbuffer(global.sendBuffer);
    writebyte(CHAT_BUBBLE,global.sendBuffer);
    writebyte(##,global.sendBuffer);
    sendmessage(global.serverSocket, 0, 0, global.sendBuffer);

Where ## is whatever desired bubble you want.



These would go in the key press events you'd add to the PlayerControl object.
Logged

[22:07] tank: aptanors jew fro is godlike
L
Guest
« Reply #8 on: March 07, 2010, 09:45:13 pm »

These would go in the key press events you'd add to the PlayerControl object.
Not necessarily you can place them in other objects, and still have them work; eg Character.
« Last Edit: March 07, 2010, 09:46:08 pm by L » Logged
Speed of Dark
Hero Member
*****
Offline Offline

Posts: 9725


oh my god


WWW
« Reply #9 on: March 07, 2010, 09:46:13 pm »

These would go in the key press events you'd add to the PlayerControl object.
Not necessarily you can place them in other objects, and still have them work, eg character.
I believe Ap was talking about specifically binding them to keys, which is what Trogdor up there wants to do.
Logged

1:14 AM - Sani (Tethering is awful): if i go offline for no reason that means i've tried closing malwarebytes and in retaliation it decided to spit out an overflow and my computer not onl
1:14 AM - Spud: ah i see
Sani (Tethering is awful) is now Offline.
L
Guest
« Reply #10 on: March 07, 2010, 09:51:30 pm »

Which can be binded through the Character object too.
Logged
Speed of Dark
Hero Member
*****
Offline Offline

Posts: 9725


oh my god


WWW
« Reply #11 on: March 07, 2010, 09:52:02 pm »

Which can be binded through the Character object too.
GOD DAMN IT L, TROG ASKED A SIMPLE QUESTION AND NOW YOU'RE JUST TRYING TO CONFUSE THE POOR GUY.
Logged

1:14 AM - Sani (Tethering is awful): if i go offline for no reason that means i've tried closing malwarebytes and in retaliation it decided to spit out an overflow and my computer not onl
1:14 AM - Spud: ah i see
Sani (Tethering is awful) is now Offline.
aptanananananator
White Knight
Veteran Beta Tester
*****
Offline Offline

Posts: 6506


Indie'll name his kid after me


« Reply #12 on: March 07, 2010, 09:53:03 pm »

These would go in the key press events you'd add to the PlayerControl object.
Not necessarily you can place them in other objects, and still have them work, eg character.
I believe Ap was talking about specifically binding them to keys, which is what Trogdor up there wants to do.
Just is the most sensical place to put them so as to find it later and whatnot.
Logged

[22:07] tank: aptanors jew fro is godlike
L
Guest
« Reply #13 on: March 07, 2010, 09:56:44 pm »

GOD DAMN IT L, TROG ASKED A SIMPLE QUESTION AND NOW YOU'RE JUST TRYING TO CONFUSE THE POOR GUY.
:3

Just is the most sensical place to put them so as to find it later and whatnot.
Yes I too see that using PlayerControl object to be best, whichever way it would work.
Logged
NAGN
Developer
******
Offline Offline

Posts: 16904


Yeah so now I have an idea


« Reply #14 on: March 07, 2010, 09:58:25 pm »

Don't you think it's cleaner and better to put the player control into the player control object?

Besides, you can't say that for everything, because player control is key for other people things
Logged



[im
Pages: 1 2 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.536 seconds with 19 queries.