+ Reply to Thread
Results 1 to 15 of 15

  Click here to go to the first staff post in this thread.   Thread: No Flash, No Smoke, No Scope without materials

  1. #1
    Join Date
    Jan 2005
    Posts
    1,044
    Thanks
    0
    Thanked 1 Time in 1 Post
    Rep Power
    112

    No Flash, No Smoke, No Scope without materials

    I hate the material system so here

    PHP Code:
        if( !g_pClientMode )
        {
            
    DWORD dwCHLModeManagerInit gApp.FindPattern(
                (
    DWORD)GetModuleHandle("client.dll"),
                
    0x1E0000,
                
    "\xC7\x05\x08\x8E\x3F\x24\x54\x8F\x3F\x24\xE8\x31\x46\xF4\xFF\x8B\x10\x68\xAC\x70\x33\x24\x8B\xC8\xFF\x12\xC3\xCC\xCC\xCC\xCC\xCC",
                
    "xx????????x????xxx????xxxxxxxxxx" );

            
    LOG_VARIABLEdwCHLModeManagerInit );

            if( 
    dwCHLModeManagerInit )
            {
                
    DWORD *dwClientModeNormal = (DWORD *)( dwCHLModeManagerInit 0x6 );

                
    g_pClientMode = (IClientMode *)*dwClientModeNormal;

                
    LOG_OFFSETg_pClientMode );
            }
        } 
    now u can do stuff like

    PHP Code:
    void __stdcall nSceneBeginvoid )
    {
        
    C_BaseEntity *pLocal g_Players.GetLocalBaseEntity();

        if( 
    pLocal )
        {
            if( 
    g_Cvar.GetBoolean"flash" ) )
            {
                
    float *flFlashMaxAlpha = (float *)((DWORD)pLocal 0xFD4);
                
    float *flFlashDuration = (float *)((DWORD)pLocal 0xFD8);

                *
    flFlashMaxAlpha 0;
                *
    flFlashDuration 0;
            }

            

            if( 
    g_pClientMode && (*(int *)((DWORD)pLocal 0x87) == LIFE_ALIVE) )
            {
                if( 
    g_pClientMode->GetViewport() )
                {
                    if( 
    g_Cvar.GetBoolean"scope" ) )
                    {
                        
    vgui::Panel *scope g_pClientMode->GetViewport()->FindChildByName"HudZoom" );

                        if( 
    scope )
                        {
                            
    scope->SetVisibleg_Cvar.GetBoolean"scope" ) );
                        }
                    }
                }
            }
        }

        
    gRenderView.SceneBegin();
    }

    bool __stdcall nShouldDrawParticles( )
    {
        if( 
    g_Cvar.GetBoolean"smoke" ) )
            return 
    false;

        return 
    gClientMode.ShouldDrawParticles();
    }

    bool __stdcall nShouldDrawFog()
    {
        if( 
    g_Cvar.GetBoolean"smoke" ) )
            return 
    false;

        return 
    gClientMode.ShouldDrawFog();

    If you hook ShouldDrawParticles and return, you won't be able to see most particles (i.e. muzzle flash, fire displays fine) this can be fixed by _ReturnAddress

    bonus points if you can IClientMode without FindPattern

    Credits: wav (for flash crap), HL2 SDK
    Last edited by s0beit; 05-14-2009 at 09:29 AM.
    < this person is absent at the moment, please direct your call elsewhere >

  2. #2
    Join Date
    Nov 2007
    Location
    Great Britain
    Posts
    338
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Blog Entries
    1
    Rep Power
    48

    Re: No Flash, No Smoke, No Scope without materials

    TANKS!

  3. #3
    Join Date
    Jul 2005
    Posts
    430
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    79

    Re: No Flash, No Smoke, No Scope without materials

    Quote Originally Posted by Deceptor View Post
    TANKS!
    What kind? Tiger?! Leopard?! Abrams?! Mirage?! Tesla?! Chrono?! etc.
    Quote Originally Posted by Str8Soilder View Post
    Sorry for my english Im Black

  4. #4
    Join Date
    Jun 2004
    Location
    The Moon
    Posts
    2,977
    Thanks
    0
    Thanked 64 Times in 41 Posts
    Rep Power
    192

    Re: No Flash, No Smoke, No Scope without materials

    check the netstream for dsp_player and clear it out to remove the ringing :/

    ([oC]Streetmedic): wav hate my guts
    ([oC]Streetmedic): i swear he shadowz me
    (Absolution): its true
    (Absolution): actually
    P47R!CK says:
    you are no good for me
    [gØt]wäv? says:
    wrong
    i am good for you
    [gØt]wäv? says:
    and you know it

  5. #5
    Join Date
    Sep 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: No Flash, No Smoke, No Scope without materials

    Good job, thanks. But for me, the game crashes after calling FindChildByName (or any other function of the vgui::Panel object got by GetViewPort). Does that work for you others?

  6. #6
    Join Date
    Nov 2007
    Location
    Great Britain
    Posts
    338
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Blog Entries
    1
    Rep Power
    48

    Re: No Flash, No Smoke, No Scope without materials

    Quote Originally Posted by MyZt View Post
    What kind? Tiger?! Leopard?! Abrams?! Mirage?! Tesla?! Chrono?! etc.
    I'll take the Chrono one's plox!

  7. #7
    Join Date
    Sep 2008
    Posts
    180
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: No Flash, No Smoke, No Scope without materials

    Quote Originally Posted by s0beit View Post
    I hate the material system so here
    offtopic
    why?

  8. #8
    Join Date
    Nov 2006
    Posts
    557
    Thanks
    108
    Thanked 11 Times in 7 Posts
    Rep Power
    65

    Re: No Flash, No Smoke, No Scope without materials

    nice way to proceed.
    Quote Originally Posted by Sun Tzu
    Be extremely subtle, even to the point of formlessness.
    Be extremely mysterious, even to the point of soundlessness.
    Thereby you can be the director of the opponent's fate.


  9. #9
    Join Date
    Jul 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: No Flash, No Smoke, No Scope without materials

    THANKS sobiet nice release bro

  10. #10
    Join Date
    Aug 2009
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: No Flash, No Smoke, No Scope without materials

    Quote Originally Posted by MyZt View Post
    What kind? Tiger?! Leopard?! Abrams?! Mirage?! Tesla?! Chrono?! etc.
    I bet you think you're cool


    btw s0beit, gj.

    I was going to attempt shit like this. And then i saw it.

    Lol.

    But then again, the first time I saw d3d, it looked equal to this, so idk, maybe some day ;D

  11. #11
    Join Date
    Jul 2005
    Posts
    430
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    79

    Re: No Flash, No Smoke, No Scope without materials

    Quote Originally Posted by Tate View Post
    I bet you think you're cool
    I'm not just cool, I'm fucking awesome.
    Quote Originally Posted by Str8Soilder View Post
    Sorry for my english Im Black

  12. #12
    Join Date
    Nov 2002
    Location
    Vault 13
    Posts
    2,235
    Thanks
    0
    Thanked 10 Times in 7 Posts
    Rep Power
    5

    Re: No Flash, No Smoke, No Scope without materials

    Everyone knows apocalypse tanks are the best, also good for air defense.

    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
    The last hurrah? Nah! I'd do it again
    The Rascal King behind the bars
    Or the one in front of them

  13. #13
    Join Date
    Apr 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: No Flash, No Smoke, No Scope without materials

    i just will to test id works?

  14. #14
    Join Date
    Sep 2008
    Location
    USA
    Posts
    573
    Thanks
    62
    Thanked 22 Times in 18 Posts
    Blog Entries
    1
    Rep Power
    45

    Re: No Flash, No Smoke, No Scope without materials

    Quote Originally Posted by Pr View Post
    i just will to test id works?
    Yes, this code works
    how can i use this code? Will I must compiling it?

  15. #15
    Join Date
    Aug 2009
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: No Flash, No Smoke, No Scope without materials

    Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Flash/Smoke Removal without hooking
    By Pancho Villa in forum Public Releases
    Replies: 21
    Last Post: 07-30-2006, 08:29 AM
  2. flash & smoke removals.
    By rhtqK in forum Beginner
    Replies: 11
    Last Post: 02-28-2005, 10:36 AM
  3. Request: Flash/Smoke removal
    By Xenoc1de in forum DirectX/D3D
    Replies: 6
    Last Post: 11-03-2004, 11:45 AM
  4. help with HE, smoke, and flash
    By FxK in forum Beginner
    Replies: 5
    Last Post: 07-06-2004, 07:44 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts