Raised This Month: $7 Target: $400
 1% 

[L4D2] Pounce Damage Uncap


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ProdigySim
SourceMod Plugin Approver
Join Date: Feb 2010
Old 04-11-2012 , 22:44   [L4D2] Pounce Damage Uncap
Reply With Quote #1

Pounce Damage Uncap
This plugin recreates for l4d2 2 cvars available in l4d1. z_pounce_damage_range_max/min.

Maybe not the most accurate name, since this does nothing on its own relative to the cap on pounce damage.

CVars
z_pounce_damage_range_min - The minimum distance for a pounce to be given more than 1 damage.
z_pounce_damage_range_max - The distance at which a pounce is worth its maximum (1+z_hunter_max_pounce_bonus_damage)


Installation
Place the contents of the zip/tar in left4dead2/addons/

Background
Hunter pounce damage is essentially calculated as follows:
PHP Code:
float CalculatePounceDamage(float pounce_distance)
{
    
float min_dist z_pounce_damage_range_min.GetFloat();
    
float max_dist z_pounce_damage_range_max.GetFloat();
    
float max_damage z_hunter_max_pounce_bonus_damage.GetFloat();

    if(
pounce_distance <= min_dist) return 1.0;

    if(
pounce_distance >= max_dist) return 1.0 max_damage;

    return 
1.0 + (max_damage * (pounce_distance min_dist) / (max_dist min_dist));

Basically, this means that pounce damage scales linearly with z_pounce_damage_range_min/max as endpoints (min: 1 damage, max 1+z_hunter_max_pounce_bonus_damage).
However, in L4D2, there is no CVar control of the min_dist and max_dist. This plugin adds those two cvars.

The default values for these cvars are as follows:
z_pounce_damage_range_min: 300.0 (500 in l4d1)
z_pounce_damage_range_max: 1000.0 (same in l4d1)

So, if I pounce someone from 650 units away, I'll do 1 + (24 * 350 / 700) = 13 damage.
If I want to double the pounce damage limit, but keep the same scaling on l4d2, I'd set:

Code:
z_hunter_max_pounce_bonus_damage 49
z_pounce_damage_range_min 300 // same start point
z_pounce_damage_range_max 1729.1666 // ((49 / 24) * 700) + 300
While you might not want to calculate these vars yourself, a plugin like this one can now be adapted for L4D2.

TODO
- Either update a plugin or build in functionality for slope-locked max damage scaling.
- Gamedata perhaps

Changelog
1.0 Initial release.
1.1 Fixed for v2.1.2.5

Source code
The program is GPL v3.
https://github.com/ProdigySim/Pounce-Damage-Uncap

Grab the latest release from here:
https://github.com/ProdigySim/Pounce...Uncap/releases

Last edited by ProdigySim; 07-21-2013 at 20:30.
ProdigySim is offline
ProdigySim
SourceMod Plugin Approver
Join Date: Feb 2010
Old 04-11-2012 , 22:51   Re: [L4D2] Pounce Damage Uncap
Reply With Quote #2

Some other useful settings in case you want an out-of-box solution for pounce damage uncap:

Max Pounce Damage 30:
Code:
z_hunter_max_pounce_bonus_damage 29
z_pounce_damage_range_min 300
z_pounce_damage_range_max 1145.833
Max Pounce Damage 75:
Code:
z_hunter_max_pounce_bonus_damage 74
z_pounce_damage_range_min 300
z_pounce_damage_range_max 2458.333
Max Pounce Damage 100:
Code:
z_hunter_max_pounce_bonus_damage 99
z_pounce_damage_range_min 300
z_pounce_damage_range_max 3187.5
Max Pounce Damage 200:
Code:
z_hunter_max_pounce_bonus_damage 199
z_pounce_damage_range_min 300
z_pounce_damage_range_max 6104.167
ProdigySim is offline
ProdigySim
SourceMod Plugin Approver
Join Date: Feb 2010
Old 04-12-2012 , 03:06   Re: [L4D2] Pounce Damage Uncap
Reply With Quote #3

Created an updated version of the PounceUncap plugin that works properly with L4D2.

http://forums.alliedmods.net/showthr...67#post1687167
ProdigySim is offline
mcpan313
Senior Member
Join Date: Mar 2010
Old 04-13-2012 , 09:07   Re: [L4D2] Pounce Damage Uncap
Reply With Quote #4

GJ!
__________________
sorry, for my poor english.
mcpan313 is offline
Send a message via MSN to mcpan313
RavenDan29
Veteran Member
Join Date: Sep 2009
Old 06-02-2013 , 06:44   Re: [L4D2] Pounce Damage Uncap
Reply With Quote #5

hmmm have I done this right I now have a folder called Release.left4dead2 in my addons folder hows it goner point to the file from there?
__________________
RavenDan29 is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 07-06-2013 , 17:07   Re: [L4D2] Pounce Damage Uncap
Reply With Quote #6

Hello,

Quote:
L 07/06/2013 - 20:19:27: [META] Failed to load plugin addons/pounce_damage_uncap: /lib32/libm.so.6: version `GLIBC_2.15' not found (required by bin/libvstdlib.so)
MetaMod:Source v1.10.0-devV

SourceMod v1.5.0-dev+3849

Last edited by eric0279; 07-06-2013 at 20:24.
eric0279 is offline
bilago
Junior Member
Join Date: Jul 2013
Old 07-07-2013 , 13:55   Re: [L4D2] Pounce Damage Uncap
Reply With Quote #7

Plugin is not functioning for me as well after latest patch
bilago is offline
RavenDan29
Veteran Member
Join Date: Sep 2009
Old 07-08-2013 , 07:40   Re: [L4D2] Pounce Damage Uncap
Reply With Quote #8

Subscribed needs updateing to match the steampipe update

[SM] Unable to find cvar: z_pounce_damage_range_min
[SM] Unable to find cvar: z_pounce_damage_range_max
__________________
RavenDan29 is offline
blaquicat
Member
Join Date: Aug 2009
Old 07-16-2013 , 20:51   Re: [L4D2] Pounce Damage Uncap
Reply With Quote #9

Here too, failed to load..
MM 1.8.7
SM 1.5.0-dev+3855
blaquicat is offline
ProdigySim
SourceMod Plugin Approver
Join Date: Feb 2010
Old 07-21-2013 , 20:30   Re: [L4D2] Pounce Damage Uncap
Reply With Quote #10

Version 1.1 is out that works with latest MM:S and L4D2 updates (v2125+)

https://github.com/ProdigySim/Pounce...eases/tag/v1.1
ProdigySim 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 07:21.


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