News:
(no news today)
Home
Forum
Login
Register
PatmanSan Unlimited
»
eXtreme+ Modding
»
COD4 Tutorials
»
Disabling perks
« previous
next »
Print
Pages: [
1
]
Author
Topic: Disabling perks (Read 2138 times)
Sammy
Rank: Private
Posts: 105
Disabling perks
«
on:
December 29, 2009, 05:19:39 pm »
Hello
After searching the X4 configs and scripts it doesnt look like there is a way to disable perks based on class, like X5 and OW does. Have I missed it? Or, if it is not present is there a relatively painless way to add it in?
Thx.
Logged
Lothegard
Rank: Private
Posts: 960
Re: Disabling perks
«
Reply #1 on:
December 30, 2009, 09:35:48 am »
look in the weaponcontrol.cfg
//******************************************************************************
// perks
//******************************************************************************
set scr_game_perks "1"
set perk_allow_specialty_parabolic "1"
set perk_allow_specialty_gpsjammer "1"
set perk_allow_specialty_holdbreath "1"
set perk_allow_specialty_quieter "1"
set perk_allow_specialty_longersprint "1"
set perk_allow_specialty_detectexplosive "1"
set perk_allow_specialty_explosivedamage "1"
set perk_allow_specialty_pistoldeath "1"
set perk_allow_specialty_grenadepulldeath "1"
set perk_allow_specialty_bulletdamage "1"
set perk_allow_specialty_bulletpenetration "1"
set perk_allow_specialty_bulletaccuracy "1"
set perk_allow_specialty_rof "1"
set perk_allow_specialty_fastreload "1"
set perk_allow_specialty_extraammo "1"
set perk_allow_specialty_armorvest "1"
set perk_allow_specialty_fraggrenade "1"
set perk_allow_specialty_specialgrenade "1"
set perk_allow_c4_mp "1"
set perk_allow_claymore_mp "1"
set perk_allow_rpg_mp "1"
set perk_armorVest "75"
set perk_bulletDamage "40"
set perk_explosiveDamage "25"
Logged
Sammy
Rank: Private
Posts: 105
Re: Disabling perks
«
Reply #2 on:
December 30, 2009, 03:08:49 pm »
Yes those are the global perk controls for all classes. However I'm looking for a way that will allow disabling for specific classes. Say for example disabling the claymore perk for assault but leaving it for heavy gunner. Both World at War - X5 and Open Warfare have the ability to do this and I am pretty sure I have narrowed down the code in OW that handles it. But it also looks to rely heavily on things in other parts of its code in other files and its not just a simple cut/paste/recompile. I was hoping that perhaps the ability could be added in without too much trouble into a preexisting script or spending too much time integrating/recoding.
Ex: set perk_assault_allow_specialty_parabolic "1" (from OW config+script)
Logged
Sammy
Rank: Private
Posts: 105
Re: Disabling perks
«
Reply #3 on:
December 31, 2009, 02:50:45 am »
Updated:
It needs more testing to make sure it all works correctly and that there are no bugs but I kludged the relevant OW code for class specific perks into the modwarfare file and it seems to do the trick.
Logged
Print
Pages: [
1
]
« previous
next »
PatmanSan Unlimited
»
eXtreme+ Modding
»
COD4 Tutorials
»
Disabling perks