Target5150 / MoYu_Server_Stupid_Plugins

L4D2 Target Cat Project
GNU General Public License v3.0
85 stars 21 forks source link

Pause and healing with medkit #9

Closed lunatixxx closed 2 years ago

lunatixxx commented 2 years ago

Is it possible to delay a pause if a survivor is using a medkit ? The same way that reviving.

jensewe commented 2 years ago

Should be possible. You can check this function, and here are some defines of the values.

Perhaps just need to add a check parallel to the revive check in pause plugin: L4D2_GetPlayerUseAction(client) == L4D2UseAction_Healing

See if this can help.

lunatixxx commented 2 years ago

Any news did you try it?

jensewe commented 2 years ago

No as it is not planned and not gonna be a topic in competitive rework, but the method introduced above believed to work as expected. Well the version here is not even up to date with the one in competitive rework. Gonna take some time but guess what I'm so lazy.

If you're willing to make it into use, it's easy to compile a modified one yourself, by:

https://github.com/SirPlease/L4D2-Competitive-Rework/blob/53f79e892d5fdbf70564b2cbf199efb6d4e8b889/addons/sourcemod/scripting/pause.sp#L936 place || L4D2_GetPlayerUseAction(client) == L4D2UseAction_Healing after the "0".