Bladestorm Games
Refugee
Hey guys, I'm trying to get into modding and I'm at a task that I cant figure out.
So my goal with this task is to see if I can make a melee attack cause an explosion. I'm experimenting with the leather knuckles to see if I could pull this off.
I'm able to get a sound effect to play on hit, but the explosion part isnt working (the FX isnt working either but that parts just a quick experiment i pasted in). I'm using ammoArrowExplosive, ammoRocketFrag, and thrownAmmoPipeBomb as a reference for explosions. I'm also taking a look at Bow items and Rocketlauncher items to see how the go about handling explosives ammo. I've tried a few different methods, none seem to work. Another idea I had was to give knuckles the ammoArrowExplosive tag, and make it wo power attacks shoot an explosive arrow. But before I go about trying that out, I figured I'd make a post about my task so see what Im doing wrong.
So my goal with this task is to see if I can make a melee attack cause an explosion. I'm experimenting with the leather knuckles to see if I could pull this off.
I'm able to get a sound effect to play on hit, but the explosion part isnt working (the FX isnt working either but that parts just a quick experiment i pasted in). I'm using ammoArrowExplosive, ammoRocketFrag, and thrownAmmoPipeBomb as a reference for explosions. I'm also taking a look at Bow items and Rocketlauncher items to see how the go about handling explosives ammo. I've tried a few different methods, none seem to work. Another idea I had was to give knuckles the ammoArrowExplosive tag, and make it wo power attacks shoot an explosive arrow. But before I go about trying that out, I figured I'd make a post about my task so see what Im doing wrong.
Code:
<testing_sandbox>
<!-- Attempting Explosion on Melee Hit -->
<append xpath="/items/item[@name='meleeWpnKnucklesT0LeatherKnuckles']">
<effect_group name="Power Attack">
<!-- Sound on Hit testing (Working) -->
<triggered_effect trigger="onSelfSecondaryActionRayHit" action="PlaySound" sound="stunbaton_hit5"/>
<!-- Explosion on Hit (NOT working) -->
<property name="Explosion.ParticleIndex" value="11"/>
<property name="Explosion.RadiusBlocks" value="3"/>
<property name="Explosion.RadiusEntities" value="4"/>
<property name="Explosion.DamageBonus.stone" value=".3"/>
<property name="Explosion.DamageBonus.metal" value=".1"/>
<property name="Explosion.DamageBonus.earth" value="0"/>
<property name="Explosion.DamageBonus.wood" value=".5"/>
<property name="Explosion.DamageBonus.water" value="0"/>
<property name="Explosion.BlockDamage" value="50"/>
<property name="Explosion.EntityDamage" value="15"/>
<!-- FX on Hit (NOT working) -->
<property name="Particles_muzzle_fire" value="rocketLauncherFire"/>
<property name="Particles_muzzle_smoke" value="nozzlesmoke_m136"/>
</effect_group>
</append>
</testing_sandbox>