Jump to content

shotgun problem?

Pending 3.1.4

Schuu
Schuu

Posted

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

  • Administrator
Steenamaroo

Posted

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.

  • Administrator
Steenamaroo

Posted (edited)

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
Schuu

Posted

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.

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

Files Sold

Total number of files sold.

2m

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.