Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Akira303's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    0

    How to prevent people losing killstreak rewards on death?

    Hi

    Im using this to take everyones weapons and give them intervention..

    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;
    		}
    }
    and this to set my own perks & killstreak

    Code:
    DoPerks()
    {
                    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" );
    
    }
    But the problem is..when the player dies before they use their killstreak reward..they lose it. The next time they spawn you hear the voice "UAV ready for deployment" or whatever..but pressing 4 does nothing.

    I think it's because Im using

    self takeAllWeapons(); &

    self maps\mp\killstreaks\_killstreaks::clearKillstreaks ();

    both these threads run from onPlayerSpawned()

    anyone know how to prevent them losing the killstreak rewards on death?
    Last edited by Akira303; 08-16-2010 at 01:35 AM.

  2. #2
    rathynia's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Modern Warfare 2 Section.
    Posts
    457
    Reputation
    126
    Thanks
    538
    My Mood
    Aggressive
    Quote Originally Posted by Akira303 View Post
    Hi

    Im using this to take everyones weapons and give them intervention..

    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;
    		}
    }
    and this to set my own perks & killstreak

    Code:
    DoPerks()
    {
                    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" );
    
    }
    But the problem is..when the player dies before they use their killstreak reward..they lose it. The next time they spawn you hear the voice "UAV ready for deployment" or whatever..but pressing 4 does nothing.

    I think it's because Im using

    self takeAllWeapons(); &

    self maps\mp\killstreaks\_killstreaks::clearKillstreaks ();

    both these threads run from onPlayerSpawned()

    anyone know how to prevent them losing the killstreak rewards on death?
    The next time you get a kill-streak after losing it you get it back + the one that you earned
    Nothing Is "Impossible" For The Word Itself Says "I'm Possible".
    If you get a thank from me you better act like it's a reward, because I don't give them out easily.

    Computer Specs:
    Processor - AMD Athlon(tm) II X4 640 Processor 3.0 GHz (Not OverClocked)
    RAM - 8.0 GB
    OS - Microsoft Windows 7 Ultimate Edition 64-bit
    Video Card - GeForce GTX 550 Ti
    Video RAM 4.0 GB
    Pixel Shader version 5.0
    Vertex Shader version 5.0
    Sound Card - NVIDIA High Definition Audio
    Disk space - 1,640 GB

  3. The Following User Says Thank You to rathynia For This Useful Post:

    Akira303 (08-16-2010)

  4. #3
    Akira303's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    0
    ok thanks but..why? and can't I code this in such a way so that doesn't happen?

    I get really tired of having this conversation..

    them "why can't I use my predator!!"

    me "did you die?"

    them "yah"

    me "then you lost it, killstreak rewards are lost on death"

    them "OMFG!! that's gay! noob host you suck"

  5. #4
    TheLynx's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Sverige
    Posts
    366
    Reputation
    10
    Thanks
    42
    My Mood
    Happy
    K, this is how to fix it
    First delete the
    self maps\mp\killstreaks\_killstreaks::clearKillstreaks ();
    and
    self maps\mp\gametypes\_class::setKillstreaks( "uav", "airdrop", "predator_missile" );

    then type in

    self setPlayerData( "killstreaks", 0, "uav" );
    self setPlayerData( "killstreaks", 1, "airdrop" );
    self setPlayerData( "killstreaks", 2, "predator_missile" );

    Haven't tried this but it should work

  6. The Following User Says Thank You to TheLynx For This Useful Post:

    Akira303 (08-16-2010)

  7. #5
    Neekokeen's Avatar
    Join Date
    Jun 2010
    Gender
    female
    Posts
    387
    Reputation
    14
    Thanks
    361
    My Mood
    Breezy
    What he said ^

    Click on the banners to take a look at my mods.





  8. #6
    GrenadeLaunchers's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    88
    Reputation
    10
    Thanks
    10
    lol I get that alot too. But i've never taken initiative to fix it XD

  9. #7
    Akira303's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by TheLynx View Post
    K, this is how to fix it
    First delete the
    self maps\mp\killstreaks\_killstreaks::clearKillstreaks ();
    and
    self maps\mp\gametypes\_class::setKillstreaks( "uav", "airdrop", "predator_missile" );

    then type in

    self setPlayerData( "killstreaks", 0, "uav" );
    self setPlayerData( "killstreaks", 1, "airdrop" );
    self setPlayerData( "killstreaks", 2, "predator_missile" );

    Haven't tried this but it should work
    thanks..but it doesnt work, is that a valid PC code? or xbox? Im on PC..

    with that code..for some reason I didnt get uav at all and then when i got my care package I let someone kill me, but on spawn I had lost the care package...I then killed another 4 people and got care package (EMP) but I also had the precision airstrike to use from the previous care package..weird.

    does the code self takeAllWeapons(); also take killstreak rewards?

    maybe I could delete the code takeallweapons...and instead give them a revolver or something with no ammo as the secondary weapon?

  10. #8
    TheLynx's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Sverige
    Posts
    366
    Reputation
    10
    Thanks
    42
    My Mood
    Happy
    its for PC.
    and put the code in onPlayerjoinedteam()
    maybe it will work

  11. #9
    B4M's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Real World
    Posts
    6,940
    Reputation
    478
    Thanks
    1,752
    My Mood
    Bored
    /moved to help
    [center]

    Back in '10



    Got a question?PM/VM me!
    I read them all.
    Also contact me via MSN.
    vlad@mpgh.net

    Minion since:07-04-2010
    Mod since:08-31-2010
    Till : 05.07.2011

  12. #10
    Akira303's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by B4M View Post
    /moved to help

    umm why have you moved this to help?

    Im asking for help with GSC Modding.. isnt the "
    Call of Duty MW2 Server/GSC Modding" section for asking for help with mods?

  13. #11
    B4M's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Real World
    Posts
    6,940
    Reputation
    478
    Thanks
    1,752
    My Mood
    Bored
    Quote Originally Posted by Akira303 View Post
    umm why have you moved this to help?

    Im asking for help with GSC Modding.. isnt the "
    Call of Duty MW2 Server/GSC Modding" section for asking for help with mods?
    Help it's help, doesn't matter if it involves textures, GSC modding..etc.
    [center]

    Back in '10



    Got a question?PM/VM me!
    I read them all.
    Also contact me via MSN.
    vlad@mpgh.net

    Minion since:07-04-2010
    Mod since:08-31-2010
    Till : 05.07.2011

  14. #12
    Akira303's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    0
    there's alot of other threads with people asking for help in "MW2 Server/GSC Modding" section..they haven't been moved?

  15. #13
    Akira303's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by TheLynx View Post
    its for PC.
    and put the code in onPlayerjoinedteam()
    maybe it will work
    it doesn't work..Ive tried putting the code in it's own thread and calling it from onPlayerjoinedteam, tried putting directly in onPlayerjoined team..but nothing

    anyone got any other ideas?

  16. #14
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,057
    Reputation
    1007
    Thanks
    2,013
    Quote Originally Posted by Akira303 View Post
    it doesn't work..Ive tried putting the code in it's own thread and calling it from onPlayerjoinedteam, tried putting directly in onPlayerjoined team..but nothing

    anyone got any other ideas?
    / You call stuff on your onplayerspawned

    Ex Middleman

  17. #15
    Akira303's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    0
    tried that also..still doesnt work.

    does the command self takeAllWeapons(); also take killstreaks? because I have that in my DoWeapons() thread called from onPlayerSpawned..

Page 1 of 2 12 LastLast

Similar Threads

  1. how to prevent server connection lost thing
    By mgrung in forum Combat Arms Hacks & Cheats
    Replies: 12
    Last Post: 10-29-2008, 10:57 AM
  2. How do you people get such high leveled accounts?
    By xxBigBuns in forum Trade Accounts/Keys/Items
    Replies: 6
    Last Post: 10-23-2008, 06:41 PM
  3. How to get people into your Gameroom!!
    By iTzAlViN in forum Combat Arms Hacks & Cheats
    Replies: 40
    Last Post: 08-28-2008, 11:34 AM
  4. hOw tO pm peOple??
    By erandrew93 in forum WarRock - International Hacks
    Replies: 3
    Last Post: 08-22-2007, 09:20 PM
  5. TUTORIAL - How to prevent Warrock from crashing!
    By Darky in forum WarRock - International Hacks
    Replies: 25
    Last Post: 07-06-2007, 09:31 PM