False Footfalls 1.0.0 (olds.ro) - Zombie Plague 5.x add-on
==========================================================
A zombie spends a charge to replay its own last three footsteps: the step
sounds play again, one after the other, at the places where it stepped, so the
humans think it is still there.
Requirements
- AMX Mod X 1.10.0.5490 or newer; fakemeta, hamsandwich
- Zombie Plague 5.x (library zp50_core: zp_core_is_zombie and the forwards
zp_fw_core_infect_post / zp_fw_core_cure_post)
Install
1. Compile scripting/olds_footfalls.sma and copy olds_footfalls.amxx to
addons/amxmodx/plugins/ (after the ZP core in plugins.ini).
2. Copy data/lang/olds_footfalls.txt to addons/amxmodx/data/lang/.
No downloads: the stock sound/player/pl_step1.wav - pl_step4.wav, already
on every client.
Settings (addons/amxmodx/configs/plugins/olds_footfalls.cfg, made on first run)
olds_footfalls_charges 2 replays per zombie per round
olds_footfalls_gap 0.4 seconds between two replayed steps
Players (zombies)
say /echo replay the last three steps of this round
How steps are recorded
- Only for living zombies, only points inside the world with ground under
them, and only the last three are kept (oldest is replaced).
- From step sounds the server emits through EmitSound (FM_EmitSound,
player/pl_step*, pl_dirt*, pl_tile*... from the player). The game plays most
footsteps through player movement without that call, so running movement
is recorded too: one step per 70 units at run speed (150+), on the ground.
Walking and crouching make no footsteps in the game and are not recorded.
- Each replayed step is an ambient sound at the stored point (random
pl_step1-4), oldest first.
Rules
- Steps of an earlier round are never replayed (each step carries its round).
- /echo with no step recorded this round plays nothing and spends no charge.
- A replay in progress is cancelled on cure, infection, death, disconnect and
round end; the stored steps are dropped on cure, infection, death and
disconnect.