|
Post by chyros on Jan 30, 2009 15:42:28 GMT -5
Hiya peeps, I'm a bit confused as to the coding structure of perks. It's mostly three things I'm interested in. Firstly, I'm wondering where exactly the information about perks is in the code. By this I mean the percentages that for example Double Tap modifies rate of fire with, the time Iron Lungs increases breath time with, where it makes 3x Frags give you two extra nades, etc. Secondly, I'd like to know how, coding-wise, it is possible to disable certain perks entirely (i.e. make them unavailable for choosing). I think I found a few revelant values in a sample config file ("set perk_allow_specialty_armorvest" and "set perk_allow_specialty_bulletdamage") and I've set these to "0" instead of "1", put thiese strings in a config file in a mod map but it doesn't seem to do anything. I've turned to modding boards and multiple mod leaders but haven't gotten any responses to this :/ . Thirdly, and I expect this to be related to the second one, how can you change the default loadouts of the standard classes? Again, I tried tinkering with these in a sample config file but again it didn't have any effect. Could anyone here help out a bit? And Den; you're my bro, bro .
|
|
Den
He's That Guy
Posts: 4,294,967,295
|
Post by Den on Jan 30, 2009 18:25:46 GMT -5
You can find several of the perks' code in _class.gsc. Others are strewn about, almost hidden.
There are ways to disable certain perks in mods, though to do that could be a real hassle depending on if you wanted to use ModWarfare or the isolated Ranking up.
To change the class loads, you need to get a hold of "mp/classtable.csv". For whatever reason, it isn't provided with the mod tools, still stuck away in the official Fastfiles.
There is also the possibility of conflicts by using weapons that may not be unlocked yet through Rank if you don't use ModWarfare. Though, using Modwarfare, the loadouts should default to what they are set to instead of falling back to the default each time).
I don't know much more, I've never attempted to mess with Perks.
|
|