Oblivion

File information

Last updated

Original upload

Created by

documn

Uploaded by

documn

Virus scan

Safe to use

About this mod

This mod demonstrates one way to make an allied NPC move such that both you and the NPC have a clear shot to the enemy.

Permissions and credits
NAME: Smarter Ally Combat Positioning Playable Resource
UPLOAD DATE: Oct. 12 2010
REQUIREMENTS: Oblivion 1.2.0416, OBSE 18

DESCRIPTION
This mod demonstrates one way to make an allied NPC move such that both you and the NPC have a clear shot to the enemy. I made this mod in response to a thread on thenexusforums.

When you load a save, the "Toggle SACP" spell will appear in your spell list. Cast this spell on any NPC that you want to follow the Smarter Ally Combat Positioning code I wrote up. Now, if the NPC enters combat and you have your weapon out, he will:
- move aside if he is between you and his combat target
- move aside if you are between him and his combat target

Cast the spell on the NPC again to remove the SACP behavior.

All modders are welcome to improve and adapt these scripts for their own mods.

LIMITATIONS
This mod assumes that your combat target is the same as your ally NPC's target.

This mod only cares about you, your ally NPC, and the ally NPC's target. It ignores any other actors. You can cast SACP on multiple allies, but they will each move independently, without regard for where he others are positioned.

If the mod tells an ally NPC to move, the NPC will move only left or right, and will not take any other action. In this way, the NPC can become defenseless and/or get stuck in a wall, corner, between NPCs, etc. The solution to this is to reposition yourself to make a larger "buffer zone" between you and the NPC.

Occasionally the NPC will do a fast "I'll strafe in front of you" move. I have yet to figure out how to prevent this without totally screwing up the rest of his combat behavior.

Similarly, archers may do their "I'll pull my bowstring and run right past the enemy" move in front of you. Same deal as above - I haven't figured out how to stop it.

CREDITS: God, Bethesda, OBSE team, LHammonds, Buddah