Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_pre.php on line 387

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_pre.php on line 387

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 337

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 339

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 341

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 343
[eth32] drawing hitbox display

Results 1 to 4 of 4
  1. #1
    VIP FreckleS's Avatar
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    2,125

    [eth32] drawing hitbox display

    hey guys, im working on editing some of eth32 and i started with just a simple little thing, preset vecs...i added in other peoples vecs, just like ETPUB, ETPRO etc...

    it all work fine except when i try to draw the hitbox display for "my" custom one's

    the code is...


    Code:
    void CHitboxWindow::Display(void)
    {
        if (eth32.settings.hitboxType != HITBOX_CUSTOM)
            return;
    
        AssignHitboxPart();
    
        CWindow::Display();
    }
    my code...
    Code:
    void CHitboxWindow::Display(void)
    {
        if (eth32.settings.hitboxType != HITBOX_CUSTOM || HITBOX_FRECKLES)
            return;
    
        AssignHitboxPart();
    
        CWindow::Display();
    }
    it will compile alright but ingame it won't draw it for either, i can change HITBOX_CUSTOM to any of the presets and it will draw it but it just won't draw both of them.

    Thanks
    "The pain you feel today, will be the strength you feel tomorrow"

  2. #2
    Coders jmpnop's Avatar
    Join Date
    May 2007
    Posts
    330

    Re: [eth32] drawing hitbox display

    Quote Originally Posted by FreckleS View Post
    Code:
        if (eth32.settings.hitboxType != HITBOX_CUSTOM || HITBOX_FRECKLES)
            return;
    C isn't associative in its operators, so the above statement is translated as if (eth32.settings.hitboxType != HITBOX_CUSTOM) AND if (HITBOX_FRECKLES)), assuming HITBOX_FRECKLES is not zero, this last statement is simply true, hence it effectively becomes just if (eth32.settings.hitboxType != HITBOX_CUSTOM). To fix, try this

    Code:
    if (eth32.settings.hitboxType != HITBOX_CUSTOM && eth32.settings.hitboxType != HITBOX_FRECKLES)
            return;
    int *(*(*(*x)()) [10]) ();

  3. #3
    VIP FreckleS's Avatar
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    2,125

    Re: [eth32] drawing hitbox display

    i was reading about that exact same thing 4 days ago..it just didn't click...i tried && HITBOX_FRECKLES but i didn't use the eth32.setings
    "The pain you feel today, will be the strength you feel tomorrow"

  4. #4
    VIP sir3n's Avatar
    Join Date
    Jul 2006
    Location
    england
    Posts
    1,825

    Re: [eth32] drawing hitbox display

    EDIT: oops delete this, it was a bit wrong :0

    my fault, misread the Q

Similar Threads

  1. ETH32 ETMain Headbox Drawing
    By st0ne in forum Basehooks / Sources
    Replies: 7
    Last Post: September 7th, 2011, 15:25
  2. Head hitbox size; Body hitbox Size Help!
    By hack3rs in forum ETH32
    Replies: 4
    Last Post: November 2nd, 2010, 16:32
  3. ETH32 video/display issues
    By t3rminator in forum ETH32
    Replies: 2
    Last Post: February 6th, 2009, 00:59
  4. hitbox
    By [b2c]WickeD in forum Spam
    Replies: 3
    Last Post: May 24th, 2008, 21:58
  5. HitBox
    By CPU in forum Vecs & Scripts
    Replies: 5
    Last Post: February 16th, 2008, 16:59

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
  •