Enhanced NPC Melee

I would like to see NPC fistfighting ability enhanced. Currently, they can only throw left hand punches. I managed to decrease the time delay by editing melee.xtbl (min - max values). Still, though, I would like to see a mod that allows NPCs to:

1. Throw right hand punches and perform power attacks.
2. Perform QTE finishers.

With regard to QTE finishers, I removed the flag from MC Homie Finishers 1-4 that says "Attacker is Homie Only" and it lets NPCs do the moves, but it also screws up the player's normal attacks :(

Help/suggestions would be appreciated! Thx.
 
May i ask how you tweaked the NPC's into faster swings? Also i will help you figure this out as i have created a full Street Fighter Conversion, And it also bothered me how they swing with left hand...... We can work together on this! Check out my Combat mod

Moderator note: Deleted attachment. Don't upload and attach your mod in multiple threads. Just link back to your original release thread.
 
Open up ai_behavior.xtbl

Go to:

<Name>Civilian Unarmed</Name>
<Human_Description>
<human_elm>
<Weapon_Class>knuckles</Weapon_Class>
<Team>Civilian</Team>
</human_elm>
<human_elm>
<Weapon_Class>bat</Weapon_Class>
<Team>Civilian</Team>
</human_elm>
<human_elm>
<Weapon_Class>nightstick</Weapon_Class>
<Team>Civilian</Team>
</human_elm>
<human_elm>
<Weapon_Class>sword</Weapon_Class>
<Team>Civilian</Team>
</human_elm>
</Human_Description>
<Actions>
<ability_elm>
<Action>melee</Action>
<Repeat_min>0</Repeat_min>
<Repeat_max>2</Repeat_max>
</ability_elm>

The values in red correspond to the min and max values the civilian will wait before swinging a punch. Before it was something like min 2, max 4, meaning the npc would wait at least two seconds before punching. If you set it to min 0, max 0 the npc will basically spam punch.

Hope that helps!
 
WTF nightsticks, cops in Steelport can't afford those. They always pull their gun out of the pocket.
 
Update: seriously stuck. Right handed attacks and power attacks are just not part of the "melee" action, defined in combat_actions.xtbl. If anyone knows how to edit "melee" let me know.
 
Back
Top