Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP 5.0]Advanced Knockback


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Depresie
Veteran Member
Join Date: Nov 2013
Old 04-15-2015 , 19:20   [ZP 5.0]Advanced Knockback
Reply With Quote #1

Lately i was trying to get an accurate knockback system on my server and i noticed that the ZP 5.0 Knockback system was not working as i wanted it to work so I made a couple adjustments

Old Version Knockback Calculation Method


Case 1:
zp_knockback_damage 1 : Knockback = Damage
(Note that Knockback doesn't get multiplied like the damage does if the victim is hit in the head or chest)

Case 2:
zp_knockback_power 1 : Knockback = Weapon Power Written in Zombieplague.ini

Case 3:
zp_knockback_damage 1 & zp_knockback_power 1 : Knockback = Damage * Weapon Power

Other Multipliers:
zp_knockback_class_obey 1 : Total Knockback * Zombie Class Knockback Multiplier

If Player is Ducking and Value > 0.0
zp_knockback_ducking "x" : Total Knockback * zp_knockback_ducking value

New Options For Knockback Calculation Method

Case 4:
zp_knockback_mixed 1 & zp_knockback_damage 0 & zp_knockback_power 0 : Knockback = Damage + Weapon Power

Case 5:
zp_knockback_mixed 1 & zp_knockback_damage 1 & zp_knockback_power 0 : Knockback = (Damage + Weapon Power) * Damage

Case 6:
zp_knockback_mixed 1 & zp_knockback_damage 1 & zp_knockback_power 1 : Knockback = (Damage + Weapon Power) * Damage * Weapon Power

Other Multipliers:
If Value > 0.0
zp_knockback_multi "x" : Knockback = Total Knockback * zp_knockback_multi Value

If victim is shoot in the head and Value > 0.0
zp_knockback_head "x" : Knockback = Total Knockback * zp_knockback_head Value

If victim is shoot in the chest and Value > 0.0
zp_knockback_chest "x" : Knockback = Total Knockback * zp_knockback_chest Value

_____________________________________________ _____________________________________________ ________________________

For more accurate knockback values I recommend using it along with this plugin which disables normal CS Knockback Engine

https://forums.alliedmods.net/showthread.php?t=149249

Sorry for the messed up aspect of the topic, if anyone wants to edit the topic for a better aspect is welcomed
Attached Files
File Type: sma Get Plugin or Get Source (zp50_knockback.sma - 948 views - 8.5 KB)

Last edited by Depresie; 04-15-2015 at 19:32.
Depresie is offline
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 04-15-2015 , 23:43   Re: [ZP 5.0]Advanced Knockback
Reply With Quote #2

Not bad, this will help the players that uses much the knockback..

Last edited by wicho; 04-15-2015 at 23:47.
wicho is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 04-16-2015 , 03:09   Re: [ZP 5.0]Advanced Knockback
Reply With Quote #3

Quote:
Originally Posted by wicho View Post
Not bad, this will help the players that uses much the knockback..
ZP is not fun without knockback, it was a strategy. The best part is knockback for M3 shotgun.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
Reply


Thread Tools
Display Modes

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 14:58.


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