Moved to GSC Help I guess.
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
Moved to GSC Help I guess.
So, tell me what you mean...
Well, you want the KS message?
I don't have the code here but....
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.
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.
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...
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...
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.