Jump to content

turret can't damage npc's

Pending 2.6.4 2.6.5

Hello Nivex!

 

After a long time, we updated the plugin from 2.5.0 to 2.6.4. A problem was reported that players' turrets shoot npc's but the npc's do not take damage. I did not transfer the relevant parts in the data config. "Player Traps And Turrets Ignore Npcs": false, I would like your help, where and what should I do so that the turrets damage the npc again.

 

Thx: Ateszahun

Share this comment


Link to comment

heya this is a bug and is fixed in the next update

            if (victim.skinID == 14922524 && weapon != null && RaidableBase.Has(weapon))
            {
                return false;
            }

changed to

            if (victim.skinID == 14922524 && weapon != null && weapon.OwnerID == 0 && RaidableBase.Has(weapon))
            {
                return false;
            }

 

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.5k

Customers

Total customers served.

78.6k

Files Sold

Total number of files sold.

1.5m

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.