Jump to content

How to prevent the "Teammate" flag from disabling VATS.


lee3310

Recommended Posts

Just in case, if about Companion, there's VATSRestrictedTargetKeyword sitting in the alias. Now that you ask, not sure then what is pure effect of SetTeammate alone and why kw is needed. For my custom followers i've incorporated this alias keyword too, and probably did it for a reason, though don't remember now.

Link to comment
Share on other sites

Just in case, if about Companion, there's VATSRestrictedTargetKeyword sitting in the alias. Now that you ask, not sure then what is pure effect of SetTeammate alone and why kw is needed. For my custom followers i've incorporated this alias keyword too, and probably did it for a reason, though don't remember now.

Pacified enemies are also flagged as teammates and "VATSRestrictedTargetKeyword" does not prevent you from targeting the NPC in VATS, you just can't shoot it (you get an "invalid target" notification).

Edited by lee3310
Link to comment
Share on other sites

Be nice to get VATs nailed down better, sometimes it works perfectly, more often it zeros in on a harmless rad rabbit 100 meters off...

instead of the Feral Ghoul that is <1meter away, and about to pounce on my neck. :pinch:

seldom want to target companions/followers (but that does happen). :blush:

 

Really should prioritize targets with a smidgen of intelligence. :dry:

I have it set to freeze-time so I can sort through the carp while in big skirmishes.

 

@hereiam have seen SetPlayerTeammate comes into play for things like forcing a clingy follower to unfollow/go home.

 

Reference:

Force Dismiss Follower:
~ click on NPC
setconsolescopequest followers
emptyrefalias companion
setplayerteammate 0
removefromfaction ID

though the exact function is undefined to me- it seems to be a pretty essential element of the stack there.

(To the point that removefromfaction ID is seldom required to give 'em the heave ho).

Link to comment
Share on other sites

Be nice to get VATs nailed down better, sometimes it works perfectly, more often it zeros in on a harmless rad rabbit 100 meters off...

instead of the Feral Ghoul that is <1meter away, and about to pounce on my neck. :pinch:

seldom want to target companions/followers (but that does happen). :blush:

 

Really should prioritize targets with a smidgen of intelligence. :dry:

I have it set to freeze-time so I can sort through the carp while in big skirmishes.

 

@hereiam have seen SetPlayerTeammate comes into play for things like forcing a clingy follower to unfollow/go home.

 

Reference:

Force Dismiss Follower:
~ click on NPC
setconsolescopequest followers
emptyrefalias companion
setplayerteammate 0
removefromfaction ID

though the exact function is undefined to me- it seems to be a pretty essential element of the stack there.

(To the point that removefromfaction ID is seldom required to give 'em the heave ho).

I mostly use VATS to check companions health when they are not protected/essential.

And i also thought that flagging an NPC as teammate will add it to the follower quest refcoll but it's not the case and i still don't know what variable is setplayerteammmate changes to block VATS.

i just need a hint, for exemple the script or perk that handles VATS if there is any.

Link to comment
Share on other sites

As far as I remember, SetPlayerTeammate(True) disables the player's ability to target them in VATS, no matter what. It seems to be a hardcoded behavior as it can't be turned off (maybe with different SetPlayerTeammate parameters? E.g., abCanDoFavor=False). I think the VATS block also applies to NPCs that are not even "followers" (so Game.GetPlayerFollowers().Find(TheNPC) < 0).

Edited by LarannKiar
Link to comment
Share on other sites

As far as I remember, SetPlayerTeammate(True) disables the player's ability to target them in VATS, no matter what. It seems to be a hardcoded behavior as it can't be turned off (maybe with different SetPlayerTeammate parameters? E.g., abCanDoFavor=False). I think the VATS block also applies to NPCs that are not even "followers" (so Game.GetPlayerFollowers().Find(TheNPC) < 0).

Exactly, any NPC set as player teammate is automatically disabled in VATS and i was hoping that i can find a workaround, but if it's hardcoded like you say, there isn't much to do about it, except an F4SE plugin maybe ?. I wish i can get my hand on a tutorial on how to do that ( i have some leftover C/C++ knowledge)

Link to comment
Share on other sites

  • Recently Browsing   0 members

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