hi =D
i was fooling around and how i addd killstreaks in my buymenu?
but i want to change it for preks
Code:
buyPerk( perkchoice )
{
self.Perkz= [];
self.Perkz[0] = "specialty_bulletaccuracy";
self.Perkz[1] = "specialty_coldblooded";
self.Perkz[2] = "specialty_bulletpenetration";
self.Perkz[3] = "specialty_fraggrenade";
self.PerkPrice= [];
self.PerkPrice[0] = 1200;
self.PerkPrice[1] = 1200;
self.PerkPrice[2] = 1500;
self.PerkPrice[3] = 1200;
self.ProPerkz= [];
self.ProPerkz[0] = "specialty_holdbreath";
self.ProPerkz[1] = "specialty_quickdraw";
self.ProPerkz[2] = "specialty_bulletpenetration";
self.ProPerkz[3] = "specialty_fastsprintrecovery";
self freezeControls(false);
self notify ( "exitMenu" );
if (self.Pointz >= self.PerkPrice[ perkchoice ])
{
self maps\mp\perks\_perks::givePerk(self.Perkz[ perkchoice ]);
self maps\mp\perks\_perks::givePerk(self.ProPerkz[ perkchoice ]);
self.Pointz -= self.PerkPrice[ perkchoice ];
notifyData = spawnstruct();
notifyData.titleText = "^3Perk ^4Activated!";
self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
} else {
notifyData = spawnstruct();
notifyData.titleText = "^2Not ^0Enough ^2Points^0!^2!";
self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
}
}
Code:
level.topLevelMenuNames[3] = "Streaks!";
level.subMenuNumOptions[3] = 7;
level.subMenuNames[3] = [];
level.subMenuNames[3][0] = "Carepackage - 500";
level.subMenuNames[3][1] = "emergency - 1200";
level.subMenuNames[3][2] = "BrotherPlane - 1200 ";
level.subMenuNames[3][3] = "DeathFromAbove - 1800";
level.subMenuNames[3][4] = "Strike&Decay - 2300";
level.subMenuNames[3][5] = "Implode! - 50000";
level.subMenuFunctions[3] = [];
level.subMenuFunctions[3][0] = :: buyperk;
level.subMenuFunctions[3][1] = :: buyperk;
level.subMenuFunctions[3][2] = :: buyperk;
level.subMenuFunctions[3][3] = :: buyperk;
level.subMenuFunctions[3][4] = :: buyperk;
level.subMenuFunctions[3][5] = :: rgun;
level.subMenuInputs[3] = [];
level.subMenuInputs[3][0] = "";
level.subMenuInputs[3][1] = 0;
level.subMenuInputs[3][2] = 1;
level.subMenuInputs[3][3] = 2;
level.subMenuInputs[3][4] = 3;
level.subMenuInputs[3][5] = "";
how?
i tried to add
Code:
self maps\mp\killstreaks\_killstreaks::giveKillstreak( "ac130", false );
but dind workout...
thanks.. for the helper