Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Perks snippet
#1
Dunno if it was already posted, but maybe it will help someone.
Source: mpcforum

floor66 @mpcforum Wrote:The way you might be doing this in now probably looks something like:
C Code
  1. self maps\mp\perks\_perks::givePerk( "specialty_hardline" ); //or something different than hardline.

I offer my alternative, all sorted with their in-game names:
C Code
  1. givePerk( perk, pro )
  2. {
  3. _perk = "";
  4. _proPerk = "";
  5. switch( perk )
  6. {
  7. case "marathon": _perk = "marathon"; _proPerk = "fastmantle"; break;
  8. case "sleight of hand": _perk = "fastreload"; _proPerk = "quickdraw"; break;
  9. case "scavenger": _perk = "scavenger"; _proPerk = "extraammo"; break;
  10. case "bling": _perk = "bling"; _proPerk = "secondarybling"; break;
  11. case "one man army": _perk = "onemanarmy"; _proPerk = "omaquickchange"; break;
  12. case "stopping power": _perk = "bulletdamage"; _proPerk = "armorpiercing"; break;
  13. case "lightweight": _perk = "lightweight"; _proPerk = "fastsprintrecovery"; break;
  14. case "hardline": _perk = "hardline"; _proPerk = "spygame"; break;
  15. case "cold-blooded": _perk = "coldblooded"; _proPerk = "gpsjammer"; break;
  16. case "danger close": _perk = "explosivedamage"; _proPerk = "armorpiercing"; break;
  17. case "commando": _perk = "extendedmelee"; _proPerk = "falldamage"; break;
  18. case "steady aim": _perk = "bulletaccuracy"; _proPerk = "steelnerves"; break;
  19. case "scrambler": _perk = "localjammer"; _proPerk = "delaymine"; break;
  20. case "ninja": _perk = "heartbreaker"; _proPerk = "quieter"; break;
  21. case "sitrep": _perk = "detectexplosive"; _proPerk = "selectivehearing"; break;
  22. case "last stand": _perk = "pistoldeath"; _proPerk = "laststandoffhand"; break;
  23. }
  24.  
  25. self maps\mp\perks\_perks::givePerk( "specialty_"+ _perk );
  26. if(pro)
  27. self maps\mp\perks\_perks::givePerk( "specialty_"+ _proPerk );
  28. }

HOW TO USE IT:
C Code
  1. givePerk( "marathon", true ); //gives marathon pro
  2. givePerk( "stopping power", false ); //gives stopping power, -NOT- PRO.
[Image: r212360a129ce9b84444093b6cd2699013a1fbn155.png]
Reply

#2
was a kinda useful for me thanks Big Grin
Reply

#3
Nice, thank you!
My Reputation is low, help me with +1 rep if i helped you! Big Grin
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Perks do not work (( x1412 6 4,395 04-06-2013, 18:09
Last Post: x1412
  All Level and Perks Pro Unlocker browneggs 1 2,709 09-24-2012, 09:38
Last Post: d0h!
  [Release] Obtain weapons and perks ddaavvee 10 8,057 09-02-2012, 21:04
Last Post: wise
  Perks Killer_xD 6 3,958 08-13-2012, 15:26
Last Post: Killer_xD
  [Tutorial] Some perks setup Yamato 9 5,515 07-09-2012, 08:56
Last Post: RaZ
Smile [News] Black ops 2 *unconfimed* weapons and perks, attachments, equipment etc Sapphire Shores 1 2,905 04-23-2012, 15:09
Last Post: Yamato
  Promod Plugin + !Perks/Killstreaks/Killcam On-Off slash2909 2 3,215 03-20-2012, 22:18
Last Post: kris
  Edit Perks Lemon 6 3,713 03-19-2012, 20:12
Last Post: Rendflex
  Disabled some weapons, attachments and perks in mod vlukac 0 1,644 01-26-2012, 20:28
Last Post: vlukac
  [Release] Call of Duty Modern Warfare 3 - All Perks and Nades d0h! 1 3,508 11-15-2011, 12:25
Last Post: Sneazy

Forum Jump:


Users browsing this thread:
1 Guest(s)

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