Description:
A slow-mo will be made when someone kills a zombie. Idea taken from Killing Floor.
It's fully tested no bugs found so far though.
Update Logs:
PHP Code:
v1.0 - Initial release
v1.1 - Fix a bug where normal players can use /slowmo as well.
v1.2 - More efficient codes.
v1.3 - Changed the way speed works. Now compatible with ZP 4.3 Fix3
v1.4 - Fix zombie speed bug when it does not reset back to zombie speed but into CS Weapon Speed.
Modules:
PHP Code:
#include <amxmodx>
#include <engine>
#include <fakemeta>
#include <fun>
#include <hamsandwich>
#include <zombieplague>
CVars
PHP Code:
zp_slowmo_speed "90.0"
- The speed limit during slow-motion
zp_slowmo_duration "2.5"
- Duration of slow-motion
zp_slowmo_rateoffire "3.0"
- The rate of fire during slow-motion such as shooting/slashing/stabbing
Commands:
If you do not have a tester, use this command to activate slowmo.Make sure you have the admin flag required to use this command. Check below for more info about admin flag.
Notes:
- Slow motion doesn't affects:
- Jumping(But it will still prevent them from going fast)
- Weapon animations
- CVars will only be updated every new round to make it more efficient.
- The sound does not sounds like Killing Floor. (CS has a limit of quality I think. It doesn't play higher quality than the limit so I had to convert it lower)
- zp_extra_slowmo - Instead of an addon, it becomes an extra item. This was requested.
Suggestions requirements:
- I do not want it to make it non-KF slow-motion
Customization:
If you want to change the flag requirement,
PHP Code:
#define ADMIN_FLAG ADMIN_BAN
List of admin flags (Taken from AMXModX Funcwiki)
PHP Code:
ADMIN_RESERVATION
ADMIN_IMMUNITY
ADMIN_KICK
ADMIN_BAN
ADMIN_SLAY
ADMIN_MAP
ADMIN_CVAR
ADMIN_CFG
ADMIN_CHAT
ADMIN_VOTE
ADMIN_PASSWORD
ADMIN_RCON
ADMIN_LEVEL_A
ADMIN_LEVEL_B
ADMIN_LEVEL_C
ADMIN_LEVEL_D
ADMIN_LEVEL_E
ADMIN_LEVEL_F
ADMIN_LEVEL_G
ADMIN_LEVEL_H
For sound changing,
PHP Code:
new const slowmo_start[] = "zombie_plague/slowmo_start.wav"
new const slowmo_end[] = "zombie_plague/slowmo_end.wav"
Credits:
- Me - Obvious?
- Killing Floor - Idea & Sounds
- HLDJ - For converting the sound to a suitable quality for CS 1.6
- Special thanks to my friends for testing it with me
Off-topic:
I do not want this plugin to be in other forums. I put my trust in all of you.
If there is anything you need from me. Add me into steam iAmExcalibur007.