Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to change TimeBased Damages/Duration (Paralyze, Poison, Radiation, Acid...) #906

Open
RauliTop opened this issue Apr 8, 2022 · 0 comments

Comments

@RauliTop
Copy link
Contributor

RauliTop commented Apr 8, 2022

Hardcoded values:

rehlds/rehlds/dlls/cbase.h

Lines 627 to 648 in 6a916d7

// NOTE: tweak these values based on gameplay feedback:
#define PARALYZE_DURATION 2 // number of 2 second intervals to take damage
#define PARALYZE_DAMAGE 1.0 // damage to take each 2 second interval
#define NERVEGAS_DURATION 2
#define NERVEGAS_DAMAGE 5.0
#define POISON_DURATION 5
#define POISON_DAMAGE 2.0
#define RADIATION_DURATION 2
#define RADIATION_DAMAGE 1.0
#define ACID_DURATION 2
#define ACID_DAMAGE 5.0
#define SLOWBURN_DURATION 2
#define SLOWBURN_DAMAGE 1.0
#define SLOWFREEZE_DURATION 2
#define SLOWFREEZE_DAMAGE 1.0

Can be added an option to edit him easily through plugins using ReAPI?
I don't know how to do it, probably some "expert" has the best option.

Currently, duration can be changed using 'm_rgbTimeBasedDamage' offset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant