1. Welcome to the Brawl website! Feel free to look around our forums. Join our growing community by typing /register in-game!

damage bug!

Discussion in 'Capture the Flag' started by mikye, Jun 27, 2015.

Thread Status:
Please be aware that this thread is more than 30 days old. Do not post unless the topic can still be discussed. Read more...
  1. mikye

    mikye Well-Known Member

    Joined:
    May 17, 2015
    Messages:
    141
    Ratings:
    +62
    crits do 0.5 hp less when it should do more.
    testing with ninja
    ninja sword = 5.5hearts
    ninja sword + crit = 6hearts

    How to fix:
    if(e.getDamager() instanceof Player){ //test for player
    Player p = (Player) e.getDamager(); //get damager
    if(p.getFallDistance() != 0){ //test if they are critting (you should also add a check for blindness; //blindness = can't activate crits)
    e.setDamage(((e.getDamage() / 3) * 2) + 2);
    //divide the damage by 3 and x2 to get natural damage, add extra // damage
    }else{
    e.setDamage(e.getDamage() - 1); //on some servers, the sword damage is incorrect as in terms
    // of it doing 1 extra hp
    }
    }

    it's for everyone who says I can't do anything to help it and I should just wait

    i know nom has some better methods of doing this but eh this is a ez way
     
    • Like Like x 1
  2. FairyBlossom03

    FairyBlossom03 Active Member

    Joined:
    Sep 3, 2014
    Messages:
    324
    Ratings:
    +22
    Wait, I'm confused... Is it supposed to do more than 0.5 extra damage? I don't play for the kills so I don't notice this.
     
  3. mikye

    mikye Well-Known Member

    Joined:
    May 17, 2015
    Messages:
    141
    Ratings:
    +62
    crits are suppose to do 0.5 extra
    when they do 0.5 less
     
  4. FairyBlossom03

    FairyBlossom03 Active Member

    Joined:
    Sep 3, 2014
    Messages:
    324
    Ratings:
    +22
    Well, that's a bit pointless...
     
  5. furtles

    furtles Well-Known Member

    Joined:
    May 17, 2015
    Messages:
    945
    Ratings:
    +135
    Crit damage values were changed intentionally. Might be a result of that change.
     
Loading...
Similar Threads Forum Date
Scout fall damage steak and respawn bugs Capture the Flag Aug 1, 2020
Armor damage reductions for each class Capture the Flag Jun 17, 2020
Idea Damage Warp Suggestions KitBrawl May 23, 2020
Damage Warp Tutorial [All Difficulties] KitBrawl May 17, 2020
KitBrawl Damager feedback KitBrawl Apr 6, 2020
Thread Status:
Please be aware that this thread is more than 30 days old. Do not post unless the topic can still be discussed. Read more...