Results 1 to 4 of 4
  1. #1
    Arephalline's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    21
    Reputation
    10
    Thanks
    1

    Code by me , need help please.

    bool DrawModelExecute ( ModelRenderInfo_t &pInfo )
    {
    C_BaseEntity *pBaseEntity;

    if ( pInfo.entity_index > 0 && pInfo.entity_index <= g_pEngine->GetMaxClients() )
    {
    if ( g_pEntList->Ge***ientEntity ( pInfo.entity_index ) != NULL )
    {
    pBaseEntity = g_pEntList->Ge***ientEntity ( pInfo.entity_index )->GetBaseEntity();

    if ( pBaseEntity == NULL )
    return false;

    g_iTeam = g_pGameResource->GetTeam ( pBaseEntity->entindex() ) ;

    if ( g_iTeam == 2 ) // NRF
    {
    flColor[0] = 255;
    flColor[1] = 255;
    flColor[2] = 0;
    flColor[3] = 255;
    }
    else if ( g_iTeam == 1 ) // EU
    {
    flColor[0] = 0;
    flColor[1] = 0;
    flColor[2] = 255;
    flColor[3] = 255;
    }

    g_pRenderView->SetBlend ( 1.0f );
    g_pRenderView->SetColorModulation ( flColor );

    pChamsMaterial->SetMaterialVarFlag ( MATERIAL_VAR_IGNOREZ, true );
    pChamsMaterial->SetMaterialVarFlag ( MATERIAL_VAR_ZNEARER, true );
    pChamsMaterial->SetMaterialVarFlag ( MATERIAL_VAR_FLAT, true );

    g_pModelRender->ForcedMaterialOverride ( pChamsMaterial );

    g_pModelRenderHook->UnHook();

    cout << "Arephalline's Pub Hook";
    g_pModelRender->DrawModelEx ( pInfo );

    if ( g_iTeam == 2 ) // NRF
    {
    flColor[0] = 255;
    flColor[1] = 0;
    flColor[2] = 0;
    flColor[3] = 255;
    }
    else if ( g_iTeam == 1 ) // EU
    {
    flColor[0] = 0;
    flColor[1] = 255;
    flColor[2] = 0;
    flColor[3] = 255;
    }

    g_pRenderView->SetBlend ( 1.0f );
    g_pRenderView->SetColorModulation ( flColor );

    pChamsMaterial->SetMaterialVarFlag ( MATERIAL_VAR_IGNOREZ, false );
    pChamsMaterial->SetMaterialVarFlag ( MATERIAL_VAR_ZNEARER, false );
    pChamsMaterial->SetMaterialVarFlag ( MATERIAL_VAR_FLAT, false );

    g_pModelRender->DrawModelEx ( pInfo );

    g_pModelRender->ForcedMaterialOverride ( pChamsMaterial );

    g_pModelRenderHook->ReHook();

    g_pModelRender->ForcedMaterialOverride ( NULL );

    return true;
    }
    }

    return false;
    }
    int __stdcall hook_DrawModelEx ( ModelRenderInfo_t &pInfo )
    {
    bool bRet;

    __asm
    {
    PUSHAD
    }

    bRet = DrawModelExecute ( pInfo );

    __asm
    {
    POPAD
    }

    if ( bRet == false )
    return pDrawModelEx ( pInfo );
    else
    return 1;

    return 0;
    }


    Ok , now i need help.
    The thing is that the code i can do but i dont know how to bypass gameguard.
    There's my source all you need to do is compile in a DLL.
    Obs:Already try'd with Valk,x1injec,OMFGZ,Arcstemp.
    ¬¬ "The game has been closed by an unknown error" .
    Any coder wanna help? Feel free to modify that code if something's wrong.

  2. #2
    Katie_Perry's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    3,089
    Reputation
    31
    Thanks
    175
    My Mood
    Sneaky
    You didnt code that.

  3. #3
    falzarex's Avatar
    Join Date
    Apr 2008
    Gender
    male
    Location
    here
    Posts
    417
    Reputation
    14
    Thanks
    145
    lol obvious
    detouring is your friend

  4. #4
    SpaceMan's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Location
    I forgot. :/
    Posts
    4,291
    Reputation
    162
    Thanks
    896
    My Mood
    Pensive
    Even so. This isn't a coding section. go to C++ and post it. Not here.

Similar Threads

  1. [Help Request] Necesito Ayuda Porfavor(I need Help Please)
    By omega8815 in forum Vindictus Help
    Replies: 18
    Last Post: 06-22-2011, 02:04 PM
  2. Need Help please(about source codes)
    By Laws_Vegas in forum C++/C Programming
    Replies: 5
    Last Post: 02-11-2010, 07:08 PM
  3. I need help please
    By weener in forum WarRock - International Hacks
    Replies: 2
    Last Post: 08-01-2007, 08:37 PM
  4. need help please come here
    By rino1992 in forum WarRock - International Hacks
    Replies: 8
    Last Post: 06-06-2007, 11:30 AM
  5. Need Help Please!
    By pimpineggs in forum Hack Requests
    Replies: 3
    Last Post: 01-14-2007, 03:22 AM