Results 1 to 4 of 4
  1. #1
    idiot2010's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    174
    Reputation
    9
    Thanks
    6
    My Mood
    Paranoid

    New idea to bind new keys to mods.

    Hey,
    i just was wandering,
    a week ago i tried to put "M" function in my mod, but it was'nt working,
    so now i just got in confing_mp.cfg,
    and i saw somthing intersting:

    Code:
    bind N "+actionslot 1"
    So maybe,
    u can put somthing like:

    self waittill ("bind M")
    watch think?

    p.s sorry for bad eng....

  2. #2
    EpicPlayer's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    628
    Reputation
    13
    Thanks
    155
    -.-

    I'm gonna try explain this really simple, k? XD
    The config file is a config where the game select your binds, It's like bind N "+actionslot 1" as you said, That will make the N button do +actionslot 1 command =3 Get it?

    Let's take a look at the toggle thirdperson code mkai? :P

    Code:
    do3rdPerson() 
    { 
    self endon ( "disconnect" );
    self endon ( "death" );
    self notifyOnPlayerCommand( "dpad_right", "+actionslot 4");  
    for (;;)                 
             { 
                            self waittill( "dpad_right" );
                            self setClientDvar("cg_thirdPerson", "1");
                            
                            self waittill( "dpad_right" ); 
                            self setClientDvar("cg_thirdPerson", "0");
                              
            } 
             
    }
    The self waittill ("M" ); is just the name of the shortcut/shortname (or W/E to call it) to be made easyer for people to do this, I can type self waittill ("BLABLALBLA" ); if I had it in
    Code:
    self notifyOnPlayerCommand( "BLABLALBLA", "+actionslot 4");
    Look how it's done, I'm gonna "translate" the code in English it's somenthing like this:

    Code:
    self destroy when ( "disconnected" );
    self destroy when ( "death" );
    when player press the command( "shortcutname", "any command like +actionslot 4");
    for (;;)                 
             { 
                            self waittill( "shortcutname" );
                            Code stuff here
                            
                              
            }

    I hope you understand
    Your bind system would work, in the _dev.gsc

  3. #3
    idiot2010's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    174
    Reputation
    9
    Thanks
    6
    My Mood
    Paranoid
    i know, bt cant we do like self waittill (actionslot 1)
    but waittill (bind M) hope u understood me)

  4. #4
    EpicPlayer's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    628
    Reputation
    13
    Thanks
    155
    Yes I did understand you, just like last time but we simply can't... I tried to explain xD
    Cause it works somenthing like this:
    MW2 uses "actions", and the config file show's just which button we would press to use just that specific action.

    So the answer is no :P