Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tutorial How to clear or add killstreaks.
#1
How to clear killstreaks

1.Ok get in your _rank.gsc

2.Put down this code (rename it or whatever..)

Code:
doClearKillstreaks()
{
    self endon("disconnect");
    {
        self.killstreak[0] = "none";
        self.killstreak[1] = "none";
        self.killstreak[2] = "none";
    }
}

3.Now to get that code working put there your doClearKillstreaks :

Code:
onPlayerSpawned()
{
    self endon("disconnect");

    for(;;)
    {
        self waittill("spawned_player");
        self thread doClearKillstreaks();
        
        if(!isdefined(self.hud_rankscroreupdate))
        {
            self.hud_rankscroreupdate = NewScoreHudElem(self);
            self.hud_rankscroreupdate.horzAlign = "center";
            self.hud_rankscroreupdate.vertAlign = "middle";
            self.hud_rankscroreupdate.alignX = "center";
            self.hud_rankscroreupdate.alignY = "middle";
             self.hud_rankscroreupdate.x = 0;
            if( self IsSplitscreen() )
                self.hud_rankscroreupdate.y = -15;
            else
                self.hud_rankscroreupdate.y = -60;
            self.hud_rankscroreupdate.font = "default";
            self.hud_rankscroreupdate.fontscale = 2.0;
            self.hud_rankscroreupdate.archived = false;
            self.hud_rankscroreupdate.color = (0.5,0.5,0.5);
            self.hud_rankscroreupdate.alpha = 0;
            self.hud_rankscroreupdate maps\mp\gametypes\_hud::fontPulseInit();
            self.hud_rankscroreupdate.overrridewhenindemo = true;
        }
    }
}

4.Now you get in game and there is no killstreaks.

How to add killstreaks

1.Like the clear killstreaks but you need to put this :

Code:
doKillstreaks()
{
    self endon("disconnect");
    {
        self.killstreak[0] = "killstreak_rcbomb";
        self.killstreak[1] = "killstreak_helicopter_comlink";
        self.killstreak[2] = "killstreak_dogs";
    }
}

2.Now when we spawn when we kill 3 in a row we will get rcbomb then attackhelicopter and dogs

3.Again put there doKillstreaks()

Code:
onPlayerSpawned()
{
    self endon("disconnect");

    for(;;)
    {
        self waittill("spawned_player");
        self thread doKillstreaks();
        
        if(!isdefined(self.hud_rankscroreupdate))
        {
            self.hud_rankscroreupdate = NewScoreHudElem(self);
            self.hud_rankscroreupdate.horzAlign = "center";
            self.hud_rankscroreupdate.vertAlign = "middle";
            self.hud_rankscroreupdate.alignX = "center";
            self.hud_rankscroreupdate.alignY = "middle";
             self.hud_rankscroreupdate.x = 0;
            if( self IsSplitscreen() )
                self.hud_rankscroreupdate.y = -15;
            else
                self.hud_rankscroreupdate.y = -60;
            self.hud_rankscroreupdate.font = "default";
            self.hud_rankscroreupdate.fontscale = 2.0;
            self.hud_rankscroreupdate.archived = false;
            self.hud_rankscroreupdate.color = (0.5,0.5,0.5);
            self.hud_rankscroreupdate.alpha = 0;
            self.hud_rankscroreupdate maps\mp\gametypes\_hud::fontPulseInit();
            self.hud_rankscroreupdate.overrridewhenindemo = true;
        }
    }
}


Killstreaks :


Code:
3 Kills  Spy Plane [killstreak_spyplane]
3 Kills  RC-XD (RC bomb) [killstreak_rcbomb]
4 Kills  Counter Spy Plane [killstreak_counteruav]
4 Kills  SAM Turret [killstreak_tow_turret_drop]
5 Kills  Care Package [killstreak_supply_drop]
5 Kills  Napalm Strike [killstreak_napalm]
6 Kills  Sentry Gun [killstreak_auto_turret_drop]
6 Kills  Mortar Team [killstreak_mortar]
7 Kills  Attack Helicopter [killstreak_helicopter_comlink]
7 Kills  Valkyrie Rockets [killstreak_m220_tow_drop]
8 Kills  Blackbird [killstreak_spyplane_direction]
8 Kills  Rolling Thunder [killstreak_airstrike]
9 Kills  Chopper Gunner [killstreak_helicopter_gunner]
11 Kills  Attack Dogs [killstreak_dogs]
11 Kills  Gunship [killstreak_helicopter_player_firstperson]


Simple tutorial.

Blah.

Next one.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Big Grin Killstreaks HUD list Puffiamo 9 10,010 06-18-2013, 18:42
Last Post: RaZ
  [Release] Call of Duty Modern Warfare 3 - Airdrops & Killstreaks d0h! 8 11,840 04-03-2013, 06:54
Last Post: USCR
  [Release] Predator Killstreaks Puffiamo 13 14,162 10-28-2012, 15:51
Last Post: Arteq
  Moab and killstreaks Jabbavacca 4 4,595 10-27-2012, 23:40
Last Post: korsika
  killstreaks mod bug on S&Deee raminr63 4 3,979 04-12-2012, 06:23
Last Post: Yamato
  Promod Plugin + !Perks/Killstreaks/Killcam On-Off slash2909 2 3,241 03-20-2012, 22:18
Last Post: kris
  MW2 Killstreaks source codes Metro-Police#45 7 14,044 01-23-2012, 02:25
Last Post: ScHmIdTy56789
Brick [Release] Killstreak needed for stock killstreaks banz 4 3,650 01-21-2012, 19:27
Last Post: Arteq
  Clear Killstreak p2tk 7 3,773 10-16-2011, 15:08
Last Post: p2tk
  [Solved]give killstreaks ddaavvee 4 2,968 09-17-2011, 08:54
Last Post: ddaavvee

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.