nmrih / source-game

Bugs and issues reporting for NMRiH1
http://store.steampowered.com/app/224260
57 stars 25 forks source link

[Feature Request] item_reload like weapon_reload #1303

Open MAGISTER-PD2OR opened 2 years ago

MAGISTER-PD2OR commented 2 years ago

Hello, need game event for sourcemod plugins. Not works weapon_reload for items when for example try use medkit or bandage.

Example for new feature. :)

"item_reload" { "player_id" "short" "item_classname" "string" }

dysphie commented 2 years ago

You can check the player's active weapon sequence to detect this. Check these examples: https://github.com/dysphie/nmrih-team-healing/blob/main/scripting/nmrih-team-healing.sp#L903 https://github.com/dysphie/nmrih-better-tools/blob/main/scripting/nmrih-bettertools.sp#L178