The_Great_Sephiroth
Scavenger
I'm updating one of my older mods that modifies traps. What I am noticing is that both blocks.xml AND materials.xml have a MaxDamage variable. Why? Do they do the same thing? Let's look at wood spikes.
Blocks:
Materials:
So this is a tad confusing. I did leave out lines there were not important to this query, but both XML sections had more lines of code. Now, what I take from the blocks.xml code is that, when a zombie or player hits the block, the player/zed takes 33 damage and the block takes 33 damage. If I run into the block three times it should have 1hp left as I interpret "MaxDamage" to be it's hit-points. So if I hit it again, it breaks. If this is true, then what does the 33 value in the material accomplish?
Blocks:
Code:
<block name="trapSpikesWoodMaster">
<property name="Damage" value="33"/>
<property name="Damage_received" value="33"/>
<property name="Material" value="MtrapSpikesWood"/>
<property name="MaxDamage" value="100"/>
</block>
Materials:
Code:
<material id="MtrapSpikesWood">
<property name="MaxDamage" value="33"/>
</material>