Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Other Semi-Popular First Person Shooter Hacks › All Points Bulletin Reloaded Hacks › Proper Visible Checks

Thumbs upProper Visible Checks

Posts 1–7 of 7 · Page 1 of 1
GO
gokhanw
Proper Visible Checks
Hi guys

well, since i dont play this game anymore, here is my visible check function.

Code:
BOOL IsVisible(APawn *Target, FVector *start, FVector *end, BOOL *bOutIsLeaning)
{    
    BOOL bFence = FALSE;
    BOOL bNullObject = FALSE;
    BOOL bLeaning = FALSE;
    APawn *RetPawn;

    if(g_pPC != NULL && Target != NULL && start != NULL && end != NULL)
    {
        RetPawn    = (APawn *)g_pPC->Trace(*end, *start, 1, vExtent, 0, &HitLocation1, &HitNormal, &HitInfo1);

        if(HitInfo1.Material != NULL)
        {
            if(strstr(HitInfo1.Material->GetFullName(), "Fence"))
            {
                RetPawn    = (APawn *)Target->Trace(*start, *end, 1, vExtent, 0, &HitLocation2, &HitNormal, &HitInfo2);

                if(HitInfo2.Material != NULL)
                {
                    if(strstr(HitInfo2.Material->GetFullName(), "Fence")) 
                    {
                        if(!strcmp(HitInfo2.Material->GetFullName(), HitInfo1.Material->GetFullName()))
                            bFence = TRUE;
                    }
                }
            }
        }

        if(HitInfo1.Material == NULL)
        {
            if(RetPawn != NULL && !RetPawn->IsA(AVehicle::StaticClass()))
            {
                RetPawn    = (APawn *)Target->Trace(*start, *end, 1, vExtent, 0, &HitLocation2, &HitNormal, &HitInfo2);

                if(HitInfo2.Material == NULL) 
                    bNullObject = TRUE;    
            }

            if(RetPawn != NULL)
            {
                if(Target->IsA(AcAPBPawn::StaticClass()))
                {
                    AcAPBPawn *APBPawn = (AcAPBPawn *)Target;

                    if(APBPawn->m_VehicleUseData.m_bLeaningOut)
                    {
                        *bOutIsLeaning = TRUE;
                        bLeaning = TRUE;
                    }
                }
            }
            
        }
        
        

        return (Target == RetPawn || bNullObject || bFence || bLeaning);
    }

    return 0;
}

Because as you could see by using only Trace or SingleLineCheck there were some circumstances where the target wasnt visible although you could shoot at him. It's not perfect but it worked really good. Have fun.



Credits:
LowHertz
#1 · edited 14y ago · 14y ago
Gruzas777
Gruzas777
trolling in the deep..
#2 · 14y ago
bullpop
bullpop
it's quite funny, first he says: here is my visible check function, then randomly:

Credits:
LowHertz
#3 · 14y ago
KA
kabusof
very thank you man

but very perfect
#4 · edited 14y ago · 14y ago
RA
RAWR(:
@Blue
Fix kabusofs double post.


And does anybody know if this is patched yet?
#5 · 14y ago
Furial
Furial
Really old source codes...
#6 · 14y ago
BO
bob10
How do i use a source code?
#7 · 14y ago
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

  • Someone can tell me how to do a visibility check?By Neokil in Call of Duty Modern Warfare 2 Coding / Programming / Source Code
    1Last post 15y ago
  • Lol check out my crappy sigBy Severed in Art & Graphic Design
    1Last post 20y ago
  • Guys check this outBy kvmn8 in General
    13Last post 20y ago
  • Omg Omg Omg Check This!!By The_Enigma in General
    15Last post 20y ago

Tags for this Thread

None