Results 1 to 6 of 6
  1. #1

    help with et logo

    Hey i have the nexus 0.72 source got everything working, added nearly all mods, edited most things. but i realy want to know how to add a logo like in eth32 when the bot loads?
    maybe a tutorial or just a direction on what to do?
    compiler= visual c++ 2008

  2. #2
    Coders
    Join Date
    Nov 2009
    Location
    Belgium
    Posts
    990

    Re: help with et logo

    I'm not at home right now, but I think you can catch it when hooking LoadTGA. Just return your own shader instead of the standard one.
    I'll post an example as soon as I come home.

    Example:
    Code:
    void CHooks::h_LoadTGA(const char *name, byte **pic, int *width, int *height)
    {
        if (!strcmp(name,"ui/assets/et_logo_huge.tga")) {
            hooks.o_LoadTGA("logo/your_own_logo.tga", pic, width, height); // use your own picture (logo) instead of the standard
        }
    }
    Hook from system, the same way you would hook syscall directly.

    Snippet (c) nixCoders

    Regards,
    mOwl

  3. #3

    Re: help with et logo

    is that straight from the eth32 source?
    i tried converting to my source got it to compile correctly after a few changes but didnt work:S

  4. #4
    VIP Goldeneye's Avatar
    Join Date
    Aug 2007
    Location
    the Netherlands
    Posts
    718

    Re: help with et logo

    detouring it right?, removing the detours at the right moment? ( at the wrong moment can make it not workin.. ).. r u sure u got the right offsets?

  5. #5
    Coders
    Join Date
    Nov 2009
    Location
    Belgium
    Posts
    990

    Re: help with et logo

    Quote Originally Posted by Goldeneye View Post
    detouring it right?, removing the detours at the right moment? ( at the wrong moment can make it not workin.. ).. r u sure u got the right offsets?
    No need to, just hook it from ET instead of cgame.
    Code:
    #define ADR_LOADTGA 0x47B460
    Code:
    hooks.o_LoadTGA = (LoadTGA_t)  DETOUR((BYTE *) ADR_LOADTGA, (BYTE *) hooks.h_loadTGA);
    Just delete after its set since PB detects hooking from ET.exe.

    Used eth as resource since I don't have any hook where I replace shaders. I'm sure the shaders are passed somewhere else too, just look it up.

  6. #6
    VIP Goldeneye's Avatar
    Join Date
    Aug 2007
    Location
    the Netherlands
    Posts
    718

    Re: help with et logo

    I meant.. if u remove the detour at pre CG_Init it wont work.. if u remove the detours an next CG_Init it will... everythink works fine when ur removing detours @ pre exept loadtga

Similar Threads

  1. REQUEST! Logo
    By muppetalert in forum Creative Corner
    Replies: 6
    Last Post: March 18th, 2009, 21:31

Bookmarks

Posting Permissions

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