Jump to content
LoOni3r

value weapons for setback / recoil

Recommended Posts

Hello everyone,

 

Is it possible to value weapons for setback / recoil read?

 

I am currently working on a weapons statistics list for my players.

 

Thank you, Regards.

Share this post


Link to post
Share on other sites
21 minutes ago, LoOni3r said:

 

Is it possible to value weapons for setback / recoil read?

I don't understand what you are trying to ask.

You want to get the recoil values for weapons? They are defined in the weapon config.

Share this post


Link to post
Share on other sites

Yes, I want that.

I apologize for my bad English.

 

in

getNumber(configFile >> "CfgWeapons" >> _cfgname

I could not find anything suitable.
also under

getNumber(configFile >> "CfgMagazines" >> _magazines 

it was not to be found.

Share this post


Link to post
Share on other sites

configFile >> "CfgWeapons" >> weaponname >> "recoil"

gives you the name of the recoil config

More details you'll find in CfgRecoils

Share this post


Link to post
Share on other sites

thank you.

I was already wondering what the string is for.

 

this works:

_recoil = (getarray (configFile >> "CfgRecoils" >> (gettext(configFile >> "CfgWeapons" >> _cfgname >> "recoil")) >> "kickBack")) select 0;

Thank you again. I was annoyed with it for 3 days.

  • Like 1

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

×