RUNNING WITH RIFLES http://www.runningwithrifles.com/phpBB3/ |
|
How to make weapons that you can purchase by default? http://www.runningwithrifles.com/phpBB3/viewtopic.php?f=7&t=1578 |
Page 1 of 1 |
Author: | hashtag [ Tue Mar 18, 2014 10:07 am ] |
Post subject: | How to make weapons that you can purchase by default? |
Hi, Could anyone tell me how to make existing weapons to become purchasable by default? Like you can buy aks74u or f2000 from the armory even at rank Private? |
Author: | bwc153 [ Tue Mar 18, 2014 10:18 am ] |
Post subject: | Re: How to make weapons that you can purchase by default? |
in_stock="0" Change that 0 to 1. |
Author: | hashtag [ Tue Mar 18, 2014 10:30 am ] |
Post subject: | Re: How to make weapons that you can purchase by default? |
bwc153 wrote: in_stock="0" Change that 0 to 1. Thanks ![]() |
Author: | Gotcha! [ Tue May 06, 2014 5:43 pm ] |
Post subject: | Re: How to make weapons that you can purchase by default? |
Pardon me for bumping this topic, but it seems pointless to me to make a new topic. ![]() I've changed in_stock="0" to in_stock="1" for all weapons. But of the special weapons, only the L85 shows up. These other special weapons are probably not tied to a faction or something, making it impossible for them to appear. (Wild guess.) I've been searching in every file, but can't find where I would enable them to be buyable at all times. Is it even possible? Or are certain weapons hardcoded to not appear unless you find a briefcase? |
Author: | pasik [ Tue May 06, 2014 6:00 pm ] |
Post subject: | Re: How to make weapons that you can purchase by default? |
They also need to be enabled as faction resources. Take a look in factions\green.xml, grey.xml and brown.xml. |
Author: | Gotcha! [ Tue May 06, 2014 6:15 pm ] |
Post subject: | Re: How to make weapons that you can purchase by default? |
Hmm, if I would modify those files, wouldn't that also mean that the AI would spawn with these items? Edit: Aw, I've unlocked them now, but the game can't display all the weapons. ![]() |
Author: | pasik [ Tue May 06, 2014 7:24 pm ] |
Post subject: | Re: How to make weapons that you can purchase by default? |
Yes, it would. If you want the items in armory but not used by AI, you can make it in_stock and set commonness to 0.0. |
Author: | Gotcha! [ Tue May 06, 2014 9:39 pm ] |
Post subject: | Re: How to make weapons that you can purchase by default? |
Aaaah, so that's what that is for. Thank you. ![]() |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |