Skip to content

Hooks into TF2's slightly extended OnTakeDamage function.

License

Notifications You must be signed in to change notification settings

nosoop/SM-TFOnTakeDamage

Repository files navigation

TF2 OnTakeDamage Hooks

A SourceMod plugin to hook into TF2's slightly extended OnTakeDamage functions.

SDKHooks supports hooking OnTakeDamage. While the damagetype parameter supports determining the existence of critical-like damage with DMG_CRIT, there is no way to differentiate nor manipulate the particular crit type that is applied.

This plugin is a proof-of-concept to allow a specific type of crit to be applied, or to remove it entirely. It's a bit hacky, but it'll do for now.

Building

This project is configured for building via Ninja; see BUILD.md for detailed instructions on how to build it.

If you'd like to use the build system for your own projects, the template is available here.

For this particular project, you will also need the chevron and dissect packages. You can install those using pip install -r build-py-requirements.txt. Further build-specific details are located at the end of BUILD.md.

About

Hooks into TF2's slightly extended OnTakeDamage function.

Resources

License

Stars

Watchers

Forks

Packages

No packages published