Jump to content

Adding explosive effect to a melee weapon's power attack


DyslexicSwine

Recommended Posts

I have an idea for a fun melee weapon that creates an explosion when you use a power attack, but I'm new to making mods in the CK and was wondering if anyone knew how to do this, or could point me towards a mod that does something similar so I can see what they did (or even if this is even possible). Would appreciate any help you can provide!

Link to comment
Share on other sites

A few months ago I did a patch for the Ballistic Fist. Only way I know of, to attach explosion to melee weapon, is with a script. Add Enchantment to the weapon, add script to the magic effect. Since this is weapon enchantment, the explosion will spawn on every hit. Set a condition for the magic effect inside the Enchantment, I think there's one which detects power attacking, but have not tried it personally. The problem with the explosion is, it will damage the user as well. Maybe make the explosion with small radius. Or the other option is make the explosion do zero damage, instead add Enchantment to the explosion. The Enchantment will have a damaging magic effect with condition to work only for hostiles.

 

Regarding the script, I have one in the Ballistic Fist Patch - No Ammo Requirements. The script spawns invisible marker at the target actor, spawns the explosion at this marker and then deletes the marker. The reason for using a marker - there is also variable in the script, which can change the vertical position of the marker. This way I elevate the explosion so it doesn't spawn where the target's feet touch the ground. But don't set it too high as it will look weird for creatures like the bloatflies(much higher than their bodies).

Link to comment
Share on other sites

Thanks for the response! This is really helpful, I will definitely get started in this direction now.

A few months ago I did a patch for the Ballistic Fist. Only way I know of, to attach explosion to melee weapon, is with a script. Add Enchantment to the weapon, add script to the magic effect. Since this is weapon enchantment, the explosion will spawn on every hit. Set a condition for the magic effect inside the Enchantment, I think there's one which detects power attacking, but have not tried it personally. The problem with the explosion is, it will damage the user as well. Maybe make the explosion with small radius. Or the other option is make the explosion do zero damage, instead add Enchantment to the explosion. The Enchantment will have a damaging magic effect with condition to work only for hostiles.

 

Regarding the script, I have one in the Ballistic Fist Patch - No Ammo Requirements. The script spawns invisible marker at the target actor, spawns the explosion at this marker and then deletes the marker. The reason for using a marker - there is also variable in the script, which can change the vertical position of the marker. This way I elevate the explosion so it doesn't spawn where the target's feet touch the ground. But don't set it too high as it will look weird for creatures like the bloatflies(much higher than their bodies).

Link to comment
Share on other sites

Just wanted to let you know this worked very well. I made the Explosion do only 1 damage, but I made it ragdoll other enemies around which is the effect I wanted. The extra damage I added to the enchantment. Thanks again for the advice!

A few months ago I did a patch for the Ballistic Fist. Only way I know of, to attach explosion to melee weapon, is with a script. Add Enchantment to the weapon, add script to the magic effect. Since this is weapon enchantment, the explosion will spawn on every hit. Set a condition for the magic effect inside the Enchantment, I think there's one which detects power attacking, but have not tried it personally. The problem with the explosion is, it will damage the user as well. Maybe make the explosion with small radius. Or the other option is make the explosion do zero damage, instead add Enchantment to the explosion. The Enchantment will have a damaging magic effect with condition to work only for hostiles.

 

Regarding the script, I have one in the Ballistic Fist Patch - No Ammo Requirements. The script spawns invisible marker at the target actor, spawns the explosion at this marker and then deletes the marker. The reason for using a marker - there is also variable in the script, which can change the vertical position of the marker. This way I elevate the explosion so it doesn't spawn where the target's feet touch the ground. But don't set it too high as it will look weird for creatures like the bloatflies(much higher than their bodies).

Link to comment
Share on other sites

  • 2 weeks later...

Ok, I'm glad you managed to make it work as you wanted. Are you using the condition for power attacking? I'm curious if this condition works.

Yes, I am! It works most of the time but it doesn't when you go into one of the special melee kill animations. The condition's exact name is 'isPowerAttacking', so I assume you are not technically power attacking when you enter one of those animations. Other than that it works great.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...