Results 1 to 15 of 33

Threaded View

  1. #1
    Neutrino994's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    15
    Reputation
    10
    Thanks
    28

    COPY & PASTA (ptc) Set console variables| patch info's & changes

    Well, nexon did just patch up combat arms na, took me 1 hour to fix my whole cheat, good luck.
    Probably some of "your" patterns are broken( oh noes waht to do ) fix them by youself
    Everyone who will use this from now will have to put correct credits to the real creators.

    Changes:

    Code:
    #define ptr_GameClientShell                  0x377F1D10//37867438
    #define ptr_WeaponMgr                        0x377F8854//3786E17C 
    #define ptr_LTClient                         0x377B2940//378206B8
    
    // Add a virtual before GetClientInfoMgr()( gameclientshell )
    // Add a virtual after LTModel( ltclient )
    // Remove a virtual before SendToServer( ltclient @ 0x160 )
    CONVARS( new way )
    Code:
    	class ConVars
    	{
    	public:
    
    		ConVars()
    		{
    			
    		}
    
    		void Init()
    		{
    
                                                    // do patterns by youself
    			_updated = false;
    
    			_BaseMoveAccel = 0x377A462C;
    			_StartAccel = 0x377A4650;
    			_MaxAccel = 0x377A4674;
    			_AccelInc = 0x377A4698;
    			_WalkVel = 0x377A46BC;
    			_FRunVel = 0x377A46E0;
    			_BRunVel = 0x377A4704;
    			_SRunVel = 0x377A4728;
    			_DuckVel = 0x377A4770;
    
    			_PlayerGravity = 0x377A42F0;
    
    			_JumpVel = 0x377A474C;
    
    			_ShowFps = 0x377A0CB8;
    
    			_ShowFirePath = 0x377AA4D4;
    
    			_ActivationDistance = 0x377A9D24;
    
    			_updated = true;
    		}
    
    		bool _updated;
    
    		bool IsUpdated()
    		{
    			return _updated;
    		}
    
    		// SpeedHack
    		DWORD _BaseMoveAccel;
    		DWORD _StartAccel;
    		DWORD _MaxAccel;
    		DWORD _AccelInc;
    		DWORD _WalkVel;
    		DWORD _FRunVel;
    		DWORD _BRunVel;
    		DWORD _SRunVel;
    		DWORD _DuckVel;
    
    		// SuperJump
    		DWORD _JumpVel;
    
    		// FlyHack
    		DWORD _PlayerGravity;
    
    		// Show FPS
    		DWORD _ShowFps;
    		
    		// ShowFirePath
    		DWORD _ShowFirePath;
    
    		// Activation distance
    		DWORD _ActivationDistance;
    
    		template< class T > 
    		void SetConvarValue( DWORD addr ,T val )
    		{
    			*(T*)addr = val;
    		}
    
    	}conVars;
    
    usage:
    
    if( !conVars.IsUpdated() )
    		{
    
    			conVars.Init();
    
    			return;
    		}
    
    float multiplier = 3;
    
    // speedhack
    conVars.SetConvarValue<float>( conVars._BaseMoveAccel,3000+(3000*multiplier) );
    		conVars.SetConvarValue<float>( conVars._StartAccel,500+(500*multiplier) );
    		conVars.SetConvarValue<float>( conVars._MaxAccel,3000+(3000*multiplier) );
    		conVars.SetConvarValue<float>( conVars._AccelInc,6000+(6000*multiplier) );
    		conVars.SetConvarValue<float>( conVars._WalkVel,70+(70*multiplier) );
    		conVars.SetConvarValue<float>( conVars._FRunVel,285+(285*multiplier) );
    		conVars.SetConvarValue<float>( conVars._BRunVel,285+(285*multiplier) );
    		conVars.SetConvarValue<float>( conVars._SRunVel,285+(285*multiplier) );
    		conVars.SetConvarValue<float>( conVars._DuckVel,50+(50*multiplier) );
    RunConsoleString
    Code:
            static DWORD rccAdr = NULL;
    
    	if(!rccAdr)
    		rccAdr = /*unwrapped console address*/;
    	
    	typedef void(__cdecl*RunConsoleCommandFn)(const char*,int&);
    	RunConsoleCommandFn RunConsoleCmd = (RunConsoleCommandFn)rccAdr;
    
    	int v4;
    	RunConsoleCmd(command,v4);
    some working ptc's
    Code:
    RunConsoleCommand("+SkelModelStencil 1");
    RunConsoleCommand("+FogEnable 0");
    Full credits to xCyniu, credit if you use.
    Thanks to NeoIII and Gellin for unwrappedconsole address
    Last edited by Neutrino994; 02-21-2013 at 05:50 AM.

  2. The Following 3 Users Say Thank You to Neutrino994 For This Useful Post:

    arun823 (02-21-2013),Coder.DiasII (02-21-2013),disav0w_ (02-21-2013)

Similar Threads

  1. [Release] A Method To Set Console Variables
    By J in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 12
    Last Post: 12-02-2011, 02:32 PM
  2. [Release] Renderer Console Variables
    By .L33T in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 10
    Last Post: 12-15-2010, 12:05 PM
  3. NEWEST PATCH INFO
    By igotfish1995 in forum CrossFire Hacks & Cheats
    Replies: 19
    Last Post: 08-09-2009, 08:27 PM
  4. December 16-17 Patch Info
    By MortalDefiance in forum Combat Arms Hacks & Cheats
    Replies: 10
    Last Post: 12-17-2008, 12:14 PM
  5. New Patch Info.
    By .:AsianTim:. in forum Combat Arms Hacks & Cheats
    Replies: 5
    Last Post: 09-10-2008, 06:01 PM