[0.3DL] Need Function - Sobeit

Tsushima

Member
Joined
Jan 21, 2022
Messages
5
Reaction score
0
Location
Israel
The silent aimbot I use can also kill players from behind walls. What should I do to prevent this from happening? I would appreciate it if you could provide a code sample or instructions on how to do it.
 

dphome

Well-known member
Joined
Mar 21, 2020
Messages
475
Solutions
9
Reaction score
168
Location
Poland
PHP:
                if (OLCheats->bVisibleFilter)
                {
                    // get the camera
                    CCamera *pCamera = pGame->GetCamera();

                    // grab the active cam
                    CCamSAInterface *pCam = (CCamSAInterface *)((CCamSA *)pCamera->GetCam(pCamera->GetActiveCam()))->GetInterface();
                    CVector src = pCam->Source;


                    bool IsPlayerVisible = pGame->GetWorld()->IsLineOfSightClear(&src, &pSpinePos, true, false, false, true, true, false, false);

                    if (!IsPlayerVisible)
                        return -1;
                }
 

CheatersRevenge

Active member
Joined
Dec 21, 2021
Messages
71
Reaction score
22
Location
World
PHP:
                if (OLCheats->bVisibleFilter)
                {
                    // get the camera
                    CCamera *pCamera = pGame->GetCamera();

                    // grab the active cam
                    CCamSAInterface *pCam = (CCamSAInterface *)((CCamSA *)pCamera->GetCam(pCamera->GetActiveCam()))->GetInterface();
                    CVector src = pCam->Source;


                    bool IsPlayerVisible = pGame->GetWorld()->IsLineOfSightClear(&src, &pSpinePos, true, false, false, true, true, false, false);

                    if (!IsPlayerVisible)
                        return -1;
                }
eah, this must be there in his source code, well.
 

Tsushima

Member
Joined
Jan 21, 2022
Messages
5
Reaction score
0
Location
Israel
PHP:
                if (OLCheats->bVisibleFilter)
                {
                    // get the camera
                    CCamera *pCamera = pGame->GetCamera();

                    // grab the active cam
                    CCamSAInterface *pCam = (CCamSAInterface *)((CCamSA *)pCamera->GetCam(pCamera->GetActiveCam()))->GetInterface();
                    CVector src = pCam->Source;


                    bool IsPlayerVisible = pGame->GetWorld()->IsLineOfSightClear(&src, &pSpinePos, true, false, false, true, true, false, false);

                    if (!IsPlayerVisible)
                        return -1;
                }
Thanks for help, but i have one question.
C++:
if (!IsPlayerVisible)
{
    return -1;
}

if (!IsPlayerVisible)
{
    return 1;
}

if (!IsPlayerVisible)
{
    return false;
}
Can you explain the difference between these three codes?
 

SobFoX

Expert
Joined
Jul 14, 2015
Messages
1,463
Solutions
5
Reaction score
916
Location
Israel
The first code returns your ability level, the second code returns the amount of cells in your brain, the third code returns you(Also a way to understand code )
 
Top