shavitush / bhoptimer

A bunnyhop timer plugin for Counter-Strike: Source, Counter-Strike: Global Offensive and Team Fortress 2.
https://timer.shav.it
GNU General Public License v3.0
230 stars 94 forks source link

Godmode fix for DMG_CRUSH and point_hurt #1188

Closed azalty closed 1 year ago

azalty commented 1 year ago

Fixes DMG_CRUSH (by moving/falling objects for example (with cs_enable_player_physics_box 1))

Handles correctly damage dealt by point_hurt entities (see https://developer.valvesoftware.com/wiki/Point_hurt)

~~IMPORTANT: shavit_misc_godmode 1 will now block damage dealt by ALL entities that aren't players, instead of only 0 (world). If you don't want to make it like that, please tell me.~~ -- Added shavit_misc_godmode 4 for that

rtldg commented 1 year ago

Can you split these into two separate cvar values (4 & 5)?

azalty commented 1 year ago

For the world/fall damage also preventing damage from entities I understand, but what would be the other option?

rtldg commented 1 year ago

Oh yeah I guess the thing for case 2 doesn't really need to be split out.

azalty commented 1 year ago

This should do, I hope I didn't miss anything and didn't create any error. Didn't try to compile the plugin.

azalty commented 1 year ago

Didn't know default had to be in last position. It's apparently not the case in other languages so I thought it would be the same here

ty for merging

rtldg commented 1 year ago

yeah it's a sourcepawn quirk that I forgot about too that thankfully the workflow threw an error for