Added xp rewards to killstreak streaks

This commit is contained in:
ineedbots 2021-04-27 14:39:40 -07:00
parent e0dfadbe48
commit 8bde752124
4 changed files with 26 additions and 16 deletions

View File

@ -599,7 +599,7 @@ set scr_currentRolloverKillstreaksOnlyIncrease "1"
set scr_killstreakHud "1" set scr_killstreakHud "1"
set scr_maxKillstreakRollover "1" set scr_maxKillstreakRollover "1"
set scr_killstreak_mod "0" set scr_killstreak_mod "0"
set scr_killstreak_print "1" set scr_killstreak_print "2"
set scr_specialist "1" set scr_specialist "1"
//set scr_specialist_killCount_ "4" //set scr_specialist_killCount_ "4"
set scr_specialist_perks1 "specialty_scavenger,specialty_fastreload,specialty_marathon" set scr_specialist_perks1 "specialty_scavenger,specialty_fastreload,specialty_marathon"

View File

@ -599,7 +599,7 @@ set scr_currentRolloverKillstreaksOnlyIncrease "1"
set scr_killstreakHud "1" set scr_killstreakHud "1"
set scr_maxKillstreakRollover "1" set scr_maxKillstreakRollover "1"
set scr_killstreak_mod "0" set scr_killstreak_mod "0"
set scr_killstreak_print "1" set scr_killstreak_print "2"
set scr_specialist "1" set scr_specialist "1"
//set scr_specialist_killCount_ "4" //set scr_specialist_killCount_ "4"
set scr_specialist_perks1 "specialty_scavenger,specialty_fastreload,specialty_marathon" set scr_specialist_perks1 "specialty_scavenger,specialty_fastreload,specialty_marathon"

View File

@ -598,7 +598,7 @@ set scr_currentRolloverKillstreaksOnlyIncrease "1"
set scr_killstreakHud "1" set scr_killstreakHud "1"
set scr_maxKillstreakRollover "1" set scr_maxKillstreakRollover "1"
set scr_killstreak_mod "0" set scr_killstreak_mod "0"
set scr_killstreak_print "1" set scr_killstreak_print "2"
set scr_specialist "1" set scr_specialist "1"
//set scr_specialist_killCount_ "4" //set scr_specialist_killCount_ "4"
set scr_specialist_perks1 "specialty_scavenger,specialty_fastreload,specialty_marathon" set scr_specialist_perks1 "specialty_scavenger,specialty_fastreload,specialty_marathon"

View File

@ -2,7 +2,7 @@
_killstreaks modded _killstreaks modded
Author: INeedGames Author: INeedGames
Date: 09/22/2020 Date: 09/22/2020
Adds killstreak rollover and killstreak HUD.origin Adds killstreak rollover and killstreak HUD
DVARS: DVARS:
- scr_killstreak_rollover <int> - scr_killstreak_rollover <int>
@ -24,8 +24,10 @@
1 - use Puffiamo's killstreak HUD 1 - use Puffiamo's killstreak HUD
2 - use NoFate's MW3 killstreak HUD 2 - use NoFate's MW3 killstreak HUD
- scr_killstreak_print <bool> - scr_killstreak_print <int>
false - (default) enables the CoD4 (10 Kill Streak!) messages 0 - (default) none
1 - enables the CoD4 (10 Kill Streak!) messages
2 - adds exp rewards for each 5 kills
- scr_specialist <bool> - scr_specialist <bool>
false - (default) enable specialist from mw3, a player must only have the nuke selected as their killstreak false - (default) enable specialist from mw3, a player must only have the nuke selected as their killstreak
@ -1424,8 +1426,8 @@ watchNotifyKSMessage()
for (curStreak = lastKs + 1; curStreak <= self.pers["cur_kill_streak"]; curStreak++) for (curStreak = lastKs + 1; curStreak <= self.pers["cur_kill_streak"]; curStreak++)
{ {
if (curStreak == 5) //if (curStreak == 5)
continue; // continue;
if (curStreak % 5 != 0) if (curStreak % 5 != 0)
continue; continue;
@ -1439,19 +1441,27 @@ watchNotifyKSMessage()
streakNotify( streakVal ) streakNotify( streakVal )
{ {
self endon("disconnect"); self endon( "disconnect" );
self notify("streakNotifyCoD4");
self endon("streakNotifyCoD4");
wait 0.1;
notifyData = spawnStruct(); notifyData = spawnStruct();
notifyData.titleText = streakVal + " Kill Streak!";
if (level.killstreakPrint > 1)
{
xpReward = streakVal * 100;
self thread maps\mp\gametypes\_rank::giveRankXP( "killstreak_bonus", xpReward );
notifyData.notifyText = "+" + xpReward;
}
wait .05;
notifyData.titleLabel = &"MP_KILLSTREAK_N";
notifyData.titleText = streakVal;
self maps\mp\gametypes\_hud_message::notifyMessage( notifyData ); self maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
iprintln( self.name + " has a killstreak of " + streakVal + "!" ); iprintln( &"RANK_KILL_STREAK_N", self, streakVal );
} }
underScorePopup(string, hudColor, glowAlpha) underScorePopup(string, hudColor, glowAlpha)