|
Post by LinkHero95 on Nov 25, 2020 5:06:44 GMT
Hi guys, hope you are keeping well during this pandemic.
Is there a way to make weapons not unlock in the store because the player picks them up? I realize that Dziggy did this in his famous Far Cry 3 mod (which I played recently, albeit for a short while) and I was wondering whether FC4 had an equivalent for it.
|
|
|
Post by LinkHero95 on Nov 29, 2020 17:49:31 GMT
I have been doing some experiments in this direction, as no one seems to have a ready answer to this problem. I have done some experiments for the same. I imagine the sequence of events as follows:
- Royal Army grunt has Cool Gun. (This is defined by the packs section of the CEF file)
- The player shoots the grunt in the face.
- The grunt drops the Cool Gun. A pickup for the Cool Gun is created.
- The player picks up the Cool Gun from the ground (or wherever it was dropped).
- The Cool Gun is unlocked in the shop.
I have tried the following: - Disabling the pickup entirely from its ark.xml file prevents the pickup from being created in the first place.
- Setting the "isPickable" flag to false makes the game engine create the pickup, but the player cannot interact with it in any way.
- Changing the weapon associated with the pickup results in that weapon being added to the shop instead. (This could make for a crazy FC4 experience. Just imagine, the player drops their signature machine gun and picks it back up, only to get a flare gun instead.)
- replacing the NPC's weapons with their multiplayer equivalents seems to do nothing. The weapon is still unlocked in the shop if the player picks it up.
|
|
|
Post by LinkHero95 on Dec 6, 2020 11:15:09 GMT
I have found that both the standard NPC weapons and their equivalents carried by the player (yes, these are separately defined as ark.fcb files) drop the same weapon pickup on weapon drop. Also, in the converted ark.xml for the weapon pickup, there is a field called "sUsageString", which has a value of "switchweapon". This usage may hold the key to unlocking the weapon at the shop. However, I have been unable to find any reference to this string so far. I am at a block here, so am temporarily focusing on other fields of investigation. If anyone wishes to pick up from here, please feel free to do so.
P. S. I have a hunch that this switchweapon is meant for an LUA script somewhere.
|
|