Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP] Addon: KF Slow-Motion v1.4


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 06-15-2011 , 21:09   [ZP] Addon: KF Slow-Motion v1.4
Reply With Quote #1

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 worksNow 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.
PHP Code:
/slowmo 
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.
Attached Files
File Type: zip sound.zip (52.8 KB, 1642 views)
File Type: sma Get Plugin or Get Source (zp_extra_slowmo.sma - 2061 views - 6.0 KB)
File Type: sma Get Plugin or Get Source (zp_addon_slowmo.sma - 2287 views - 5.4 KB)

Last edited by Excalibur.007; 06-28-2011 at 20:22.
Excalibur.007 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:59.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode