View Single Post
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 06-28-2022 , 23:07   Re: How to detect a kill inside smoke?
Reply With Quote #10

Final Solution: Check if killer can see the victim using SBarState (m_izSBarState)

This check where player is aiming:

PHP Code:
if (Killer->m_izSBarState[SBAR_ID_TARGETTYPE] == 0)
{
    if (!
Killer->IsObserver())
    {
        
// Player Killed without see the target
                // Detect if is killer is blind, has a wall behind killer and victim and SMOKE visibility.
    
}

Ps. I'm using ReGameDLL_CS, soo:

player.cpp#L7768
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 06-28-2022 at 23:11.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY