ExtractionAutoRevive
Host-only mod that automatically revives dead players on extraction completion.抽出完了時に死亡したプレイヤーを自動で蘇生するホスト専用MOD
By REPO_JP
CHANGELOG
Changelog
[0.1.0] - Initial Release
Added
-
Host-only automatic revive triggered by extraction completion
- Hooks
ExtractionPoint.StateSetand reacts when state becomesComplete - Executes revive after a 1-frame delay to avoid timing issues during state transitions
- Hooks
-
Event-driven design (no polling / interval checks)
-
Host-only guard
- Runs only when
PhotonNetwork.InRoomis true andPhotonNetwork.IsMasterClientis true - Skips in singleplayer and for non-host clients
- Runs only when
-
Stage filter to avoid lobby / non-level contexts
- Requires
SemiFunc.RunIsLevel()to be true - Tracks Unity log
"Changed level to:"to maintain a display-level name - Excludes
LobbyandLevel - *
- Requires
-
Safe cancellation for rapid state changes / level transitions
- Uses an internal token to cancel a pending revive if the token changes before execution
-
Revive execution pipeline
- Enumerates
PlayerAvatarviaResources.FindObjectsOfTypeAll<PlayerAvatar>() - Filters targets to loaded scenes only
- Resolves
PlayerActions.Revive(PlayerAvatar)via reflection and invokes it for each target - Skips revive when
PlayerActions.Revive(PlayerAvatar)cannot be resolved
- Enumerates
-
Detailed logging
- Logs state transitions, host checks, stage filter results, target counts, and per-player revive results
[0.1.1] - Updated
Changed
-
Refactoring based on received cleanup advice (no behavior change)
- Replaced player enumeration from
Resources.FindObjectsOfTypeAll<PlayerAvatar>()toGameDirector.instance.PlayerList - Replaced health checks from reflection (
GetField/GetValue) to direct accessplayer.playerHealth.health - Replaced revive invocation from reflection (
MethodInfo.Invoke) to direct callplayer.Revive(true) - Replaced extraction flag updates from reflection (
SetValue) to direct assignmentplayer.playerDeathHead.inExtractionPoint = trueandplayer.playerDeathHead.inTruck = true
- Replaced player enumeration from