Combat - hitting all enemies surrounding you?

Post » Fri Nov 16, 2012 8:58 pm

Is this possible? Anyone got a direction to start?

I wanted to create a master-level perk with a modified effect of the Sweep perk. Except instead of hitting just the enemies in front of you, you'd hit ALL enemies surrounding you.

So I look up Sweep, only to be dismayed that the perk essentially uses a hard-coded perk entry effect called "Set Sweep Attack" and the only value is "1" (aka, make it so the player performs the hard-coded sweep attack). In other words, there doesn't appear to be a way to adjust this ability at all.

Is there an alternate means to do what I want to do (via scripting, perk effects, etc)? It needs to be combat damage and only fired once during the attack (so cloaks are out of the question), and be the same damage value that would happen with a normal attack.

Or is there a way to adjust the "Set Sweep Attack" entry point to do what I want to do?

Thanks for any help. If doing something like this is impossible and truely a hard coded effect, I guess I'll just have to do with standard sweep.
User avatar
BEl J
 
Posts: 3397
Joined: Tue Feb 13, 2007 8:12 am

Post » Sat Nov 17, 2012 3:51 am

All around you? wow, I would never do this myself (not realistic ....nor even possible) however if I did want to do that the only way would be with a spell.

There is no way to calculate damage to 100% match the existing system because some factors like smithing level of the weapon cannot be obtained yet (SKSE will probably save the day at some point). So you will have to be happy with NEAR same as normal damage.

The only other choice would be to check the health before you hit the first guy and see how much damage you did after the hit to get the amount to apply to the other targets. But to me that is more trouble than it is worth as it will still not be accurate (the first guy could have armor for example while the others do not).

Bottom line is you may just want to use a spell, make you own damage calculation and be done with it.

Look at some of the giant's spells, there are several that replicate melee attacks but are really just spells that are cast with animations that look like attacks.
User avatar
Farrah Lee
 
Posts: 3488
Joined: Fri Aug 17, 2007 10:32 pm

Post » Fri Nov 16, 2012 8:34 pm

I'll look into giants, thanks.

I'm thinking it would be best to simply keep the perk as it is though and just give a 100% crit chance bonus for the mastery level. Would save a lot of headache.
User avatar
carla
 
Posts: 3345
Joined: Wed Aug 23, 2006 8:36 am

Post » Sat Nov 17, 2012 8:43 am

Well, I think you will need to ask SKSE team for a function that is similar to this one

http://www.creationkit.com/DoCombatSpellApply_-_Actor

But with combat-hit instead of spells. I think its very crucial for any combat mod out there.
User avatar
Joey Bel
 
Posts: 3487
Joined: Sun Jan 07, 2007 9:44 am


Return to V - Skyrim