Jump to content
Sign in to follow this  
ck-claw

Unit/Weapons Cost etc

Recommended Posts

As title says anyone know where i can find this?

By the stringtable i mean where it would say:-

'You have recieved $ from capturing camp'

I looked bloody everywhere but im obviously missing it!

crazy_o.gif

Thanks in advance smile_o.gif

Share this post


Link to post
Share on other sites

The weapons and units are in their respected files:

Common\Config\Config_Barracks.sqs & Config_Loadouts.sqs - Look for _C

Now for the camps you and Vic nearly asked the same questions and for the life of me I can't figure it out...

Share this post


Link to post
Share on other sites

That was not quite what i mean't smile_o.gif

Where can i find how to edit the costs of the weapons?

But you actually answered another question i forgot!

Psychic or what? wow_o.gif

Thanks for that Crazy! notworthy.gif

Share this post


Link to post
Share on other sites
Where can i find how to edit the costs of the weapons?

mmm... I dont follow you here? The file Config_Loadouts.sqs holds the information cost of the weapons... _C is how much the weapon costs:

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

_weapon = "M16A2"

_ammo = "30Rnd_556x45_Stanag"

_w = _w + [_weapon]

_n = _n + [GetText (configFile >> "CfgWeapons" >> _weapon >> "displayName")]

_i = _i + [GetText (configFile >> "CfgWeapons" >> _weapon >> "picture")]

_c = _c + [20]

_a = _a + [_ammo]

_an = _an + [GetText (configFile >> "CfgMagazines" >> _ammo >> "displayName")]

_ai = _ai + [GetText (configFile >> "CfgMagazines" >> _ammo >> "picture")]

_as = _as + [GetNumber (configFile >> "CfgMagazines" >> _ammo >> "type") / 256]

_ac = _ac + [5]

In this code the M16A2 costs $20 and the code _AC is how much the ammo costs for this gun.

:edit:

Now if you are talking about editing the _cost code, then good luck bud.

Share this post


Link to post
Share on other sites

Thanks -i see it in the code now !  smile_o.gif

Edit:-

Im buggered if i can find that StringTable to edit $ into The Pound Sterling symbol-(had to put that as the pound sign dont work in these forums!wink_o.gif???

Thing is ive managed to change the base HMMWV to a Landie but in the 'Buy menu' still shows up as HMMWV?

Share this post


Link to post
Share on other sites

£

Uhh... mmm... No clue man.

:edit:

ha your right the symbol doesn't show...

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  

×