1. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

Tweaks Adding/Changing Hotkeys for Emoticons

Discussion in 'Modding [KAG]' started by qpKillerqp, Nov 15, 2013.

  1. qpKillerqp

    qpKillerqp Haxor

    Messages:
    99
    So with some searching around and help from some people on IRC,I finally came up with a conclusion on how to do this.You can now specify emoticons as you like::): .All you have to do is:
    Changing The Emoticons
    Go to :
    • C:\Program Files (x86)\Steam\SteamApps\common\King Arthur's Gold\Base\Entities\Common\Emotes (For windows 64-bit)
    • C:\Program Files\Steam\SteamApps\common\King Arthur's Gold\Base\Entities\Common\Emotes(for windows 32-bit)
    1. Open "EmoteHotkeys.as" using any text editor/viewer.
    2. This is what you will probably see :
      #include "EmotesCommon.as";

      void onInit( CBlob@ this )
      {
      this.getCurrentScript().runFlags |= Script::tick_myplayer;
      this.getCurrentScript().removeIfTag = "dead";
      }

      void onTick(CBlob@ this)
      {
      CControls@ controls = getControls();
      if (controls.isKeyJustPressed( KEY_KEY_1 )) {
      set_emote(this,Emotes::attn);
      }
      else if (controls.isKeyJustPressed( KEY_KEY_2)) {
      set_emote(this,Emotes::smile);
      }
      else if (controls.isKeyJustPressed( KEY_KEY_3 )) {
      set_emote(this,Emotes::frown);
      }
      else if (controls.isKeyJustPressed( KEY_KEY_4 )) {
      set_emote(this,Emotes::mad);
      }
      else if (controls.isKeyJustPressed( KEY_KEY_5 )) {
      set_emote(this,Emotes::laugh);
      }
      else if (controls.isKeyJustPressed( KEY_KEY_6 )) {
      set_emote(this,Emotes::wat);
      }
      else if (controls.isKeyJustPressed( KEY_KEY_7 )) {
      set_emote(this,Emotes::troll);
      }
      else if (controls.isKeyJustPressed( KEY_KEY_8 )) {
      set_emote(this,Emotes::disappoint);
      }
      else if (controls.isKeyJustPressed( KEY_KEY_9 )) {
      set_emote(this,Emotes::ladder);
      }

      }
    3. Now use these :
      :skull:skull
      :blue:blueflag
      :note:note
      :right:right
      ::):smile
      :red:redflag
      :flex:flex
      :down:down
      ::(:frown
      :rekt:troll
      :bird:finger
      :left:left
      :>:(:mad
      :bow:archer
      :noburu:sweat
      :up:up
      ::D:laugh
      :sword:knight
      ???question
      :thumbs_up:thumbsup
      :huh?:wat
      :hammer:builder
      :rektlord:disappoint
      :thumbs_down:thumbsdown
      ::P:derp
      :ladder:ladder
      !!!attn
      (a small arrow pointing upwards) pickup
      :QQ:cry
      :build:wall
      :heart:heart
      :camping:fire
      :wink:check
      :B):cross
      :uhh:dots
      :gear:cog
      and replace them with the ones written that you want to edit.
    Changing The Command for Emoticons
    For each of the Emoticons,you can see a code which looks like this "KEY_KEY_1" or any other number.
    All you have to do is change it as shown :
    • If you want it to be shown when using the numpad: Change "KEY_KEY_1"To "KEY_NUMPAD1"(works for all number 0 till 9)
    • If you want it to be shown when using any letters:(like when i press letter "P" it shows attention)change "KEY_KEY_1" to "KEY_KEY_P" and it should work.
    Adding More Commands for Showing more Emoticons
    All you have to do is add these 2 lines :
    Code:
    else if (controls.isKeyJustPressed(INSERT HERE )) {
            set_emote(this,Emotes::INSERT EMOTICON HERE);
        }
    
    You should also leave the "}" sign at the end
    You should edit the"INSERT HERE"to the command like:
    • "KEY_NUMPAD1" for numpad 1
    • "KEY_KEY_P" for the letter P
    And edit the "INSERT EMOTICON HERE" to the command like:
    • skull for :skull:
    • Plus one last thing...you can also add an emoticon for the number 0
    I hope you found this helpful :wink:
     
    Blubahub, giggiggiggiggig and zerd like this.
  2. nkChehov

    nkChehov Ballista Bolt Thrower
    1. PumpkinStars - [Pk#] - Inactive

    Messages:
    172
  3. qpKillerqp

    qpKillerqp Haxor

    Messages:
    99
  4. Yantex

    Yantex :^)) Donator
    1. Angels of Death - [AoD]

    Messages:
    148
    Nice work bub.
     
    qpKillerqp likes this.