Fall demage?

Results 1 to 14 of 14
  1. #1
    Android Developer doidloko is offline
    MemberRank
    Aug 2012 Join Date
    BrasilLocation
    253Posts

    Fall demage?

    How can i remove or decreased a fall demage *-* mountain kill me xd


  2. #2
    Proficient Member vinnieshuda is offline
    MemberRank
    Jan 2013 Join Date
    158Posts

    Re: Fall demage?

    that was not the mountain........
    f*ckin terrible raycasting using and f*ckin idiot who created the math to calculate the dmg...

    btw.. search this

    void obj_ServerPlayer::OnNetPacket(const PKT_C2S_FallingDamage_s& n){
    r3dOutToLog("Falling damage to %s, damage=%.2f\n", Name.c_str(), n.damage); CLOG_INDENT;
    gServerLogic.ApplyDamage(this, this, GetPosition(), n.damage, true, storecat_INVALID);
    }

    and modify


    void obj_ServerPlayer::OnNetPacket(const PKT_C2S_FallingDamage_s& n){
    float nulldamage = 0.f;
    r3dOutToLog("Falling damage to %s, damage=%.2f\n", Name.c_str(), nulldamage); CLOG_INDENT;
    gServerLogic.ApplyDamage(this, this, GetPosition(), nulldamage, true, storecat_INVALID);
    }

    or you can use NULL instead of nulldamage, or you can half the n.damage or something. :D

  3. #3
    Apprentice Pileofwood is offline
    MemberRank
    May 2013 Join Date
    18Posts

    Re: Fall demage?

    Where we need to change that? which solution?. Does that completely remove fall damage or is that something else?.

  4. #4
    Proficient Member vinnieshuda is offline
    MemberRank
    Jan 2013 Join Date
    158Posts

    Re: Fall demage?

    warz solution and yes, 0.f is 0 damage, btw you can use nulldamage =n.damage/2 too

  5. #5
    Apprentice Pileofwood is offline
    MemberRank
    May 2013 Join Date
    18Posts

    Re: Fall demage?

    Quote Originally Posted by vinnieshuda View Post
    warz solution and yes, 0.f is 0 damage, btw you can use nulldamage =n.damage/2 too
    Thanks.

  6. #6
    Android Developer doidloko is offline
    MemberRank
    Aug 2012 Join Date
    BrasilLocation
    253Posts

    Re: Fall demage?

    THX vinnieshuda

  7. #7
    Valued Member Bambo1421 is offline
    MemberRank
    May 2013 Join Date
    145Posts

    Re: Fall demage?

    Quote Originally Posted by vinnieshuda View Post
    that was not the mountain........
    f*ckin terrible raycasting using and f*ckin idiot who created the math to calculate the dmg...

    btw.. search this



    and modify




    or you can use NULL instead of nulldamage, or you can half the n.damage or something. :D
    where do i need to put this in?

  8. #8
    Banned InsightKnight is offline
    BannedRank
    Apr 2013 Join Date
    134Posts

    Re: Fall demage?

    Excellent. Anyone who has taken a trip to Frosty knows this is a HUGE issue in game.

  9. #9
    Valued Member Bambo1421 is offline
    MemberRank
    May 2013 Join Date
    145Posts

    Re: Fall demage?

    Quote Originally Posted by InsightKnight View Post
    Excellent. Anyone who has taken a trip to Frosty knows this is a HUGE issue in game.
    In which file do i need to add it?

  10. #10
    Banned InsightKnight is offline
    BannedRank
    Apr 2013 Join Date
    134Posts

    Re: Fall demage?

    Quote Originally Posted by vinnieshuda View Post
    warz solution and yes, 0.f is 0 damage, btw you can use nulldamage =n.damage/2 too
    So basically open up Visual Studio. Open WarZ.sln file. Press CONTROL + F to search and type "void obj_ServerPlayer::OnNetPacket(const PKT_C2S_FallingDamage_s& n){" for example to find the code location and modify it to match the post.

  11. #11
    Harro Syxn is offline
    MemberRank
    Mar 2013 Join Date
    767Posts

    Re: Fall demage?

    Many ways to do this, depending on the way you do, you could have it were you fall and get the blood effect but no damage or could have it were no blood effect happens :p just figured i'd let you know,

  12. #12
    Banned InsightKnight is offline
    BannedRank
    Apr 2013 Join Date
    134Posts

    Re: Fall demage?

    Just went to implement it. I was wrong above the code is actually found in WarZ_Server.sln NOT WarZ.sln. Sorry for any confusion. It is on line 2026 roughly.

  13. #13
    Account Upgraded | Title Enabled! KlausVander is offline
    MemberRank
    May 2013 Join Date
    BrasilLocation
    240Posts

    Re: Fall demage?

    IGNORE i find ! sorry..
    Last edited by KlausVander; 25-06-13 at 06:13 PM. Reason: I find..

  14. #14
    Member billythekid is offline
    MemberRank
    Apr 2013 Join Date
    98Posts

    Re: Fall demage?

    The path to edit the file is

    C:\WarZ\bin\server\WO_GameServer\Sources\ObjectsCode\obj_ServerPlayer.cpp
    Line 2026..



Advertisement