silbinarywolf / sw-zombie-fortress

A VScript mod that aims to be a faithful reimplementation of the Zombie Fortress mode made originally with SourceMod
Other
0 stars 0 forks source link

add crit bonuses for zombies and survivors #12

Closed silbinarywolf closed 1 year ago

silbinarywolf commented 1 year ago

The original mod had crit bonuses by tracking a few variables and hooking the critical hit function in Sourcemod. In VScript we don't have such a hook so reimplementing this feature exactly as it was might be impossible.

If we can do this, it'll be something like adding an attribute to the player that scales critical hit chance or something.

silbinarywolf commented 1 year ago

I missed that there's literally a hook to do this: OnScriptHook_OnTakeDamage. This should be easy now. Will likely get this in for v0.3.0

silbinarywolf commented 1 year ago

Released in https://github.com/silbinarywolf/sw-zombie-fortress/releases/tag/v0.3.0