Jump to content
Sign in to follow this  
singleton

How to create custom ammo box addons (not scripts).

Recommended Posts

Hi guys,

I run a dedicated MSO Server alongside Persistant Database. It is great BUT I have a big issue. Since I have PDB enabled and custom weapon scripts, on player connect, the default loadouts for boxes will be applied globally even though PDB will record the correct values for a weapon box. For example.

Rifle Box contains 1 M4 and 10 STANAGs. Player A takes out 1 M4 and 5 STANAGs then goes out on mission.

After Player A has taken the items, PDB records the box as having only 5 STANAGs left and it is reflected when going into the gear menu of the box.

Player B connects AFTER Player A has taken the items from the box, on Player B's connect, a loadout script is applied globally to all weapon boxes, then PDB initializes and weapon box states are also applied globally.

Player B goes to the weapon box and SEES 1 M4 and 10 STANAGs. Player B tries to take an M4 but cannot, since PDB has recorded the M4s to be 0 remaining, but the weapon script applied makes the box appear as 1 remaining. Player B however is able to only grab 5 out of the 10 STANAGs that he can see since PDB has recorded only 5 left.

The issue: Players are unable to keep accountability of equipment and things put in the crates are not truly persistant. If a resupply mission takes place, and somebody comes in later to a forward area, he will see the scripted items in the box, rather than the true items recorded by PDB.

The solution: I need to create custom ammo boxes which I can select in the editor. Therefore no script will need to be applied and the box will be truly persistant. Is there a way to edit an existing box without infringing on authors rights since I have no modelling/texturing experience? Is there an easy way to create a weapon box addon and .pbo it for my community?

Thanks in advance for any helpful replies. This is really giving us a hard time!

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  

×