Page 1 of 2 12 LastLast
Results 1 to 15 of 28
  1. #1
    Tekkn0logik's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    37
    Reputation
    12
    Thanks
    50
    My Mood
    Amused

    [Release] PushToConsole Command Default Values

    Well, I searched around a bit and couldn't find a thread with all the default, unmodified values for the PushToConsole commands. These are useful if you can't figure out how to disable a specific hack.

    What I did was write a small Java program to parse the "Mega PTC Thread" (http://www.mpgh.net/forum/207-combat...ga-thread.html) and get the names of all the commands, and then wrote a DLL to dump the unmodified values using the PopFromConsole method. (Credits: http://www.mpgh.net/forum/207-combat...omconsole.html) Sources for both the Java utility and the DLL are below.

    All values were grabbed at the start of a CA match.

    So, without further ado, the default values for all the PTC commands in that thread:

    Code:
    name: ShowFirePath, value: -1.000000
    name: windowed, value: 0.000000
    name: ShowFps, value: 0.000000
    name: CursorCenter, value: 1.000000
    name: drawguns, value: 1.000000
    name: FogEnable, value: 1.000000
    name: ModelDebug_DrawBoxes, value: 0.000000
    name: PlayerGravity, value: -1100.000000
    name: SkelModelStencil, value: 0.000000
    name: WeaponSway, value: 1.000000
    name: ShowBreath, value: 0.000000
    name: ActivationDistance, value: 100.000000
    name: DynamicLight, value: 1.000000
    name: EnableWeatherFX, value: 0.000000
    name: MuzzleLight, value: 0.000000
    name: SnowEnable, value: 1.000000
    name: CamDamage, value: 1.000000
    name: ModelApplySun, value: 1.000000
    name: ClientFXDetailLevel, value: 2.000000
    name: ScatterEnable, value: 1.000000
    name: WireframeModels, value: 0.000000
    name: WireFrame, value: 0.000000
    name: ModelDebug_DrawSkeleton, value: 0.000000
    name: Prediction, value: 1.000000
    name: FullBright, value: 0.000000
    name: JumpVel, value: 330.000000
    name: FragSelf, value: 0.000000
    name: DrawFlat, value: 0.000000
    name: SoundEnable, value: 1.000000
    name: MusicEnable, value: 1.000000
    name: CamMaxPosYOffset, value: 200.000000
    name: CamMaxPosYOffset, value: 200.000000
    name: WhiteBlood, value: 0.000000
    name: DisableCrosshair, value: 0.000000
    name: KnockBack, value: 0.000000
    name: Hands, value: 0.000000
    name: DrawInterface, value: 1.000000
    name: ReloadSpeed, value: 0.000000
    name: FireSpeed, value: 0.000000
    name: SpectatorMode, value: 0.000000
    name: PerturbRotationEffect, value: 3.000000
    name: PerturbIncreaseSpeed, value: 3.000000
    name: PerturbWalkPercent, value: 0.500000
    name: PerturbFiringIncreaseSpeed, value: 3.000000
    name: PerturbRecoil, value: 0.000000
    name: FireMovePerturb, value: 0.000000
    name: ZoomedFireMoveDuckPerturb, value: 0.000000
    name: ZoomedFireMovePerturb, value: 0.000000
    name: ZoomedFireDuckPerturb, value: 0.000000
    name: CrossHairR, value: 0.000000
    name: CrossHairG, value: 0.000000
    name: CrossHairB, value: 0.000000
    name: CrossHair_DefaultLength, value: 7.000000
    name: CrossHair_DefaultGapLength, value: 0.000000
    name: CrosshairGapMin, value: 0.000000
    name: CrosshairGapMax, value: 0.000000
    name: CrosshairBarMin, value: 0.000000
    name: CrosshairBarMax, value: 0.000000
    name: HitCrossHairSize, value: 0.000000
    name: CrossHair_FiringDuration, value: 0.100000
    name: RadarCenterX, value: 0.000000
    name: RaderCenterY, value: 0.000000
    name: BaseRadarScal, value: 0.000000
    name: Radarpos, value: 0.000000
    name: RadarRect, value: 0.000000
    name: RadarIconSize, value: 0.000000
    name: RadarZoominmax, value: 0.000000
    name: RadarDefaultZoom, value: 0.000000
    name: RadarZoomOutmax, value: 0.000000
    name: RadarRadius, value: 0.000000
    name: SpawnDelay, value: 0.000000
    name: Spawner, value: 0.000000
    name: Heal, value: 0.000000
    name: HealHP, value: 0.000000
    name: PlayerToHost, value: 0.000000
    name: PlayerToInfected, value: 0.000000
    name: SpyToAgent, value: 0.000000
    name: SpyToSpy, value: 0.000000
    name: PlayerToSpy, value: 0.000000
    name: FreezeTime, value: 0.000000
    name: DoobicMode, value: 0.000000
    name: KillCam_Off, value: 0.000000
    name: KillCam_On, value: 0.000000
    name: FriendlyFire_Off, value: 0.000000
    name: FriendlyFire_On, value: 0.000000
    name: PlayerGravity, value: -1100.000000
    name: PlayerVelocity, value: 0.000000
    name: ShowPerformanceStatistics, value: 0.000000
    name: BaseMoveAccel, value: 3000.000000
    name: StartAccel, value: 500.000000
    name: MaxAccel, value: 3000.000000
    name: AccelInc, value: 6000.000000
    name: WalkVel, value: 70.000000
    name: FRunVel, value: 285.000000
    name: BRunVel, value: 285.000000
    name: SRunVel, value: 285.000000
    name: JumpVel, value: 330.000000
    name: DuckVel, value: 50.000000
    name: BaseMoveAccel, value: 3000.000000
    name: StartAccel, value: 500.000000
    name: MaxAccel, value: 3000.000000
    name: AccelInc, value: 6000.000000
    name: WalkVel, value: 70.000000
    name: FRunVel, value: 285.000000
    name: BRunVel, value: 285.000000
    name: SRunVel, value: 285.000000
    name: SkyEnable, value: 0.000000
    name: DebugAimAt, value: 0.000000
    name: ShowHitSphere, value: 0.000000
    name: ShowLocalHitSphere, value: 0.000000
    Java utility to collect all the commands from the thread (this will generate a .h file which is included in the DLL below):

    Code:
    import java****.*;
    import java.net.*;
    
    public class cmdget {
    	
    	public static void main(String[] args) throws Exception {
    		URLConnection con = new URL("http://www.mpgh.net/forum/207-combat-arms-hack-coding-source-code/167441-pushtoconsole-commands-mega-thread.html").openConnection();
    		BufferedReader br = new BufferedReader(new InputStreamReader(con.getInputStream()));
    		FileWriter out = new FileWriter("output.h");
    		out.write("static char *commands[] = { \r\n");
    		
    		String line;
    		while((line = br.readLine()) != null) {
    			if(!line.contains("PushToConsole("))
    				continue;
    			line = line.replace(""", "\"");
    			line = line.substring(line.indexOf('(') + 2, line.lastIndexOf('"'));
    			line = line.split(" ")[0];
    			out.write("\t\"" + line + "\", \r\n");
    			System.out.println(line);
    		}
    		out.write("\tNULL\r\n};\r\n");
    		out.flush();
    		out.close();
    	}
    }
    Or, if you can't/don't know how to run the Java app, here's the (current as of 9/5/2010) .h file generated by it.

    Code:
    static char *commands[] = { 
    	"ShowFirePath", 
    	"windowed", 
    	"ShowFps", 
    	"CursorCenter", 
    	"drawguns", 
    	"FogEnable", 
    	"ModelDebug_DrawBoxes", 
    	"PlayerGravity", 
    	"SkelModelStencil", 
    	"WeaponSway", 
    	"ShowBreath", 
    	"ActivationDistance", 
    	"DynamicLight", 
    	"EnableWeatherFX", 
    	"MuzzleLight", 
    	"SnowEnable", 
    	"CamDamage", 
    	"ModelApplySun", 
    	"ClientFXDetailLevel", 
    	"ScatterEnable", 
    	"WireframeModels", 
    	"WireFrame", 
    	"ModelDebug_DrawSkeleton", 
    	"Prediction", 
    	"FullBright", 
    	"JumpVel", 
    	"FragSelf", 
    	"DrawFlat", 
    	"SoundEnable", 
    	"MusicEnable", 
    	"CamMaxPosYOffset", 
    	"CamMaxPosYOffset", 
    	"WhiteBlood", 
    	"DisableCrosshair", 
    	"KnockBack", 
    	"Hands", 
    	"DrawInterface", 
    	"ReloadSpeed", 
    	"FireSpeed", 
    	"SpectatorMode", 
    	"PerturbRotationEffect", 
    	"PerturbIncreaseSpeed", 
    	"PerturbWalkPercent", 
    	"PerturbFiringIncreaseSpeed", 
    	"PerturbRecoil", 
    	"FireMovePerturb", 
    	"ZoomedFireMoveDuckPerturb", 
    	"ZoomedFireMovePerturb", 
    	"ZoomedFireDuckPerturb", 
    	"CrossHairR", 
    	"CrossHairG", 
    	"CrossHairB", 
    	"CrossHair_DefaultLength", 
    	"CrossHair_DefaultGapLength", 
    	"CrosshairGapMin", 
    	"CrosshairGapMax", 
    	"CrosshairBarMin", 
    	"CrosshairBarMax", 
    	"HitCrossHairSize", 
    	"CrossHair_FiringDuration", 
    	"RadarCenterX", 
    	"RaderCenterY", 
    	"BaseRadarScal", 
    	"Radarpos", 
    	"RadarRect", 
    	"RadarIconSize", 
    	"RadarZoominmax", 
    	"RadarDefaultZoom", 
    	"RadarZoomOutmax", 
    	"RadarRadius", 
    	"SpawnDelay", 
    	"Spawner", 
    	"Heal", 
    	"HealHP", 
    	"PlayerToHost", 
    	"PlayerToInfected", 
    	"SpyToAgent", 
    	"SpyToSpy", 
    	"PlayerToSpy", 
    	"FreezeTime", 
    	"DoobicMode", 
    	"KillCam_Off", 
    	"KillCam_On", 
    	"FriendlyFire_Off", 
    	"FriendlyFire_On", 
    	"PlayerGravity", 
    	"PlayerVelocity", 
    	"ShowPerformanceStatistics", 
    	"BaseMoveAccel", 
    	"StartAccel", 
    	"MaxAccel", 
    	"AccelInc", 
    	"WalkVel", 
    	"FRunVel", 
    	"BRunVel", 
    	"SRunVel", 
    	"JumpVel", 
    	"DuckVel", 
    	"BaseMoveAccel", 
    	"StartAccel", 
    	"MaxAccel", 
    	"AccelInc", 
    	"WalkVel", 
    	"FRunVel", 
    	"BRunVel", 
    	"SRunVel", 
    	"SkyEnable", 
    	"DebugAimAt", 
    	"ShowHitSphere", 
    	"ShowLocalHitSphere", 
    	NULL
    };
    And, lastly, the DLL to collect the values:

    Code:
    #include <stdio.h>
    #include <windows.h>
    
    #include "ptcinitial.h"
    
    float PopFromConsole(const char* szCommand)
    {
    	HMODULE hMod = GetModuleHandleA("CShell.dll");
    	if(hMod == NULL)
    		return;
    	DWORD LTClient = *(DWORD *)(0x377E7810);
    	typedef void *(*_Fn1)(const char *);
    	_Fn1 Fn1 = *(_Fn1 *) (LTClient + 0x104);
    	DWORD vTable = *(DWORD *) LTClient;
    	typedef float (__stdcall *_Fn2)(void *);
    	_Fn2 Fn2 = *(_Fn2 *) (vTable + 0x5C);
    	return Fn2(Fn1(szCommand));
    }
    
    DWORD WINAPI HaxThreadProc(LPVOID lpParam)
    {
    	char buf[1024];
    	float value;
    	while(1) {
    		if(GetAsyncKeyState(VK_F12) & 1) {
    			FILE *fp = fopen("ptcinitial.txt", "w");
    			char **command = commands;
    			while(*command != NULL) {
    				value = PopFromConsole(*command);
    				sprintf(buf, "name: %s, value: %f\r\n", *command, value);
    				fputs(buf, fp);
    				command++;
    			}
    			fflush(fp);
    			fclose(fp);
    		}		
    		Sleep(100);
    	}
    	
    	return 0;
    }
    
    BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
    {
    	if(dwReason == DLL_PROCESS_ATTACH)
    		CreateThread(NULL, 0, HaxThreadProc, NULL, 0, NULL);
    	
    	return TRUE;
    }
    Feel free to modify etc, I don't care about credits, if you use/like it, cool, if you don't, fine. Do whatever you want with it. If you want to give me thanks/credits in something you make with it, please do so. If the author of the PopFromConsole method doesn't like that I de-choobed it and put that version in this thread, I'll remove it :P

    Tekkn0logik
    Last edited by Tekkn0logik; 09-05-2010 at 03:09 PM. Reason: sentence structure fix

  2. The Following 15 Users Say Thank You to Tekkn0logik For This Useful Post:

    Amatowarrior (09-08-2010),CodeDemon (09-05-2010),DBag4Life69 (09-05-2010),[MPGH]Flengo (02-27-2011),fvestrgenrl (09-07-2010),GodHack2 (09-05-2010),J (09-06-2010),LightzOut (09-05-2010),mmbob (09-05-2010),NOOB (06-02-2011),ppl2pass (09-05-2010),speedforyou (09-06-2010),swatfx (09-05-2010),Tibirius (09-08-2010),Timboy67678 (09-24-2010)

  3. #2
    CodeDemon's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    vagina
    Posts
    1,074
    Reputation
    50
    Thanks
    936
    My Mood
    Fine
    All I can say is wow, very nice work. We haz us a very intelligent choob. Welcome to the CA Source Section

    I wish more choobs were like you.

    Choob as in the sense of being new, not a leecher /
    Last edited by CodeDemon; 09-05-2010 at 02:41 PM.

  4. The Following User Says Thank You to CodeDemon For This Useful Post:

    hunerik (09-09-2010)

  5. #3
    GodHack2's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    645
    Reputation
    38
    Thanks
    762
    My Mood
    Amused
    wow very impressive thanks for sharing





    beat this bitches ^^^^^^^

    Current Stats : Bored :/


    Respect list :
    Crash !
    Gordon'
    Markoj

  6. #4
    swatfx's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    661
    Reputation
    20
    Thanks
    108
    My Mood
    Mellow
    thats some nice work

    /thanked

  7. #5
    ppl2pass's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    804
    Reputation
    5
    Thanks
    111
    My Mood
    Amused
    where do you read your commands in your dll?

  8. #6
    Tekkn0logik's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    37
    Reputation
    12
    Thanks
    50
    My Mood
    Amused
    Haha, thanks for the support. Updated first post because I forgot to include some...

    Also for some reason I don't think ModelDebug_DrawBoxes is right, because enabling it doesn't do anything.

  9. #7
    CodeDemon's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    vagina
    Posts
    1,074
    Reputation
    50
    Thanks
    936
    My Mood
    Fine
    Quote Originally Posted by Tekkn0logik View Post
    Haha, thanks for the support. Updated first post because I forgot to include some...

    Also for some reason I don't think ModelDebug_DrawBoxes is right, because enabling it doesn't do anything.
    Yep, it was patched a few patches back in july I believe. The only alternative is D3D boxes now.

  10. #8
    Tekkn0logik's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    37
    Reputation
    12
    Thanks
    50
    My Mood
    Amused
    Quote Originally Posted by ppl2pass View Post
    where do you read your commands in your dll?
    Code:
    			char **command = commands;
    			while(*command != NULL) {
    				value = PopFromConsole(*command);
    				sprintf(buf, "name: %s, value: %f\r\n", *command, value);
    				fputs(buf, fp);
    				command++;
    			}
    'commands' is #included from ptcinitial.h, which is generated by the java program.

    Quote Originally Posted by CodeDemon View Post
    Yep, it was patched a few patches back in july I believe. The only alternative is D3D boxes now.
    That would explain it.

  11. #9
    ppl2pass's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    804
    Reputation
    5
    Thanks
    111
    My Mood
    Amused
    Quote Originally Posted by Tekkn0logik View Post
    'commands' is #included from ptcinitial.h, which is generated by the java program.
    Damnit, im no good in java.
    Could you provide a text of the .h file.

  12. #10
    mmbob's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    ja
    Posts
    655
    Reputation
    70
    Thanks
    1,156
    My Mood
    Bitchy
    Good job . Actually... I think you are the only one who actually was able to fix my PopFromConsole O.o

  13. #11
    Tekkn0logik's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    37
    Reputation
    12
    Thanks
    50
    My Mood
    Amused
    Quote Originally Posted by ppl2pass View Post
    Damnit, im no good in java.
    Could you provide a text of the .h file.
    Java programs aren't hard to run, but I'll add it to the first post now.

    Edit: .h file added.
    Last edited by Tekkn0logik; 09-05-2010 at 02:59 PM.

  14. The Following User Says Thank You to Tekkn0logik For This Useful Post:

    ppl2pass (09-05-2010)

  15. #12
    DBag4Life69's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    290
    Reputation
    13
    Thanks
    59
    My Mood
    Twisted
    Good fucking job, bro!
    That's an amazing idea you had there, and I really think that most people can find this very useful.
    I am glad that you made this thread, cuz when I start coding, this would be a VERY helpful program to have.

    +Rep and Thanks.

  16. #13
    coogle007's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    267
    Reputation
    18
    Thanks
    297
    My Mood
    Aggressive
    Good job man thanks 4 sharing

  17. #14
    speedforyou's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    741
    Reputation
    -59
    Thanks
    108
    My Mood
    Happy
    soo we could add remeove something from the .h file and then the popfromconsole will run it???
    that gave me a idea be back in like 5 hours -_-
    Last edited by speedforyou; 09-06-2010 at 01:26 AM.

    steel o-o's sig =
    = Done , = Not Done

    Leecher 0 =
    Newbie 25 =
    Member 50 =
    Advanced Member 100 =
    H4X0R Member 150 =
    Dual-Keyboard Member 250 =
    Expert Member 500 =
    's Trainer 750 =
    MPGH Expert 1000 =
    Synthetic Hacker 1250 =
    Blackhat Hacker 1500 =
    Whitehat Hacker 2000 =
    's Guardian 2500 =
    Upcoming MPGHiean 3000 =
    MPGH Addict 3500 =
    MPGHiean 4000 =
    MPGH Knight 4500 =
    MPGH Lord 5000 =
    MPGH Champion 5500 =
    MPGH King 6000 =
    MPGH Legend 6500 =
    MPGH God 7000 =
    MPGH God II 7500 =
    MPGH God III 8000 =
    MPGH God IV 8500 =
    MPGH God V 9000 =
    Arun's Slave 9500 =
    Dave's Slave 10000 =

  18. #15
    UGodly's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    http://www.mpgh.net/forum/members/645501-ugodly.html
    Posts
    1,234
    Reputation
    18
    Thanks
    160
    My Mood
    Yeehaw
    nice man
    gonna try it

  19. The Following User Says Thank You to UGodly For This Useful Post:

    jayhpatel2 (09-08-2010)

Page 1 of 2 12 LastLast

Similar Threads

  1. [Release] PushToConsole Commands [Mega Thread]
    By DeadLinez in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 90
    Last Post: 01-10-2013, 09:15 PM
  2. PushToConsole commands
    By Zoom in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 26
    Last Post: 10-18-2010, 06:30 PM
  3. [Source]PushToConsole Commands
    By Invidus in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 31
    Last Post: 09-04-2010, 04:36 AM
  4. PushToConsole commands for pick-up hack?
    By deathninjak0 in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 18
    Last Post: 07-14-2010, 09:01 AM
  5. [RELEASE] M92FS (Pistol Default) to G23 Carbon Black
    By lucianosmv in forum Combat Arms Mods & Rez Modding
    Replies: 13
    Last Post: 06-16-2010, 10:24 AM