Quick commands?

Discussion in 'Coding' started by communism, Oct 30, 2009.

  1. communism

    communism poof

    Messages:
    4,094
    Likes Received:
    2
    Trophy Points:
    0
    Is it possible to have one button recycle/build your turret? Instead of navigating through the menu
     
  2. Ducky

    Ducky 2D Artist

    Messages:
    158
    Likes Received:
    0
    Trophy Points:
    0
    There is:
    • emp_eng_recycle_1 : remote recycles primary turret
    • emp_eng_recycle_2 : remote recycles secondary turret (when ranked)
    • emp_eng_recycle_3 : remote recycles engy cam
    • emp_eng_recycle_4 : remote recycles engy radar
    • emp_eng_upgrade : upgrades turret in focus
    • engselect 0 .. 7 : works only with calculator in hand and readies an item to be built (must still be placed), where
      • 0 : nothing selected
      • 1 : mg turret
      • 2 : ml turret
      • 3 : ? ml turret, but undroppable ?
      • 4 : engy camera
      • 5 : engy radar
      • 6 : walls
      • 7 : ammo

    The thing to sort out is, that emp_eng_recycle_x will recycle the specified turret slot, while engselect only selects a type, so with 2 turrets you may need extra binds for each type and each slot. What I currently have in my engineer.cfg is
    Code:
    bind "F1" "emp_eng_recycle_1;engselect 1"
    bind "F2" "emp_eng_recycle_1;engselect 2"
    bind "F3" "emp_eng_recycle_2;engselect 1"
    bind "F4" "emp_eng_recycle_2;engselect 2"
    bind "F5" "emp_eng_recycle_3;engselect 4"
    bind "F6" "emp_eng_recycle_4;engselect 5"
    bind "F7" "engselect 6"
    bind "F8" "engselect 7"
    There's also a couple of others, like changeclass, changeskill etc., but I haven't figured out yet how and when they work - it would be nice to have some class/weapon presets that way...
     
  3. RKB53

    RKB53 Member

    Messages:
    861
    Likes Received:
    0
    Trophy Points:
    0
    Nice find
     
  4. Empty

    Empty Member

    Messages:
    14,912
    Likes Received:
    11
    Trophy Points:
    0
    Bad binds tho.

    We need the F keys for vehicle seats.
     
  5. Demented

    Demented Member

    Messages:
    2,337
    Likes Received:
    0
    Trophy Points:
    0
    He put those binds in the Engineer.cfg. Put the vehicle seat binds in the Vehicles.cfg and it will switch between them for you. (In theory.)
     
  6. Empty

    Empty Member

    Messages:
    14,912
    Likes Received:
    11
    Trophy Points:
    0
    Of course!

    That's fucking brilliant actually, I'm going to do this now.
     
  7. Ducky

    Ducky 2D Artist

    Messages:
    158
    Likes Received:
    0
    Trophy Points:
    0
    While Demented is basically right, there's no need to do that:
    The seat binds are already restored in a vehicle, as per the default emp_config.cfg (which has specific binds for infantry/vehicles/commander), so the engineer f-keys shouldn't interfere with anything else.
     
  8. complete_

    complete_ lamer

    Messages:
    6,437
    Likes Received:
    144
    Trophy Points:
    0
    nice. been wondering if this was possible for a while.
     
  9. flasche

    flasche Member Staff Member Moderator

    Messages:
    13,299
    Likes Received:
    168
    Trophy Points:
    0
    while we are at this, why are the binds in config.cfg AND emp_config.cfg anyway? :eek:

    also thx for this :D
     
  10. Ducky

    Ducky 2D Artist

    Messages:
    158
    Likes Received:
    0
    Trophy Points:
    0
    config.cfg is where HL stores the current configuration (current key binds, joystick/mouse and some other client settings).
    Empires also uses its own controls-configuration dialog, and these settings are stored in emp_config.cfg.

    Both files are overwritten by the game, so don't put your own binding stuff in there, or it will be lost ;)
     
  11. Demented

    Demented Member

    Messages:
    2,337
    Likes Received:
    0
    Trophy Points:
    0
    I have my config.cfg set to read only. Suck it, Emp!
     
  12. Kane

    Kane Member

    Messages:
    1,337
    Likes Received:
    0
    Trophy Points:
    0
    You are doing it wrong.
     
  13. Nightmare

    Nightmare Member

    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    0
    I know this is a very old post however it all-but covers something I've been wondering about. In my server installation there's a "commander.cfg" located in empires/cfg. The only text in it is //binds for commander.

    What is the purpose of this file?
     
  14. Trickster

    Trickster Retired Developer

    Messages:
    16,576
    Likes Received:
    46
    Trophy Points:
    0
    The .cfgs in there just simply execute whenever you're one of those classes, that's why you have commander, rifleman, engineer etc. They're just there for hardcore players who might use them, because most people won't need them. I only ever really used zoom_sensitivity_ratio 0.2 in the scout.cfg myself, didn't need the others.
     
  15. dizzyone

    dizzyone I've been drinking, heavily

    Messages:
    5,771
    Likes Received:
    0
    Trophy Points:
    0
    I NEED A BIGGER KEYBOARD. MOAAAAAR KEYs.
     
  16. mcthugg

    mcthugg Banned

    Messages:
    269
    Likes Received:
    0
    Trophy Points:
    0
    I know this is old by why not a bind to select and place :P
    bind "ins" "slot4; +attack2; wait; -attack2; wait; engselect 1; wait; +attack"
    bind "home" "slot4; +attack2; wait; -attack2; wait; engselect 2; wait; +attack"
    bind "pgup" "slot4; +attack2; wait; -attack2; wait; engselect 7; wait; +attack"
    bind "pgdn" "slot4; wait; +attack2; wait; -attack2; wait; emp_eng_recycle_1; wait; +attack"
    bind "end" "slot4; +attack2; wait; -attack2; wait; engselect 6; wait;+attack"
     
  17. Trickster

    Trickster Retired Developer

    Messages:
    16,576
    Likes Received:
    46
    Trophy Points:
    0
    It doesn't work, the -attack doesn't cancel.
     
  18. Smithy

    Smithy Developer Staff Member Administrator

    Messages:
    333
    Likes Received:
    68
    Trophy Points:
    0
    Probably because of sv_allow_wait_command 0.
     
  19. Beerdude26

    Beerdude26 OnThink(){ IsDownYet(); }

    Messages:
    7,243
    Likes Received:
    13
    Trophy Points:
    0
    Oh so that's why the wait command fails to work from time to time, that's a shame
     
  20. mcthugg

    mcthugg Banned

    Messages:
    269
    Likes Received:
    0
    Trophy Points:
    0
    Sorry threw those together real quick. Tested and they worked. Depends on how long you press the key. The ones I use is are about 6 lines long each. There are ways around " sv_allow_wait_command 0." Instead of ;wait just use another command to take up space.If all else fails you could use a time delayed macro. As for the -attack It helps with some source games. Some games without -attack it will keep firing. Would have made better ones but ...I was up for 36hrs. :P
     

Share This Page