Results 1 to 10 of 10
  1. #1
    mirc00's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    33
    Reputation
    10
    Thanks
    78

    Custom Killstreaks

    Hey,

    i would like to have custom killstreaks for my own mod, but i'm a bit confused about how it works. I found tutorials here on how to make "custom killstreaks", but they're all not what i'm looking for.

    Mainly, i want this:
    - notify on killstreak, "killstreak-icon" on bottom right
    - pressing action key will activate the killstreak
    - if you get a higher killstreak and you didn't activate the lower, if you press action key the highest will be activated and then you can activate the lower one
    - killstreaks remain after death

    So, as you can see i just want the system from the original killstreaks, but the killstreaks itself should be changed. If you get 3 kills in a row, you should get "Marathon Pro" perk, as an example. Is there a way to edit the original killstreaks, so i don't need to rewrite the whole killstreak system? Because i don't know how to save killstreaks even after you died..

    greets

  2. #2
    Heartview's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    KY Cygni
    Posts
    9,202
    Reputation
    717
    Thanks
    2,890
    Moved to GSC Help I guess.
    Texture Mods


    Obedear, the sky is low

  3. #3
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,113
    My Mood
    Angelic
    So, tell me what you mean...

    Well, you want the KS message?
    I don't have the code here but....

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  4. #4
    mirc00's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    33
    Reputation
    10
    Thanks
    78
    Okay sorry, i try it again and simplier:

    How to edit the original killstreaks? Example: I don't want to get a UAV at 3 kills, instead i want to get the Marathon Pro perk.

    *I know how to give a player a perk or a weapon, but i do not know how to edit the killstreaks.

  5. #5
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,113
    My Mood
    Angelic
    Quote Originally Posted by mirc00 View Post
    Okay sorry, i try it again and simplier:

    How to edit the original killstreaks? Example: I don't want to get a UAV at 3 kills, instead i want to get the Marathon Pro perk.

    *I know how to give a player a perk or a weapon, but i do not know how to edit the killstreaks.
    And you said you looket on the tutorials.

    Shocked...

    I made a Tutorial on how do that....
    And all you need it just to add what the KS is doing + text and sound.
    And disable the original ones......

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  6. #6
    mirc00's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    33
    Reputation
    10
    Thanks
    78
    I did looked at your tutorial ->
    https://www.mpgh.net/forum/308-call-d...llstreaks.html

    But with your source code i do have problems:
    If you get, let me say 1 kill, the thread KS1(); will start and listen if you press an actionkey to activate your killstreak. If you now get another killstreak, let me say 3 kills, KS3(); will also listen if you press an actionkey. If you now press the key to activate the killstreak, it will activate KS1(); AND KS3();

    Normally, KS3(); will be activated first and then you can activate KS1(); if you press the actionkey again..
    Last edited by mirc00; 08-30-2011 at 05:01 AM.

  7. #7
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,113
    My Mood
    Angelic
    Quote Originally Posted by mirc00 View Post
    I did looked at your tutorial ->
    https://www.mpgh.net/forum/308-call-d...llstreaks.html

    But with your source code i do have problems:
    If you get, let me say 1 kill, the thread KS1(); will start and listen if you press an actionkey to activate your killstreak. If you now get another killstreak, let me say 3 kills, KS3(); will also listen if you press an actionkey. If you now press the key to activate the killstreak, it will activate KS1(); AND KS3();

    Normally, KS3(); will be activated first and then you can activate KS1(); if you press the actionkey again..
    You are new to GSC.... That I am almost 100% sure of.....

    Take a time to look; https://www.mpgh.net/forum/308-call-d...ing-codes.html

    There you find the notify on press....

    self notifyOnPlayerCommand( "KS3", "+smoke" );
    self waittill("KS3");
    //Code that will be done here...

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  8. #8
    mirc00's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    33
    Reputation
    10
    Thanks
    78
    I already know this. I do have two seperate killstreak threads.

    custom_ks1() - 1 kill
    custom_ks3() - 3 kills

    Both of them do have a notifyOnPlayerCommand in it. Both with the same key - "+actionslot 4". If you're now alive and kill 1 guy, the custom_ks1() thread will start and it will wait for "+actionslot 4". If you kill another 2 guys, the custom_ks3() thread will also start and ALSO wait for "+actionslot 4". If you know press "+actionslot 4" it will go on in both threads. But it should only activate custom_ks3(), because it's a higher killstreak.

    Also: Where do i find the code to get the original killstreak icon + text in the bottom right corner?

  9. #9
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,113
    My Mood
    Angelic
    Quote Originally Posted by mirc00 View Post
    I already know this. I do have two seperate killstreak threads.

    custom_ks1() - 1 kill
    custom_ks3() - 3 kills

    Both of them do have a notifyOnPlayerCommand in it. Both with the same key - "+actionslot 4". If you're now alive and kill 1 guy, the custom_ks1() thread will start and it will wait for "+actionslot 4". If you kill another 2 guys, the custom_ks3() thread will also start and ALSO wait for "+actionslot 4". If you know press "+actionslot 4" it will go on in both threads. But it should only activate custom_ks3(), because it's a higher killstreak.

    Also: Where do i find the code to get the original killstreak icon + text in the bottom right corner?
    Man what you mean?!

    You make no seance.
    Want to press, don't want to press....
    MAN! Know what you want.....
    If you don't know how a "thread" works....
    Then you should really take a GSC Live Support Class.....

    If you want a KS just to do, you just make the thread and then make it do it....
    There is no need to press to do the thread.


    Man, say what you want!
    No need for a half page with text.

    Like:

    I want to make own Killstreaks, they are going to be automatically activated when I get them.

    Or like that...

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  10. #10
    mirc00's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    33
    Reputation
    10
    Thanks
    78
    Hey,

    okay, last try. this is my code: #include maps\mp\gametypes\_hud_util; #include maps\mp\_utility; #include comm - Pastebin.com

    It's from your tutorial. "killstreak_icon()" is just for testing purpose, i know it doesn't do anything yet. The main problem i have is, if you get 1 kill and don't activate the killstreak, then you get another two kills and press "4" you only get the USP (latest killstreak). The other one's gone. What's the easiest way to save all killstreaks, so you can activate them one by one even after death.

    -solved-
    Last edited by mirc00; 08-30-2011 at 08:11 AM.

Similar Threads

  1. [Help Request] Custom Killstreaks
    By isokasi in forum Call of Duty Modern Warfare 2 Help
    Replies: 1
    Last Post: 05-01-2011, 10:24 AM
  2. [Tutorial] How To Make Custom Killstreaks
    By Jorndel in forum Call of Duty Modern Warfare 2 Tutorials
    Replies: 2
    Last Post: 04-29-2011, 01:21 AM
  3. [QUESTION] Custom killstreaks, need fast!
    By Imthebosss in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 10
    Last Post: 10-22-2010, 07:57 AM
  4. [Release] Custom Killstreaks
    By AZUMIKKEL in forum Call of Duty Modern Warfare 2 Server / GSC Modding
    Replies: 36
    Last Post: 09-09-2010, 07:39 AM
  5. [Preview] Custom Killstreaks
    By AZUMIKKEL in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 56
    Last Post: 08-31-2010, 11:04 PM