View Single Post
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-08-2024 , 22:15   Re: Detect weapon hits an entity (all entities not on clients only)
Reply With Quote #2

You can do by hook OnTakeDamage to entity, and check is attacker player.

To get entities, there is SDKHooks https://sm.alliedmods.net/new-api/sd...nEntityCreated
Hook first with SDKHook_SpawnPost.
Then hook spawned entity with OnTakeDamage
__________________
Do not Private Message @me
Bacardi is offline