Breaking shipments to drop seperate weapons

Hey there. I know this is a DarkRP post and could be posted in the darkrp thread, but I have found no information anywhere about how to fix my problem. I think this thread could benefit others in the future.

In DarkRP 2.5, when you break shipments, weapons drop stacked. I do not like this and would rather my weapons drop seperately. I know FPtje had it set up this way in a previous update, but I have no idea how to go about getting this feature back. Any info is appreciated.

I’d recommend not, because in my opinion the weapons colliding and basically spawning inside each other is a little iffy and might cause lag, albeit small lag

Okay that is understandable. How would I go about doing this if I wanted to though.

Well you would probably want to look through the default DarkRP code to find the function that specifies what happens when a shipment entity breaks, and then replace that with something that spawns however many is left of the shipment’s weapon class

I’ve been looking through a lot of the code alresdy… I’ve found everything except what I’m looking for hehe. So I guess what I’m asking now is if anyone has any idea which file(s) this might be located in.

Well, I just realized, you’re supposed to keep DarkRP questions here as according to

I’ll try to see if I can find the code for you later