04-03-2011, 20:56
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.