Add a Survivor emergency-rescue plugin - #1016
Closed
apples1949 wants to merge 1 commit into
Closed
apples1949 wants to merge 1 commit into
apples1949 wants to merge 1 commit into
Conversation
A Survivor can lose a round to something that is not normal Special Infected
play: getting wedged in map geometry, pinned by a door or a lift, or eating a
bugged damage spike that instantly incaps them. None of that can be undone
through in-game mechanics, so the only answers today are restarting the round
or negotiating something on the fly, which regularly ends in a dispute.
l4d2_emergency_rescue gives the referee a standard, logged way to recover:
- Teleport a Survivor to the position the referee is aiming at, to a per-map
preset coordinate, or next to a chosen teammate. The destination is
safety-checked first: the player hull has to fit, there has to be ground
underneath, and no living Special Infected may be within
l4d2_emergency_rescue_si_radius (default 250 units).
- Set real or temporary health and set the incap count, keeping the
third-strike flag and the black-and-white outline in step with it.
- Roll a Survivor back to the state recorded just before their last incap.
Every teleport and every state change is written to
logs/l4d2_emergency_rescue.log and to the standard SourceMod admin log, with
the acting admin, the target and the old and new values, and both teams are
told that the match was adjusted.
Commands are registered with ADMFLAG_BAN, the flag the other referee commands
in this repository use, and can be overridden per command in
admin_overrides.cfg. The menu is reachable from sm_rescue and from
Admin Menu -> Server Commands.
The plugin stays inert during normal play: it only observes events to record
pre-accident state and never writes to the game unless a referee asks it to.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
see #1012