Shoves zombies back along the bullet direction, scaled by damage, weapon and air state. The feel-plugin every zombie server needs.
| csb_zombie_knockback.sma main | f6a4b57 | 3.8 KB |
CSB Zombie Knockback is the single plugin that makes a zombie server feel right: shoot a zombie and it gets pushed backwards. On Ham_TakeDamage the plugin builds a velocity vector along the attacker's aim, scales it by the damage dealt and a per-weapon multiplier, and adds it to the zombie's velocity — with a little extra shove while they are airborne and a hard speed cap so a full magazine cannot fling them off the map.
It has no hard dependency on a specific zombie mod: a "zombie" is simply any player on the team set by csb_kb_zombie_team (1 = Terrorists, 2 = CTs). Point it at whichever team your mod uses for the infected.
Inspired by the knockback in the classic Zombie Plague mod. Independent GPL re-implementation; no original code is reused.
Features
- Direction from the attacker's aim, so knives and grenades shove correctly too.
- Per-weapon multipliers (knife and snipers push hard, shotguns and the M249 push soft).
- Global power cvar, an air multiplier and a speed cap.
- A small vertical lift so hits do not just glue zombies to the floor.
Installation
- Make sure the
fakemetaandhamsandwichmodules are enabled inmodules.ini(they are by default). - Compile, copy
csb_zombie_knockback.amxxintoaddons/amxmodx/plugins/and add it toplugins.ini. - Set
csb_kb_zombie_teamto the team your mod uses for zombies, then change the map.
1. fakemeta + hamsandwich must be enabled in modules.ini (default) 2. Put csb_zombie_knockback.amxx in addons/amxmodx/plugins/ and add it to plugins.ini 3. Set csb_kb_zombie_team for your mod, change map
| CVAR | Default | Description |
|---|---|---|
csb_kb_enabled |
1 |
Enable or disable knockback. |
csb_kb_power |
6.0 |
Global knockback multiplier applied to damage. |
csb_kb_zombie_team |
1 |
Team treated as zombies (1 = T, 2 = CT). |
csb_kb_air_mul |
1.4 |
Extra knockback multiplier while the zombie is airborne. |
csb_kb_max_speed |
1200.0 |
Velocity is clamped to this after knockback. |
1.0.0 - Initial release.Versiones →
No ratings yet.
| AMX Mod X | ≥ 1.9 |
| Engine | ReHLDS HLDS |
| ReGameDLL | Opcional |
| ReAPI | Opcional |
| Metamod | Metamod / Metamod-r |
| Módulos | fakemeta hamsandwich |
| Conflictos conocidos | Do not run alongside a zombie mod that already applies its own knockback - the pushes will stack. |









