AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Subplugin Submission [ZP 5.0]Advanced Knockback (https://forums.alliedmods.net/showthread.php?t=261578)

Depresie 04-15-2015 19:20

[ZP 5.0]Advanced Knockback
 
1 Attachment(s)
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

wicho 04-15-2015 23:43

Re: [ZP 5.0]Advanced Knockback
 
Not bad, this will help the players that uses much the knockback..

yokomo 04-16-2015 03:09

Re: [ZP 5.0]Advanced Knockback
 
Quote:

Originally Posted by wicho (Post 2286787)
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.


All times are GMT -4. The time now is 14:58.

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