Hello,
Im making [Activision] Call of Duty : Modern Warfare Mod based on the original game. Everything is gonna be like in the original game. I've already made Levels System (55 Levels), XP System (max 120280, the real XP numbers are used just like in the original game), Classes System (Assault, Spec Ops, Heavy Gunner, Demolitions and Sniper) and Simple HUD that is showing their stats. Now, im pretty limited with Ideas how i could do perks system. Im not sure how i can defire like PlayerPerks[id] = PERK1_CLAYMORE, and somewhere within the script it will check does player have PERK1_CLAYMORE, and if yes, it will give his claymore object. I dont know how should i even start.
I've think of making something like this:
If player choose Class Assault, it will give him Stopping Power perk, so under Menu_Handle for Class Menu Selection, i would put:
PHP Code:
PlayerPerks[id] = PERK2_STOPPINGPOWER
And i would simple check does player have PERK2_STOPPINGPOWER under spawn public.
So it would look like this:
PHP Code:
if(PlayerPerks[id] == PERK2_STOPPINGPOWER )
{
//the rest of the code...for this it would ncreases weapon damage to 140%
}
Thats my idea, but it would like to hear yours.
Cheers,
Crysis.