Jump to content
Sign in to follow this  
Starsky

The beautiful config.cpp and it´s potential

Recommended Posts

About the config.cpp...

I have the complete listing of all the commands that can be used in the .cpp. (NO, I don´t mean the command reference guides for scripting, only for the cpp)

Now, is it possible to release a document of the default values for each command.

Example:

I´m making a new soldier. What´s his default armor value?

5? 10? 2397.6? Yeah, I know if you leave out this command in

the config.cpp the soldier gets the default value, but let´s say I wanna simulate kevlar or something...

Can´t be that hard to implement...

Armor values:

Soldier = 5

BlackOp = 7

Angelina = 84

Accuracy values:

Soldier = 1.0000

LAW = -200.00

and so on...

Share this post


Link to post
Share on other sites

All values default to 0 I believe. If you dont define a value, the value will be inherited from the upper class. (for example, if you do:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

class myGuy {

displayName="MyGuy";

armor=10;

}

<span id='postcolor'>

and then you do

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

class myGuy2 : myGuy {

displayName="MyGuy2";

}

<span id='postcolor'>

myGuy2 will inherit the armor value of 10 from myGuy. If you take a look at the decompiled config.bin by alonewolf, you'll find all the default values set to some common classes (soldier, car, etc).

Share this post


Link to post
Share on other sites

Thanx, Kegetys for your swift answer.

Now, the only thing between here and config-heaven is to get a hold of that "decompiled config.bin by alonewolf".

Know where I can snatch it?

By the way...Can´t stretch enough how I appreciate your addons. Keep it up!

Share this post


Link to post
Share on other sites

Thanx a lot, vielen dank, tack som faan!

And off we go... biggrin.gif

Share this post


Link to post
Share on other sites

Does anyone have a complete list of attributes that are in the .cpp file and what they actually do. Most are pretty simple but a complete reference would be nice especially for things used by the AI players.

thanks.

Share this post


Link to post
Share on other sites

Yea, I've gotten just about everything off the opediting site (which was great help) but all they have is the list. What I really need is a description of each attribute (I'm trying to get away from the word command since everyone thinks of the editing commands). Most of them you can mod and see what happens but some are tough to test.

thanks.

Share this post


Link to post
Share on other sites

They have the tutorial I talked about also. Not the list. See tutorials, a bit down, Making Addons (advanced) and a link "Config.cpp File Tutorial" by snypir.

It doesnt describe everything, but much, the recoil description was a life saver smile.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×