Page 3 of 3 FirstFirst 123
Results 21 to 26 of 26

Thread: key on keyboard

  1. #21
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    If you're using an fs_game you could probably just bind the keys as they would reset to the original profile when restarting cod, although im not entirely sure of this
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  2. #22
    Private First Class
    Join Date
    Oct 2013
    Posts
    219
    Thanks
    56
    Thanked 105 Times in 66 Posts
    Quote Originally Posted by serthy View Post
    (copy the config unfortunately i forgot the command)
    I believe you mean
    PHP Code:
    player execClientCommand("writeconfig config.cfg");

    player execClientCommand("exec config.cfg"); 

  3. #23
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Quote Originally Posted by filthy_freak_ View Post
    I believe you mean
    PHP Code:
    player execClientCommand("writeconfig config.cfg");

    player execClientCommand("exec config.cfg"); 
    no .cfg in the exec
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  4. #24
    Corporal guiismiti's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    244
    Thanks
    121
    Thanked 42 Times in 31 Posts
    Yes that's exactly what I meant. I am using a fs_game, and, to save the player's original mouse sensitivity, I would just write a cfg and exec it after the player leaves the vehicle.
    But, since sensitivity won't affect the keyboard commands, I'll just need to use functions to change the player's angles - and, like serthy said, it will probably not be smooth and therefore not worth the time spent, since I still need to adapt some stuff to be done with the TDM vehicle + bot mod.

    I saw these functions in the para chute function:
    bangles = self.angles;
    self rotateTo( bangles, 0.5,0, 0.1);

    rotateTo looks like an original COD function, since I couldn't find it anywhere in the file. Also, self.angles looks like an original COD variable, since it also wasn't defined anywhere in the file.
    But unfortunately I don't think I'll have time for COD this week to test them.

  5. #25
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    both correct, original function and original vector
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  6. #26
    Corporal guiismiti's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    244
    Thanks
    121
    Thanked 42 Times in 31 Posts
    I'll still test it, but, even if I manage to rotate the player (update its position agreeing to the key being held) 5 times every second, it would still be like playing with 5 FPS.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •