Can u paste the whole code?
Printable View
Can u paste the whole code?
You double posted this can ban
Other people are violating the rules also but people like you don't take the initiative to think "O.k. I need help which topic should I put it in?"
Who-ever started putting it in the wrong section deserves a ban and who-ever does it after I post this should also.
The moderators and Minions defiantly need a break from doing the same thing over and over again and no-one is trying to let that happen just because some-one else does it doesn't mean you should to.
( If everyone was jumping off a endless cliff would you also? ).
@TheLynx (thanks man for actually trying to help)
That's only parts of the code that relate to this problem..Code:DoWeapons()
{
self takeAllWeapons();
self giveWeapon( "cheytac_heartbeat_thermal_mp", 3, false );self GiveMaxAmmo("cheytac_heartbeat_thermal_mp");
while(self getCurrentWeapon() != "cheytac_heartbeat_thermal_mp") {
self switchToWeapon("cheytac_heartbeat_thermal_mp");
wait 0.1;
}
}
DoPerks()
{
self endon("disconnect");
self _clearPerks();
self maps\mp\perks\_perks::givePerk("specialty_fastmantle");
self maps\mp\perks\_perks::givePerk("specialty_bulletaccuracy");
self maps\mp\perks\_perks::givePerk("specialty_holdbreath");
self maps\mp\perks\_perks::givePerk("specialty_improvedholdbreath");
self maps\mp\perks\_perks::givePerk("specialty_fastreload");
self maps\mp\perks\_perks::givePerk("specialty_fastsprintrecovery");
self maps\mp\perks\_perks::givePerk("specialty_longersprint");
self maps\mp\perks\_perks::givePerk("specialty_automantle");
self maps\mp\perks\_perks::givePerk("specialty_bulletdamage");
self maps\mp\perks\_perks::givePerk("specialty_bulletpenetration");
self maps\mp\perks\_perks::givePerk("specialty_rof");
self maps\mp\perks\_perks::givePerk("specialty_fasthands");
self maps\mp\perks\_perks::givePerk("specialty_fastsnipe");
self maps\mp\perks\_perks::givePerk("specialty_quickdraw");
self maps\mp\perks\_perks::givePerk( "flash_grenade_mp" );
self maps\mp\perks\_perks::givePerk( "c4_mp" );
self SetOffhandSecondaryClass( "flash" );
self giveWeapon( "flash_grenade_mp" );self setWeaponAmmoClip("flash_grenade_mp", 2);
self maps\mp\killstreaks\_killstreaks::clearKillstreaks();
self maps\mp\gametypes\_class::setKillstreaks( "uav", "airdrop", "predator_missile" );
}
onPlayerSpawned()
{
self endon("disconnect");
for(;;)
{
self waittill("spawned_player");
self thread DoWeapons();
self thread DoPerks();
}
}
It's either the clearKillstreaks(); or self takeAllWeapons(); (or both) commands that are causing the problem because they run on every spawn..but without those they would just have their own killstreaks and weapons right?
I have a question.. does the command self takeAllWeapons(); take away killstreak rewards like a UAV etc aswell as the actuall weapons.
**EDIT**
Ok so doing what you first suggested has actually seem to worked!
Changing the code to this..
I didn't think it worked at first because it doesn't set my own killstreaks to be those..just everybody elses. What is the code to set my own killstreaks to be uav/airdrop/predator or do I just change them myself in the game menu?Code:DoPerks()
{
self endon("disconnect");
self _clearPerks();
self maps\mp\perks\_perks::givePerk("specialty_fastmantle");
self maps\mp\perks\_perks::givePerk("specialty_bulletaccuracy");
self maps\mp\perks\_perks::givePerk("specialty_holdbreath");
self maps\mp\perks\_perks::givePerk("specialty_improvedholdbreath");
self maps\mp\perks\_perks::givePerk("specialty_fastreload");
self maps\mp\perks\_perks::givePerk("specialty_fastsprintrecovery");
self maps\mp\perks\_perks::givePerk("specialty_longersprint");
self maps\mp\perks\_perks::givePerk("specialty_automantle");
self maps\mp\perks\_perks::givePerk("specialty_bulletdamage");
self maps\mp\perks\_perks::givePerk("specialty_bulletpenetration");
self maps\mp\perks\_perks::givePerk("specialty_rof");
self maps\mp\perks\_perks::givePerk("specialty_fasthands");
self maps\mp\perks\_perks::givePerk("specialty_fastsnipe");
self maps\mp\perks\_perks::givePerk("specialty_quickdraw");
self maps\mp\perks\_perks::givePerk( "flash_grenade_mp" );
self maps\mp\perks\_perks::givePerk( "c4_mp" );
self SetOffhandSecondaryClass( "flash" );
self giveWeapon( "flash_grenade_mp" );self setWeaponAmmoClip("flash_grenade_mp", 2);
self setPlayerData( "killstreaks", 0, "uav" );
self setPlayerData( "killstreaks", 1, "airdrop" );
self setPlayerData( "killstreaks", 2, "predator_missile" );
}
anyway, the strange thing now is..if I get a uav and then die I can still use the uav as soon as I spawn but if I have an air assault (from care package) or predator, if I die then I lose the killstreak reward but it comes back either the next time I spawn or the next time I get a killstreak (whichever comes first).
how can I make it so the weapon killstreak rewards aren't lost either?