Thread: No Fall Damage

Results 1 to 15 of 15
  1. #1
    Unbalanced's Avatar
    Join Date
    Feb 2013
    Gender
    male
    Location
    Canada
    Posts
    300
    Reputation
    17
    Thanks
    1,346
    My Mood
    Tired

    No Fall Damage

    Credits
    -killerra
    -ko1n

    Code has a small anti C+P measure.

    Code:
     if (pThis->m_pBaseEngine->GetConfig()->GetCVar("antifalldamage_active")->GetBool())
        {
            CBaseEntity *pLocalEntity = pThis->m_pBaseEngine->GetLocalPlayer();
            if (pLocalEntity != NULL &&
                pLocalEntity->GetMoveType() != MOVETYPE_NOCLIP &&
                pLocalEntity->GetMoveType() != MOVETYPE_LADDER &&
                !(pLocalEntity->GetFlags() & FL_ONGROUND) &&
                !(pLocalEntity->GetFlags() & FL_PARTIALGROUND))
            {
                CBaseUserCmd *pUserCmd = pThis->m_pHookHandler->GetUserCmd(sequence_number);
                if (pUserCmd != NULL)
                {
                    float fFallDamage = (float)((float)(pLocalEntity->GetFallVelocity() -580.0) * 0.23809524);
                    if (fFallDamage < 0.0f)
                    {
                        trace_t sTrace;
                        CTraceFilterSkipTwoEntities traceFilter(pLocalEntity->GetEntity(), NULL);
                        Vector vecAbsOrigin = pLocalEntity->GetAbsOrigin();
                        Vector vecPredictedAbsOrigin = pLocalEntity->Predict(); // account for next tick
                        pThis->m_pBaseEngine->EngineTrace->TraceRay(vecAbsOrigin, vecPredictedAbsOrigin, 0x4600400B, (ITraceFilter *)&TraceFilter, &sTrace);
                        if (sTrace.fraction != 1.0f)
                            *(DWORD *)pUserCmd->forwardmove() = NAN_VALUE;
                    }
                }
            }
        }
    Last edited by Unbalanced; 09-23-2014 at 02:43 PM.


    Member Since February 6th, 2013
    Donator Since November 2nd, 2013

     

  2. The Following 4 Users Say Thank You to Unbalanced For This Useful Post:

    desertions (09-23-2014),FanElmeneT (01-21-2015),monsterware (09-26-2014),pycnn (09-23-2014)

  3. #2
    SpikeValentine's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    197
    Reputation
    10
    Thanks
    7
    How does this work exactly? sorry noobster here

  4. #3
    Color's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    19,896
    Reputation
    2588
    Thanks
    7,864
    My Mood
    Lurking
    Quote Originally Posted by SpikeValentine View Post
    How does this work exactly? sorry noobster here
    Don't bother with the code if you don't know how to use it whatsoever..

    Member Since 8/05/2012
    Editor 4/04/13 - 4/21/13
    Middleman 7/14/13 - 11/4/13

    Battlefield Minion 6/13/14-3/20/15
    Steam Minion 7/16/14-3/20/15

    Minion+ 10/1/14-3/20/15
    M.A.T. Minion 10/19/14-3/20/15
    ROTMG Minion 1/14/15-3/20/15

    Donator Since 2/26/15 (Thanks @Cursed!)
    Steam Minion 5/9/15 - 11/5/15
    OSFPS Minion 9/15/15 - 11/5/15


  5. #4
    desertions's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    183
    Reputation
    10
    Thanks
    291
    Quote Originally Posted by Color View Post


    Don't bother with the code if you don't know how to use it whatsoever..
    rekt or naw

  6. #5
    SpikeValentine's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    197
    Reputation
    10
    Thanks
    7
    Quote Originally Posted by Color View Post


    Don't bother with the code if you don't know how to use it whatsoever..
    I was just simply asking how the mechanics of the code works.

  7. #6
    Southflyer123's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    TheSilkRoad
    Posts
    192
    Reputation
    10
    Thanks
    611
    My Mood
    Blah
    Quote Originally Posted by SpikeValentine View Post
    I was just simply asking how the mechanics of the code works.
    haha that phrasing tho

    "mechanics"

    Bruh

    Its a script that makes fall damage null,
    And if you need the mechanics of that too it makes you take NO FALL DAMAGE.

  8. #7
    SpikeValentine's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    197
    Reputation
    10
    Thanks
    7
    Quote Originally Posted by Southflyer123 View Post
    haha that phrasing tho

    "mechanics"

    Bruh

    Its a script that makes fall damage null,
    And if you need the mechanics of that too it makes you take NO FALL DAMAGE.
    lol fuck. Im just trying to understand the code and asking about it. but im clearly in the wrong community for that

  9. #8
    Mythicclan's Avatar
    Join Date
    Jan 2014
    Gender
    male
    Location
    Somewhere cold (;
    Posts
    30
    Reputation
    10
    Thanks
    4
    My Mood
    Amazed
    Quote Originally Posted by desertions View Post


    rekt or naw
    100% rekt.
    https://www.mpgh.net/forum/signaturepics/sigpic2381098_1.gif
    Look at my Post's for Multiple Shops!

  10. #9
    AusCraft13's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    1
    wow everyone stop being douches

  11. #10
    desertions's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    183
    Reputation
    10
    Thanks
    291
    Quote Originally Posted by AusCraft13 View Post
    wow everyone stop being douches
    majority of people hate it when people don't know how to use or make use of the code and shit

    if you aren't going to make a hack with this, you're probably in the wrong place. (you dont just execute it and whoo it works)

    then again, you could google it using knowledge

  12. #11
    Ataraxic's Avatar
    Join Date
    Nov 2013
    Gender
    male
    Posts
    9
    Reputation
    10
    Thanks
    0
    It's not hard to google things lol nice code unbalanced

  13. #12
    unholy1096's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    My basement
    Posts
    251
    Reputation
    29
    Thanks
    1,008
    My Mood
    Yeehaw
    Quote Originally Posted by desertions View Post


    majority of people hate it when people don't know how to use or make use of the code and shit

    if you aren't going to make a hack with this, you're probably in the wrong place. (you dont just execute it and whoo it works)

    then again, you could google it using knowledge

    He shouldn't be assaulted for asking a simple question.

  14. The Following 3 Users Say Thank You to unholy1096 For This Useful Post:

    059 (10-11-2014),AtoZ (10-14-2014),xxfatfarmxx (10-06-2014)

  15. #13
    SliceNDice's Avatar
    Join Date
    Jul 2014
    Gender
    male
    Location
    Springfield
    Posts
    751
    Reputation
    14
    Thanks
    63
    My Mood
    Amused
    Quote Originally Posted by Unbalanced View Post
    Credits
    -killerra
    -ko1n

    Code has a small anti C+P measure.

    Code:
     if (pThis->m_pBaseEngine->GetConfig()->GetCVar("antifalldamage_active")->GetBool())
        {
            CBaseEntity *pLocalEntity = pThis->m_pBaseEngine->GetLocalPlayer();
            if (pLocalEntity != NULL &&
                pLocalEntity->GetMoveType() != MOVETYPE_NOCLIP &&
                pLocalEntity->GetMoveType() != MOVETYPE_LADDER &&
                !(pLocalEntity->GetFlags() & FL_ONGROUND) &&
                !(pLocalEntity->GetFlags() & FL_PARTIALGROUND))
            {
                CBaseUserCmd *pUserCmd = pThis->m_pHookHandler->GetUserCmd(sequence_number);
                if (pUserCmd != NULL)
                {
                    float fFallDamage = (float)((float)(pLocalEntity->GetFallVelocity() -580.0) * 0.23809524);
                    if (fFallDamage < 0.0f)
                    {
                        trace_t sTrace;
                        CTraceFilterSkipTwoEntities traceFilter(pLocalEntity->GetEntity(), NULL);
                        Vector vecAbsOrigin = pLocalEntity->GetAbsOrigin();
                        Vector vecPredictedAbsOrigin = pLocalEntity->Predict(); // account for next tick
                        pThis->m_pBaseEngine->EngineTrace->TraceRay(vecAbsOrigin, vecPredictedAbsOrigin, 0x4600400B, (ITraceFilter *)&TraceFilter, &sTrace);
                        if (sTrace.fraction != 1.0f)
                            *(DWORD *)pUserCmd->forwardmove() = NAN_VALUE;
                    }
                }
            }
        }
    Does this work?

  16. #14
    ReleaseZeKraken's Avatar
    Join Date
    Nov 2013
    Gender
    male
    Location
    Right behind you...
    Posts
    11
    Reputation
    10
    Thanks
    1
    My Mood
    Drunk
    Quote Originally Posted by unholy1096 View Post
    He shouldn't be assaulted for asking a simple question.
    This is why I love this guy. I agree that he shouldn't be assaulted for asking a question. I dont know either.

  17. #15
    Trollaux's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    2,074
    Reputation
    137
    Thanks
    792
    1. vac detected lol
    2. that antiskid
    d e a d b o y s
    Quote Originally Posted by Dave84311 View Post
    What do you call a troll with shitty jokes?
    Trollaux
    Quote Originally Posted by Kyeran View Post
    Foot job with lots of oil.
    Quote Originally Posted by Kyeran View Post
    If she's 12, I'm 12.

Similar Threads

  1. trade stamina, weapons, super jump, no fall damage and scope dinamic adres!!!
    By ferrar1000 in forum WarRock - International Hacks
    Replies: 8
    Last Post: 07-01-2007, 07:14 PM
  2. No fall damage TUT
    By lolhackerlol in forum WarRock - International Hacks
    Replies: 45
    Last Post: 05-05-2007, 02:08 PM
  3. Tuto no fall damage
    By juanitobalde in forum WarRock - International Hacks
    Replies: 16
    Last Post: 05-05-2007, 09:59 AM
  4. I search tutorial of fall damage
    By juanitobalde in forum WarRock - International Hacks
    Replies: 0
    Last Post: 05-01-2007, 02:53 AM
  5. [help] Dont falling damage
    By juanitobalde in forum WarRock - International Hacks
    Replies: 13
    Last Post: 04-25-2007, 03:24 PM