cathook icon indicating copy to clipboard operation
cathook copied to clipboard

Autobackstab to butterknife low-health targets

Open SeasonalFerret opened this issue 6 years ago • 3 comments

Have autobackstab butterknife people (regardless if it's a backstab or not) if they're low enough to one-hit with butterknife.

Unless the user is using Your Eternal Reward or Wanga Prick, in which case a random bodystab would disadvantageous.

SeasonalFerret avatar Mar 28 '19 11:03 SeasonalFerret

To add on, don't butterknife with kunai if we have < 135HP. Could really benefit from that backstab.

SeasonalFerret avatar Mar 28 '19 11:03 SeasonalFerret

TODO: -~~Butterknife targets under 40hp~~(https://github.com/nullworks/cathook/commit/ae27d7008b23fa94f3631c8ba22c85e1ddd9ced6) -Don't butterknife with kunai if under 135hp (reason in comment above) -~~Don't butterknife with Your Eternal Reward / Wanga Prick~~ -~~Account for mini-crits (40hp -> 54hp)~~ -~~Account for piss-effected targets~~ -Account for crits (40hp -> 120)

SeasonalFerret avatar Jun 20 '19 06:06 SeasonalFerret

Alright so the kunai and the eternal reward actually have the same item definition id (I checked alliedmodders and they are different) but cathook keeps on saying its 40000, so I cant identify them, @BenCat07 told me to compare models which also fails by them both having the same model names:

Model: models/weapons/c_models/c_spy_arms.mdl

So you also cant identify them like that.

iraizo avatar Mar 30 '21 17:03 iraizo