Thread: Vengeance help!

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Vengeance help! 
    Old School Member

    Join Date
    Feb 2008
    Age
    29
    Posts
    2,163
    Thanks given
    372
    Thanks received
    40
    Rep Power
    687
    Say if you cast veng and someone kills you your veng still hits even tho you die, which causes alot of double deaths, and unfair kills anyone know how to fix, it's for a d-s base.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Trock's Avatar
    Join Date
    Jul 2009
    Age
    28
    Posts
    1,915
    Thanks given
    14
    Thanks received
    66
    Rep Power
    532
    Post ur veng method
    Quote Originally Posted by Psyduck View Post
    Vouch

    Quote Originally Posted by VelSion View Post
    Huge Vouch, made so many deals with him, went smoothly!
    Reply With Quote  
     

  3. #3  
    Registered Member
    Swarfega's Avatar
    Join Date
    Sep 2007
    Age
    29
    Posts
    873
    Thanks given
    0
    Thanks received
    1
    Rep Power
    373
    Use the variable holding what player you're attacking and add something like this where the Vengeance damage is caused.

    Code:
    if(AttackPlayer.playerLevel[HPNumber] == 0) {
    return;
    }
    idk might work.
    Reply With Quote  
     

  4. #4  
    Old School Member

    Join Date
    Feb 2008
    Age
    29
    Posts
    2,163
    Thanks given
    372
    Thanks received
    40
    Rep Power
    687
    That wouldn't work because there hp is above 0 when you hit them. Vengeance hits before the player is dead.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Swarfega's Avatar
    Join Date
    Sep 2007
    Age
    29
    Posts
    873
    Thanks given
    0
    Thanks received
    1
    Rep Power
    373
    Ooh I missread. Maybe using the isDead boolean or something?

    inside the veng method

    Code:
    if(isDead == true) {
    return;
    }
    Could work.
    Reply With Quote  
     

  6. #6  
    Old School Member

    Join Date
    Feb 2008
    Age
    29
    Posts
    2,163
    Thanks given
    372
    Thanks received
    40
    Rep Power
    687
    You don't understand, the player isn't dead when you hit him he's still alive.
    Reply With Quote  
     

  7. #7  
    Old School Member

    Join Date
    Feb 2008
    Age
    29
    Posts
    2,163
    Thanks given
    372
    Thanks received
    40
    Rep Power
    687
    bump
    Reply With Quote  
     

  8. #8  
    Registered Member
    discipl3's Avatar
    Join Date
    Sep 2008
    Posts
    324
    Thanks given
    1
    Thanks received
    5
    Rep Power
    95
    Hmm.. try something like

    Code:
    if(Attackingon2.currentHealth - hitDiff <= 0 ) {
    return;
    }
    I doubt thats correct, but what i mean is, it will caulcuate if the hit you do brings him to 0 hp. If he is at 0 hp, then it will return, so the vengeance will not be used.
    All models i post are made by me. Yay.
    Quote Originally Posted by Koâk View Post
    I WILL RAPE++
    Reply With Quote  
     

  9. #9  
    Old School Member

    Join Date
    Feb 2008
    Age
    29
    Posts
    2,163
    Thanks given
    372
    Thanks received
    40
    Rep Power
    687
    hes alive when you hit him dont you understand
    Reply With Quote  
     

  10. #10  
    Registered Member
    discipl3's Avatar
    Join Date
    Sep 2008
    Posts
    324
    Thanks given
    1
    Thanks received
    5
    Rep Power
    95
    Yes, i am aware of that.

    Code:
    if(Attackingon2.currentHealth - hitDiff <= 0 ) {
    return;
    }
    This code checks as it does the damage if the damage delt lowers him to 0 hp. If its equal to or below 0, it will not venge.
    All models i post are made by me. Yay.
    Quote Originally Posted by Koâk View Post
    I WILL RAPE++
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

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