01-21-2012, 17:34
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.
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:
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:
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.
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:
Spoiler (Click to View)
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:
Spoiler (Click to View)
(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: