View Single Post
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 06-25-2022 , 01:02   Re: How to detect a kill inside smoke?
Reply With Quote #6

Following shadow's advice will definitely help. I have a hacky way to detect players inside the smoke to block the "enemy: X" hud message. Basically I did what he said:

Check smokes around you. Get it's origin point. Check if you are closer enough (guess the radius is 115.0, you can make it up to 150-180 maybe), which will define whether you are inside of the smoke. This will be the first solution to detect kills inside the smoke (maybe both players inside the smoke, or even killing players in the distance, while YOU are inside the smoke).

You can use the same way to detect whether the victim is inside the smoke, so even if you are not inside the smoke, but the victim is, there's another solution to detect a kill through smoke as well.
-
Last solution we'll need to find out is to how to detect a kill when both players are far away from the smoke, but the aim was through the smoke still.
Maybe making a traceline each 10-15 units, checking if there's any smoke around the origin of the trace?
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 06-25-2022 at 01:38.
EFFx is offline