Skip to content

Odd error with Chainsaw and Jackhammer, detailed guide on how to reproduce. #2

@Ayria

Description

@Ayria

Add this to the config for ItemModifier:

    <Item ID="490"> <!-- Chainsaw -->
      <Invulnerable>true</Invulnerable>
    </Item>

Now spawn a pine floor and destroy it with a chainsaw.
Okay, works great, right?
Now add this to the config for ItemModifier

    <Item ID="52"> <!-- Pine Floor -->         
      <Health>2850</Health>
    </Item>

and change "Armor_Multiplier" to 0.2 in the Config.json for Barricades and Structures.
Now spawn yourself a new Pine Floor and and a chainsaw and attack that floor.
No damage right?

If you change the Chainsaw information in the ItemModifier to this:

    <Item ID="490"> <!-- Chainsaw -->
      <BarricadeDamage>5</BarricadeDamage>
      <StructureDamage>5</StructureDamage>
      <Invulnerable>true</Invulnerable>
    </Item>

It will go back to being damagable. You can use Barbedwire as your controlled tester item.
By default the chainsaw does 3 DMG. I tried to change it from 3 and 4. This did nothing. When I changed it to 5 it starts to work.

So why does changing the armor multiplier and HP suddenly make the Chainsaw no longer work against Structures/Barricades unless set to 5+ DMG?

It should be noted, if I add the HP and Invulnerable stuff manually to .dat files(while also having the 0.2 in the Config.json) the issue with the chainsaw doesn't occur, so why does it happen with the plugin?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions