Thread: EndScene

Results 1 to 14 of 14
  1. #1
    qcethe's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    51
    Reputation
    10
    Thanks
    3
    My Mood
    Scared

    EndScene

    How can i endscene this so the hack works

    if(GetAsyncKeyState(VK_NUMPAD1)<0)
    if(Tracers){
    PushToConsole("ShowFirePath 1" );
    Tracers = true;
    }else{
    PushToConsole("ShowFirePath 0" );
    Tracers = false;

    Im confused where the endscene goes!

    new for codding, i know its newbie, srry

  2. #2
    Fabolous's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    192.168.1.01
    Posts
    2,706
    Reputation
    261
    Thanks
    682
    My Mood
    Paranoid
    Quote Originally Posted by qcethe View Post
    How can i endscene this so the hack works

    if(GetAsyncKeyState(VK_NUMPAD1)<0)
    if(Tracers){
    PushToConsole("ShowFirePath 1" );
    Tracers = true;
    }else{
    PushToConsole("ShowFirePath 0" );
    Tracers = false;

    Im confused where the endscene goes!

    new for codding, i know its newbie, srry
    You cant because you don't have the endscene in your hotkey base.

  3. The Following User Says Thank You to Fabolous For This Useful Post:

    qcethe (12-05-2010)

  4. #3
    qcethe's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    51
    Reputation
    10
    Thanks
    3
    My Mood
    Scared
    and how do i get it there

    my base:[html]#include "stdafx.h"
    #include <windows.h>
    #define Engine 0x3780AB70

    bool IsGameReadyForHook()
    {
    if( GetModuleHandleA( "d3d9.dll" ) != NULL
    && GetModuleHandleA( "ClientFX.fxd" ) != NULL
    && GetModuleHandleA( "CShell.dll" ) != NULL )
    return true;
    return false;
    }
    void __cdecl PushToConsole(char *szCommand)
    {
    typedef int (__cdecl* RunConsoleCommand_T)(const char* szCommand);
    static RunConsoleCommand_T RCC = (RunConsoleCommand_T) 0x485E10;

    RCC(szCommand);
    }





    void main()
    {


    while(!IsGameReadyForHook()){
    Sleep(200);
    }
    bool Tracers = false;

    while(true)
    {
    if(GetAsyncKeyState(VK_NUMPAD1)<0)
    if(Tracers){
    PushToConsole("ShowFirePath 1" );
    Tracers = true;
    }else{
    PushToConsole("ShowFirePath 0" );
    Tracers = false;
    EndScene();
    }
    }


    }
    DWORD WINAPI dwHackThread(LPVOID) {
    while( !IsGameReadyForHook() )
    Sleep(300);
    main();
    return 0;
    }
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);
    if ( dwReason == DLL_PROCESS_ATTACH )
    MessageBoxA( NULL, "qcethe Hoyt Key V.1|\n" "qcethe @ MPGH ONLY", "MPGH qcethe", MB_YESNO| MB_ICONWARNING);
    {
    CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
    }
    return TRUE;
    }

    [/html]

  5. #4
    Fabolous's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    192.168.1.01
    Posts
    2,706
    Reputation
    261
    Thanks
    682
    My Mood
    Paranoid
    I render my menu and put it there. Make a D3D Base.

    or....

    Use whit's base releases.

  6. #5
    _Fk127_'s Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    724
    Reputation
    16
    Thanks
    208
    My Mood
    Bitchy
    #include "stdafx.h"
    #include <windows.h>
    #define Engine 0x3780AB70

    bool IsGameReadyForHook()
    {
    if( GetModuleHandleA( "d3d9.dll" ) != NULL
    && GetModuleHandleA( "ClientFX.fxd" ) != NULL
    && GetModuleHandleA( "CShell.dll" ) != NULL )
    return true;
    return false;
    }
    void __cdecl PushToConsole(char *szCommand,char *hookplace)
    {
    typedef int (__cdecl* RunConsoleCommand_T)(const char* szCommand, const char* hookplace);
    static RunConsoleCommand_T RCC = (RunConsoleCommand_T) 0x485E10;

    RCC(szCommand);
    }





    void main()
    {


    while(!IsGameReadyForHook()){
    Sleep(200);
    }
    bool Tracers = false;

    while(true)
    {
    if(GetAsyncKeyState(VK_NUMPAD1)<0)
    if(Tracers){
    PushToConsole("ShowFirePath 1", "Endscene" );
    Tracers = true;
    }else{
    PushToConsole("ShowFirePath 0", "Endscene" );
    Tracers = false;
    }
    }


    }
    DWORD WINAPI dwHackThread(LPVOID) {
    while( !IsGameReadyForHook() )
    Sleep(300);
    main();
    return 0;
    }
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);
    if ( dwReason == DLL_PROCESS_ATTACH )
    MessageBoxA( NULL, "qcethe Hoyt Key V.1|\n" "qcethe @ MPGH ONLY", "MPGH qcethe", MB_YESNO| MB_ICONWARNING);
    {
    CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
    }
    return TRUE;
    }

    //fixed, endscene put in
    Last edited by _Fk127_; 12-05-2010 at 09:09 PM.



    Put this image in your signature if you support HTML5 development!

  7. The Following User Says Thank You to _Fk127_ For This Useful Post:

    qcethe (12-05-2010)

  8. #6
    qcethe's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    51
    Reputation
    10
    Thanks
    3
    My Mood
    Scared
    is endscene perm patched??? because i cant add the const char* hookplace, 2 many arguments?!?

  9. #7
    _Fk127_'s Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    724
    Reputation
    16
    Thanks
    208
    My Mood
    Bitchy
    #include "stdafx.h"
    #include <windows.h>
    #define Engine 0x3780AB70

    bool IsGameReadyForHook()
    {
    if( GetModuleHandleA( "d3d9.dll" ) != NULL
    && GetModuleHandleA( "ClientFX.fxd" ) != NULL
    && GetModuleHandleA( "CShell.dll" ) != NULL )
    return true;
    return false;
    }
    void __cdecl PushToConsole(char *szCommand,char *hookplace)
    {
    typedef int (__cdecl* RunConsoleCommand_T)(const char* szCommand); static RunConsoleCommand_T RCC = (RunConsoleCommand_T) 0x485E10;

    RCC(szCommand);
    }





    void main()
    {


    while(!IsGameReadyForHook()){
    Sleep(200);
    }
    bool Tracers = false;

    while(true)
    {
    if(GetAsyncKeyState(VK_NUMPAD1)<0)
    if(Tracers){
    PushToConsole("ShowFirePath 1", "Endscene" );
    Tracers = true;
    }else{
    PushToConsole("ShowFirePath 0", "Endscene" );
    Tracers = false;
    }
    }


    }
    DWORD WINAPI dwHackThread(LPVOID) {
    while( !IsGameReadyForHook() )
    Sleep(300);
    main();
    return 0;
    }
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);
    if ( dwReason == DLL_PROCESS_ATTACH )
    MessageBoxA( NULL, "qcethe Hoyt Key V.1|\n" "qcethe @ MPGH ONLY", "MPGH qcethe", MB_YESNO| MB_ICONWARNING);
    {
    CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
    }
    return TRUE;
    }

    my b, fixed



    Put this image in your signature if you support HTML5 development!

  10. #8
    Departure's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    818
    Reputation
    125
    Thanks
    1,785
    My Mood
    Doh
    Apoc91, Freedompeace and myself have been doing tests with PushToConsole, and the conclusion is you can not call PushToConsole without being in the context of a D3d9 Function(meaning you will need to hook a function), Also you will need to know that EndScene is Detected by CA, So you will need to call PushToConsole from "Present" I have tested this and hooking Present is NOT detected and should work fine for sending PushToConsole

  11. The Following User Says Thank You to Departure For This Useful Post:

    NOOB (12-16-2010)

  12. #9
    WE11ington's Avatar
    Join Date
    May 2007
    Gender
    male
    Posts
    174
    Reputation
    16
    Thanks
    695
    Quote Originally Posted by Departure View Post
    Apoc91, Freedompeace and myself have been doing tests with PushToConsole, and the conclusion is you can not call PushToConsole without being in the context of a D3d9 Function(meaning you will need to hook a function), Also you will need to know that EndScene is Detected by CA, So you will need to call PushToConsole from "Present" I have tested this and hooking Present is NOT detected and should work fine for sending PushToConsole
    For using hook in EndScene, you need bypass the scans on module hackshield.
    Last edited by WE11ington; 12-15-2010 at 04:24 PM.

  13. #10
    NOOBJr's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in NOOB
    Posts
    1,426
    Reputation
    112
    Thanks
    693
    Help section is 5 cm to meters north from this thread!

  14. #11
    Nubzgetkillz's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    hacktown
    Posts
    838
    Reputation
    13
    Thanks
    411
    My Mood
    Amazed
    HOOK PRESENT AND RESET

    Code:
    Present();
    Reset();
    PushtoConsoleThread();
    done

    Member since September 25, 2010

    Current Objectives:
    • Graduate college with a degree in Computer Science
    • Find a decent job in the Computer Science Field
    • Learn more programming languages

    Looking for Elo Boosting Job - League of Legends
    Looking for Bronze -> Gold Jobs


    Skype: whatthedream

  15. #12
    _Fk127_'s Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    724
    Reputation
    16
    Thanks
    208
    My Mood
    Bitchy
    Or he could modify PTC function like this-
    Code:
    void __cdecl PushToConsole(char *szCommand,char *hookplace) 
    { 
    typedef int (__cdecl* RunConsoleCommand_T)(const char* szCommand); static RunConsoleCommand_T RCC = (RunConsoleCommand_T) 0x485E10;
    
    RCC(szCommand); 
    }
    then-
    Code:
    PushToConsole("ShowFps 1", "Endscene");



    Put this image in your signature if you support HTML5 development!

  16. #13
    GodHack2's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    645
    Reputation
    38
    Thanks
    762
    My Mood
    Amused





    beat this bitches ^^^^^^^

    Current Stats : Bored :/


    Respect list :
    Crash !
    Gordon'
    Markoj

  17. #14
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,406
    Reputation
    157
    Thanks
    3,993
    My Mood
    Flirty
    Quote Originally Posted by GodHack2 View Post
    rofllllllllll