Jump to content

shotgun problem?

Pending 3.1.4

Hello,

I give 1 rp for barrels however when shot with a shotgun using 12 gauge buckshot ammo it gives more then 1 rp.

I've attached the ingame message and also the server console message.

is this a setting i need to change?

image.png

image.png

Share this comment


Link to comment

Hi,
Someone else reported this recently but, unfortunately, I can't seem to find that now.

Their problem was cause by some other plugin which was modifying how barrels get destroyed.
I think, maybe, it was a plugin that makes them break with one hit, or something like that.

Share this comment


Link to comment

Yeah, looks like that's the one.
The developer could keep a record of IDs of entities they have handled and just return if an entity's ID is already in that list,
to prevent the code running multiple times for fast-paced multiple damage (like buckshot),

or they could check if barrel is null or destroyed before running their .Kill code and only call OnEntityDeath hook in cases where it's not null or destroyed.

 

Or, as you said, you can just remove it. 😂

Edited by Steenamaroo

Share this comment


Link to comment

I also have skilltree the players on my server can just put points in to the tree that gives 1 hit barrels and auto pickup haha, I forgot it did that, thats why i had both.

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

82.1k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.