Home AgeRage.net Forum Cheats News Hosting Shop About Links


Links
shop

download

facebook
Go Back   AgeRage.net Forum > ..::The Coding House::.. > Newbies Help > Tutorials Room


Thread: [CS1.6] Chams
Tutorials Room Read our excellent tutorials and be an expert!

Reply

 
LinkBack Thread Tools


  #1 (permalink)  
Join Date: 17 Mar 2006
Location: AgeRage.net Cosmos
Posts: 6
gemini's Avatar
Old 30-05-2006, 19:20
gemini gemini is offline
Recruited Rager
[CS1.6] Chams

Chams for CS1.6
I hope you like

the concept:
Quote:
hook StudioRenderModel
check for a valid entity ( not only player models are drawn here )
call glDepthFunc with GL_GREATER
apply your changes for the model part which is not visible
call StudioRenderFinal
call glDepthFunc with GL_LESS
apply your changes for the model part which is visible
call StudioRenderFinal
don't call the original StudioRenderModel func
Here are some screenshots with various styles: (like wireframe,glowshell,blending)

hxxp://gemini.ge.ohost.de/CS16_Chams/

I prefer green & red glowshells

and 2 code examples:
Wireframe Chams
PHP Code:
NAKED_VOID xStudioRenderModelvoid )
{
    
_asm
    
{
        
PUSH ESI                    
        MOV ESI
,ECX                        
        PUSH 0
        CALL DWORD PTR DS
:[0x1A33008]   ; SetForceFaceFlags
        MOV EAX
DWORD PTR DS:[ESI+0x30]; CurrentEntity
        MOV pCurrentEnt
,EAX
        PUSH EAX
        CALL 
[bIsEntValid]
        
ADD ESP,8
        TEST AL
,AL
        JE __NotValid
        
//==============================================================
        // Draw the non visible part of the Model
        
PUSH 0x204                        GL_GREATER
        CALL DWORD PTR DS
:[0x27B3C08]    ; glDepthFunc
        PUSH 0x1B01                        
GL_LINE
        PUSH 0x408                        
GL_FRONT_AND_BACK
        CALL DWORD PTR DS
:[0x27B3E98]    ; glPolygonMode
        MOV ECX
,ESI                
        MOV EAX
,DWORD PTR DS:[ESI]
        
CALL DWORD PTR DS:[EAX+0x4C]    ; StudioRenderFinal non visible part )
        
//==============================================================
        // Draw the visible part of the Model
        
PUSH 0x201                        GL_LESS
        CALL DWORD PTR DS
:[0x27B3C08]    ; glDepthFunc
        PUSH 0x1B02                        
GL_FILL
        PUSH 0x408                        
GL_FRONT_AND_BACK
        CALL DWORD PTR DS
:[0x27B3E98]    ; glPolygonMode
__NotValid
:

        
MOV ECX,ESI                
        MOV EAX
,DWORD PTR DS:[ESI]
        
CALL DWORD PTR DS:[EAX+0x4C]    ; StudioRenderFinal visible part )
        
POP ESI
        RET
    
}

Glowshell Chams

PHP Code:
NAKED_VOID xStudioRenderModelvoid )
{
    
_asm
    
{
        
PUSH ESI                    
        MOV ESI
,ECX                        
        PUSH 0
        CALL DWORD PTR DS
:[0x1A33008]   ; SetForceFaceFlags
        MOV EAX
DWORD PTR DS:[ESI+0x30]; CurrentEntity
        MOV pCurrentEnt
,EAX
        PUSH EAX
        CALL 
[bIsEntValid]
        
ADD ESP,8
        TEST AL
,AL
        JE __NotValid
        
//==============================================================
        // Draw the normal Model
        //MOV EAX, DWORD PTR DS:[pCurrentEnt]
        //MOV DWORD PTR DS:[EAX+0x304],0    ; rendermode = kRenderFxNone
        //MOV ECX,ESI
        //MOV EAX,DWORD PTR DS:[ESI]
        //CALL DWORD PTR DS:[EAX+0x4C]    ; StudioRenderFinal
            
        //==============================================================
        // Draw the non visible part of the Model with a red Glowshell
        
PUSH 0x204                        GL_GREATER
        CALL DWORD PTR DS
:[0x27B3C08]    ; glDepthFunc
        CALL DWORD PTR DS
:[0x1A3301C]   ; SetChromeOrigin
        PUSH 2                            
STUDIO_NF_CHROME
        CALL DWORD PTR DS
:[0x1A33008]   ; SetForceFaceFlags
        MOV EDX
,DWORD PTR DS:[ESI+0x58
        
MOV EAX,DWORD PTR DS:[0x1A1C320]
        
PUSH 0
        PUSH EDX                        
m_pChromeSprite
        CALL DWORD PTR DS
:[EAX+0x2C]    ; SpriteTexture
        ADD ESP
,0x0C

        MOV EAX
DWORD PTR DS:[pCurrentEnt]
        
MOV BYTE PTR DS:[EAX+0x300],0x0FF
        MOV BYTE PTR DS
:[EAX+0x301],0
        MOV BYTE PTR DS
:[EAX+0x302],0
        MOV DWORD PTR DS
:[EAX+0x2FC],0x32
        MOV DWORD PTR DS
:[EAX+0x304],0x13

        MOV ECX
,ESI                
        MOV EAX
,DWORD PTR DS:[ESI]
        
CALL DWORD PTR DS:[EAX+0x4C]    ; StudioRenderFinal non visible part )
        
//==============================================================
        // Draw the visible part of the Model with a green Glowshell
        
PUSH 0x201                        GL_LESS
        CALL DWORD PTR DS
:[0x27B3C08]    ; glDepthFunc

        MOV EAX
DWORD PTR DS:[pCurrentEnt]
        
MOV BYTE PTR DS:[EAX+0x300],0
        MOV BYTE PTR DS
:[EAX+0x301],0x0FF
        MOV BYTE PTR DS
:[EAX+0x302],0

__NotValid
:

        
MOV ECX,ESI                
        MOV EAX
,DWORD PTR DS:[ESI]
        
CALL DWORD PTR DS:[EAX+0x4C]    ; StudioRenderFinal visible part )
        
POP ESI
        RET
    
}

hf :D

credits:
patrick ( he inspired me for the way how I hook studiorendermodel)
Reply With Quote

AgeRage.net Shop - Buy your valid CD-Keys

  #2 (permalink)  
Join Date: 24 Jan 2005
Location: :.Middle Earth.:
Age: 21
Posts: 7,113
Virtuosofriend's Avatar
Old 01-06-2006, 10:01
AgeRage Founder
Thanks for the small tutorial mate :D

Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
D3D9 Pixel Shader Chams wurzil Tutorials Room 1 17-11-2008 19:40
Need Chams or wallhack COD4!! rick012068 Call Of Duty 4 14 13-05-2008 20:51
[Release] PhunKeh Chams wurzil Call of Duty 2 47 22-01-2008 04:24
[Release]Undetected SoF3:PB Chams wurzil Other FPS Games 2 01-12-2007 17:01
Alternative D3D Chams wurzil Tutorials Room 5 23-11-2005 08:46


All times are GMT +1. The time now is 20:17.

Latest Threads

About AgeRage Forum

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
AgeRage.net - 'Feeding Your Cheating Obsession'
Page generated in 0.16068 seconds with 13 queries