Results 1 to 9 of 9

Thread: Automatically set killstreak in order in a menu

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    I already got the menu with the right dvars.
    Code:
    					self setclientcvar("killstreak_1", "value");
    					self setclientcvar("killstreak_2", "value");
    					self setclientcvar("killstreak_3", "value");
    killstreak_1 is for the first box and must have value 1 if killstreak 1 is chosen , value 2 if killstreak 2 is chosen. Killstreak_2 is for box 2 etc. Same for the other boxes.
    the values of the killstreaks are killstreak1, killstreak2, etc

  2. #2
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by Ni3ls View Post
    I already got the menu with the right dvars.
    Code:
    					self setclientcvar("killstreak_1", "value");
    					self setclientcvar("killstreak_2", "value");
    					self setclientcvar("killstreak_3", "value");
    killstreak_1 is for the first box and must have value 1 if killstreak 1 is chosen , value 2 if killstreak 2 is chosen. Killstreak_2 is for box 2 etc. Same for the other boxes.
    the values of the killstreaks are killstreak1, killstreak2, etc
    Yeah, we get that bit, but like Izno says, it is unclear exactly what you want. You say the player selects the killstreaks, then you say they automatically set themselves when the player reaches the right value. So, you need to clarify what you are trying to do.

    I did all this for a COD4 mod where I replicated Black Ops 1 killstreak selection. I had a ton of menu itemdef that represented the selections the player made. Then, when they were fighting and got the right amount of kills, the killstreak that was selected for that value became live and they could call it in. You need to clarify if this is what you are trying to achieve.

Posting Permissions

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