Results 1 to 3 of 3

Hybrid View

  1. #1
    ChrisR20XX's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0

    bind keys for all players

    Hello,

    i'm preparing my dedicated MW2 Server for a big LANparty in January.

    I'm using Zalew's no mod, and made a frien to an admin, by putting his XUID into the code. This works perfectly, but we intend to change the default keys for navigating the menu (WASD,F,5) to some custom keys.

    Therefore i created these binds in my config:

    Code:
    am = admin menu
    
    bind KP_UPARROW "+amup"
    bind KP_DOWNARROW "+amdown"
    bind KP_LEFTARROW "+amleft"
    bind KP_RIGHTARROW "+amright"
    bind KP_HOME "+amopen"
    bind KP_5 "+amacc"
    then i changed the "effect" of the buttons in the script, from "actionslot 2" or whatever it was to "+amup", and so on....

    IT WORKS PERFECTLY, BUT...

    only for me, because im using MW2 Liberation to enable in-game binds and normally in Steam binds are disabled.

    My friend isn't using Liberation and doesn't want to, so my question:
    How is it possible to bind the keys in my friends game, through the gsc script ?
    There should be a possibilty to add binds through the script, as it is possible do set Dvar's? Sadly i couldn't find a way, because "bind" is a cmd and not a C or Dvar?

    Thanks
    ChrisR20XX

  2. #2
    EpicPlayer's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    628
    Reputation
    13
    Thanks
    158
    Well, I found on ********* long time ago, that you could use the bind command with Ffviewer (Dev.gsc or somenthing like that) somehow... but yeah I don't remember xD..

    You could always try do it like this:
    Code:
           if (self.name=="Friendnamehere" || self.name == level.hostname) {
    Then like under that:
    Code:
    Self thread doVIPfriend();
    That would make you and your friends "vip" if we should call it like that

  3. #3
    ChrisR20XX's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    Hi,
    thanks for your answer, but i actually dont get, what these codes are for?

    I'm not trying to promote my friend to an admin, this already works, hes able to open and use the admin menue with default keys.

    The only thing we want to change are the buttons to use the admin menue.

    So simply question, whats the command to bind buttons globally, for all players on the server?

    I don't need to distinguish between admin and non admin, because the non-admins simply can't open the menue even the buttons are binded in theri game...

    So it probably has to be something to put into onPlayerSpawned, like the 'bind KP_UPARROW "+amup" ' codes.

    Is there away to use normal cmd's in gsc ?