@@ -410,6 +410,18 @@ void Actor::SetFactions(const Factions& acFactions) noexcept
410410 SetFactionRank (pFaction, entry.Rank );
411411 }
412412 }
413+
414+ if (GetExtension ()->IsPlayer ())
415+ {
416+ auto pPotentialFollower = Cast<TESFaction>(TESForm::GetById (0x5C84D ));
417+ SetFactionRank (pPotentialFollower, 1 );
418+
419+ auto pCurrentFollower = Cast<TESFaction>(TESForm::GetById (0x5C84E ));
420+ SetFactionRank (pCurrentFollower, 1 );
421+
422+ auto pPlayerFaction = Cast<TESFaction>(TESForm::GetById (0xDB1 ));
423+ SetFactionRank (pPlayerFaction, 1 );
424+ }
413425}
414426
415427void Actor::SetFactionRank (const TESFaction* apFaction, int8_t aRank) noexcept
@@ -433,6 +445,14 @@ void Actor::SetPlayerRespawnMode() noexcept
433445 SetEssentialEx (true );
434446 // Makes the player go in an unrecoverable bleedout state
435447 SetNoBleedoutRecovery (true );
448+ SetPlayerTeammate (true );
449+ }
450+
451+ void Actor::SetPlayerTeammate (bool aSet) noexcept
452+ {
453+ TP_THIS_FUNCTION (TSetPlayerTeammate, void , Actor, bool aSet, bool abCanDoFavor);
454+ POINTER_SKYRIMSE (TSetPlayerTeammate, setPlayerTeammate, 37717 );
455+ return ThisCall (setPlayerTeammate, this , aSet, true );
436456}
437457
438458void Actor::UnEquipAll () noexcept
0 commit comments