Results 1 to 3 of 3
  1. #1
    jokjok123's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Posts
    198
    Reputation
    10
    Thanks
    108

    Exclamation Footstep ESP Problem!!!

    FootStep ESP keeps crashing. What am i doing wrong!

    I think this line is the problem
    Code:
    if (strstr(pEmitSoundParams->pSample, "player/footsteps") == NULL && strstr(pEmitSoundParams->pSample, "player/land") == NULL)
    		return;
    But i dont really know what makes it keep crashing.

    Code:
    long GetEpochTime()
    {
    	auto duration = std::chrono::system_clock::now().time_since_epoch();
    
    	return std::chrono::duration_cast<std::chrono::milliseconds>(duration).count();
    }
    
    typedef struct D3DXVECTOR3 {
    	FLOAT x;
    	FLOAT y;
    	FLOAT z;
    } D3DXVECTOR3, *LPD3DXVECTOR3;
    
    
    class EmitSound_params_from_ESP
    {
    public:
    	char _0x0000[8];
    	__int32 iEntIndex; //0x0008 
    	__int32 iChannel; //0x000C 
    	char _0x0010[8];
    	char* pSample; //0x0018 
    	float flVolume; //0x001C 
    	__int32 iSoundlevel; //0x0020 
    	__int32 iFlags; //0x0024 
    	__int32 iPitch; //0x0028 
    	__int32 iSpecialDSP; //0x002C 
    	D3DXVECTOR3* pOrigin; //0x0030 
    	D3DXVECTOR3* pDirection; //0x0034 
    	__int32 pUtlVecOrigins; //0x0038 CUtlVector< Vector >*
    	BYTE bUpdatePositions; //0x003C 
    	char _0x003D[3];
    	float soundtime; //0x0040 zero in my case
    	__int32 speakerentity; //0x0044 
    
    };//Size=0x0048
    
    EmitSound_params_from_ESP* pEmitSoundParams = NULL;
    
    struct Footstep
    {
    	long expiration;
    	int entityId;
    	Vector position;
    };
    
    std::vector<Footstep> footsteps;
    
    void StepESP(int iEntIndex, const char *pSample)
    {
    	if (strstr(pEmitSoundParams->pSample, "player/footsteps") == NULL && strstr(pEmitSoundParams->pSample, "player/land") == NULL)
    		return;
    
    		Console::Log("footstep found");
    
    		Footstep footstep;
    		footstep.entityId = pEmitSoundParams->iEntIndex;
    		footstep.position = Altern::EntList->GetClientEntity(pEmitSoundParams->iEntIndex)->GetOrigin();
    
    		footstep.expiration = GetEpochTime() + 1000;
    
    		Console::Log("Footstep esp");
    		footsteps.pushback(footstep);
    }
    Last edited by jokjok123; 06-26-2017 at 09:29 AM.

  2. #2
    certmemer's Avatar
    Join Date
    Feb 2016
    Gender
    female
    Location
    Southampton
    Posts
    2,511
    Reputation
    104
    Thanks
    25,994
    nice hook youve got there
    my steam acc: click
    donate me a few cents: click

  3. #3
    affe2626's Avatar
    Join Date
    Apr 2015
    Gender
    male
    Location
    Sweden
    Posts
    552
    Reputation
    146
    Thanks
    151
    My Mood
    Angelic
    I have never done this but
    Code:
    EmitSound_params_from_ESP* pEmitSoundParams = NULL;
    Where do you set pEmitSoundParams? Also, shouldn't you have it hooked somewhere like PlaySound? You need to show more code or we won't know what the f**k you're doing. (PlaySound may be entirely wrong, I have no idea how sounds work in CS:GO.)

    Always PM me when trading, I've been hacked on my Skype previously
    [img]https://**********.com/addskype/affe2626.png[/img]

Similar Threads

  1. [Help] ESP Problems
    By affe2626 in forum Counter-Strike 2 Coding & Resources
    Replies: 7
    Last Post: 04-01-2017, 10:18 AM
  2. [Help] Glow esp problem
    By Leyumm in forum Counter-Strike 2 Coding & Resources
    Replies: 0
    Last Post: 12-17-2016, 12:48 PM
  3. Esp Problem
    By Majestic98 in forum WarZ Discussion
    Replies: 0
    Last Post: 02-08-2015, 07:35 PM
  4. Insurgency ESP problems (SOURCE)
    By sle7in in forum Steam Games Hacks & Cheats
    Replies: 7
    Last Post: 05-06-2014, 02:34 PM
  5. [Help]Koens BFBC2 ESP Problems
    By EarthPig09 in forum Battlefield Bad Company 2 (BFBC2) Hacks
    Replies: 13
    Last Post: 04-12-2010, 07:28 AM