Skip to content

Commit

Permalink
Heal in larger chunks less frequently (heal weapon)
Browse files Browse the repository at this point in the history
  • Loading branch information
theonlypwner committed Jun 9, 2019
1 parent 1a667cc commit 6cffc51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/src/serverevents.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ void shotevent::process(client *ci)
serverdamage(*hit, c, dmg, weap, flags, cs.o, dist);
damagedealt += dmg;
}
loopi(&c == hit ? 25 : 15)
loopi(&c == hit ? 5 : 3)
// heals over the next 1 to 2.5 seconds (no time perk, for others)
hit->addtimer(new healevent(gamemillis + (10 + i) * 100 / (cs.perk1 == PERK_POWER ? 2 : 1), c.clientnum, cs.perk1 == PERK_POWER ? 2 : 1));
hit->addtimer(new healevent(gamemillis + (2 + i) * 500 / (cs.perk1 == PERK_POWER ? 2 : 1), c.clientnum, cs.perk1 == PERK_POWER ? 10 : 5));
if (hit == &c) (end = to).sub(from).normalize().add(from); // 25 cm fx
// hide blood for healing weapon
// sendhit(c, WEAP_HEAL, end, dmg); // blood
Expand Down

0 comments on commit 6cffc51

Please sign in to comment.