[Help] No PvP Damage (DNC Re-released)

Results 1 to 8 of 8
  1. #1
    Elite Member TylerTurton is offline
    Member +Rank
    Nov 2012 Join Date
    166Posts

    sad [Help] No PvP Damage (DNC Re-released)

    Before you ask, the server is set to "isfarm=0" so that isn't a factor, and nobody has DEV status.

    I don't know what else could stop EVERYONE from doing pvp damage, did a fresh install of the src, and sql and still nothing... Any help?


  2. #2
    Developer DNC is offline
    DeveloperRank
    Oct 2011 Join Date
    2,493Posts

    Re: [Help] No PvP Damage (DNC Re-released)

    You do realize I have it set to Groups take No Damage.
    This also means when you are all "ungrouped" you are considered the "same" groupid = 0.
    Since I was not implementing PvP, it is up to you to figure out a solution.

    - - - Updated - - -

    Code is already there, all you have to do is modify it.

  3. #3
    Elite Member TylerTurton is offline
    Member +Rank
    Nov 2012 Join Date
    166Posts

    Re: [Help] No PvP Damage (DNC Re-released)

    Quote Originally Posted by DNC View Post
    You do realize I have it set to Groups take No Damage.
    This also means when you are all "ungrouped" you are considered the "same" groupid = 0.
    Since I was not implementing PvP, it is up to you to figure out a solution.

    - - - Updated - - -

    Code is already there, all you have to do is modify it.
    Any way you could help me? I'm sort of trying to get used to coding...

  4. #4
    Elite Member TylerTurton is offline
    Member +Rank
    Nov 2012 Join Date
    166Posts

    Re: [Help] No PvP Damage (DNC Re-released)

    Fixed it to the point where everyone does damage, but dev's don't take any?...

  5. #5
    Grand Master jonnybravo is offline
    Grand MasterRank
    Sep 2006 Join Date
    772Posts

    Re: [Help] No PvP Damage (DNC Re-released)

    well how to fix this :)

    Code:
    if((fromPlr->loadout_->GroupID == targetPlr->loadout_->GroupID && targetPlr->loadout_->GroupID != 0) || (fromPlr->loadout_->ClanID == targetPlr->loadout_->ClanID && targetPlr->loadout_->ClanID != 0))
            {
                return false;
            }
    comment this out :)

  6. #6
    Developer DNC is offline
    DeveloperRank
    Oct 2011 Join Date
    2,493Posts

    Re: [Help] No PvP Damage (DNC Re-released)

    lol yes. It really was pretty darn simple. :0)

  7. #7
    Elite Member TylerTurton is offline
    Member +Rank
    Nov 2012 Join Date
    166Posts

    Re: [Help] No PvP Damage (DNC Re-released)

    Quote Originally Posted by jonnybravo View Post
    well how to fix this :)

    Code:
    if((fromPlr->loadout_->GroupID == targetPlr->loadout_->GroupID && targetPlr->loadout_->GroupID != 0) || (fromPlr->loadout_->ClanID == targetPlr->loadout_->ClanID && targetPlr->loadout_->ClanID != 0))
            {
                return false;
            }
    comment this out :)
    I know, I've done that awhile ago now it's the problem that DEV's do dmg but players can't do any dmg to DEV's...

    And no, Godmode is not on.
    Last edited by TylerTurton; 19-11-14 at 02:16 PM.

  8. #8
    Grand Master jonnybravo is offline
    Grand MasterRank
    Sep 2006 Join Date
    772Posts

    Re: [Help] No PvP Damage (DNC Re-released)

    believe this is your problem in why dev's do no damage.

    Search
    Code:
    bool ServerGameLogic::CanDamageThisObject(const GameObject* targetObj)
    change:
    Code:
    if(plr && plr->profile_.ProfileData.isDevAccount && plr->profile_.ProfileData.isGod)
        {
            return false;
        }
    TO:
    Code:
    if(plr && plr->profile_.ProfileData.isGod)
        {
            return false;
        }
    If not I would have to look at the source more. I don't own the source you work with so it's hard to figure it out.



Advertisement