Quote:
Originally Posted by MasterMind420
in my experience trying to settransmit glows on clients has failed...i've heard from the grapevine there's a way but never figured it out, nor have i found anything on allied modders as how to do it.
|
Thanks, settransmit helped alot
Quote:
Originally Posted by Neuro Toxin
|
I was looking through the glow plugins on alliedmodders and I managed to get this far, but as I'm a noob coder, I'm currently having some troubles with determining how to check if the player was the one dealing the damage. Here are the snippets from my code:
https://paste.ofcode.org/RZRDe6k8sw2hEcfxQD4BgM
Any suggestions on how I could produce the callback function for SDKHook that checks if the player was the one doing the damage (== if the glow should be transmitted to the player being checked)?
Can I somehow create a glows_caused list (entry deleted with a timer or in player_death event) for the iAttacker client that references the unique entities (glows) that a player has created by dealing damage, so I can check if a player is the one who caused that exact glow? If yes, how can i check if the hooked entity is found in a players glows_caused list? Does the SDKHook give me something unique about the entity I can check against?
Is there a more simple way of doing this? This is getting way over my head and skill-level
TLDR explanation of what I want from the plugin;
Player that takes damage shows a glow effect for the player dealing the damage. Only the player dealing the damage will see the glow, and the glow is removed after a timer runs out / playerdeath event.