ItsMods

Full Version: Killstreak needed for stock killstreaks
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey,
i am posting this here since i havent found something similar here yet.
Its not really about customizing the killstreaks, just about changing the amount of consecutive kills needed for the "normal" killstreaks rewards. Smile
E.g. you can change the nuke, so that it needs a killstreak of 30.
It works for every killstreak reward. You can set it to any value you want to. (You shouldn't set a streak lower than 2 because otherwise the hardline perk would be buggy. )

*Lets start:

Get a clean _class.gsc and find the function setKillstreaks( streak1, streak2, streak3 )

You will find if conditions if ( streak1 != "none" ) , if ( streak2 != "none" ) and if ( streak3 != "none" ) .

The part of code looks like this:

You may change the streakVal in : killStreaks[streakVal + modifier] = streak1; to any number >= 2.
The number sets the amount of consecutive kills (killstreak) needed to get the first killstreak reward.
The variable modifier makes sure that you will get killstreak reward one kill ealier, if you have hardline (pro) .
streak2 and streak3 work the same way.

To be able to costumize the needed killstreak for every single killstreak reward we will add switch statements with all the killstreak names like this:


Now you ready to costumize every killstreak.
(There are some unneeded cases in it (e.g. u cant have uav as your streak3) but i am too lazy to delete them, so you can figure out yourself or just leave them in.)
In the code above all the killstreak reward are given at the stock killstreak count (hopefully), besides emp and nuke.

*You can even set more killstreaks if you want to.
E.g.
Add:

Code:
killStreaks[10+modifier] = "ac130";

below the last closed bracket of if ( streak3 != "none" ) {}

every player will get an ac130 at a killstreak of 10 (9 when he has hardline).
Unregarded which killstreaks 1-3 he has chosen.


*Video:

Hey banz Smile
Oh hai iAegle! Wink
Good information, Smile
I don't care about MW2 actually, but I love all kinds of tuts.
+rep bro