addonsVersion 1.0.0: First release.
README.txtVersion 1.0.0: First release.
README.txt2.7 KB
No file matches.
Fast Spectator Transfer 1.0.0 (olds.ro)
=======================================
Two chat commands for a quick break: /spec moves you to the spectators at
once, also while you are alive, and /back puts you back in the team you
left, unless that team is full or your return would unbalance the teams.
Requirements
- ReHLDS, ReGameDLL_CS, Metamod-R, ReAPI
- AMX Mod X 1.10 or newer (written for 1.10.0.5490)
Install
1. Compile scripting/olds_fastspec.sma and copy olds_fastspec.amxx to
addons/amxmodx/plugins/. The compiler needs ReAPI's include files
(reapi.inc and the reapi_*.inc files from the ReAPI release) next to the
stock AMX Mod X includes.
2. Copy data/lang/olds_fastspec.txt to addons/amxmodx/data/lang/.
3. Copy configs/plugins/olds_fastspec.cfg to addons/amxmodx/configs/plugins/
(if it is missing, the plugin writes it with the default values).
4. Add olds_fastspec.amxx to addons/amxmodx/configs/plugins.ini.
Commands
say /spec (also in team chat) Go to the spectators; your team is
remembered.
say /back (also in team chat) Return to the team you left with /spec.
Without an earlier /spec it only prints a hint.
How it works
- /spec moves the player with ReAPI's rg_join_team, the same way the game
makes a player a spectator. A living player dies quietly (no kill feed
line) and counts as dead for the round; a carried C4 is dropped.
- /back puts the player back in his former team; he plays again from his
next spawn (at once if the round still lets new players spawn).
- /back is refused while that team has no free spawn point (the game's own
"team full" rule), and when the team would then have more than
olds_fspec_maxdiff players over the other team. The player is told why.
- Both commands share a cooldown of olds_fspec_cd seconds, and they do not
work during freeze time unless olds_fspec_freeze is 1.
- With the game's allow_spectators 0, /spec is refused.
Settings (addons/amxmodx/configs/plugins/olds_fastspec.cfg)
olds_fspec_cd 5 seconds between two uses of /spec or /back (0 - 60)
olds_fspec_keep 1 1 = going to the spectators costs nothing on the
scoreboard; 0 = a living player gets one death, as
when the game's team menu moves him
olds_fspec_maxdiff 2 most players the returning player's team may have
over the other team after /back (0 = no check)
olds_fspec_freeze 0 1 = the commands also work during freeze time
No sounds, models or sprites are added.
Credits and licence
Written from scratch by alexit (olds.ro workshop) for workshop card LIB-2063.
Licence: GNU GPL version 3 or later (GPL-3.0-or-later).