AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Metamod:Source Plugins (https://forums.alliedmods.net/forumdisplay.php?f=76)
-   -   [L4D2] Pounce Damage Uncap (https://forums.alliedmods.net/showthread.php?t=182628)

ProdigySim 04-11-2012 22:44

[L4D2] Pounce Damage Uncap
 
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

ProdigySim 04-11-2012 22:51

Re: [L4D2] Pounce Damage Uncap
 
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 04-12-2012 03:06

Re: [L4D2] Pounce Damage Uncap
 
Created an updated version of the PounceUncap plugin that works properly with L4D2.

http://forums.alliedmods.net/showthr...67#post1687167

mcpan313 04-13-2012 09:07

Re: [L4D2] Pounce Damage Uncap
 
GJ! :3

RavenDan29 06-02-2013 06:44

Re: [L4D2] Pounce Damage Uncap
 
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?

eric0279 07-06-2013 17:07

Re: [L4D2] Pounce Damage Uncap
 
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

bilago 07-07-2013 13:55

Re: [L4D2] Pounce Damage Uncap
 
Plugin is not functioning for me as well after latest patch

RavenDan29 07-08-2013 07:40

Re: [L4D2] Pounce Damage Uncap
 
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

blaquicat 07-16-2013 20:51

Re: [L4D2] Pounce Damage Uncap
 
Here too, failed to load..
MM 1.8.7
SM 1.5.0-dev+3855

ProdigySim 07-21-2013 20:30

Re: [L4D2] Pounce Damage Uncap
 
Version 1.1 is out that works with latest MM:S and L4D2 updates (v2125+)

https://github.com/ProdigySim/Pounce...eases/tag/v1.1


All times are GMT -4. The time now is 23:11.

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