Skip to content

Commit

Permalink
Reduce time of red screen when damaged
Browse files Browse the repository at this point in the history
10 seconds in PvP is very long and annoying.
  • Loading branch information
SmallJoker authored and sapier committed Aug 22, 2014
1 parent c58b9d8 commit e4d570e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game.cpp
Expand Up @@ -2399,8 +2399,8 @@ void the_game(bool &kill, bool random_input, InputHandler *input,
damage_flash += 8.0 * event.player_damage.amount;

player->hurt_tilt_timer = 1.5;
player->hurt_tilt_strength = event.player_damage.amount/2;
player->hurt_tilt_strength = rangelim(player->hurt_tilt_strength, 2.0, 10.0);
player->hurt_tilt_strength = event.player_damage.amount/4;
player->hurt_tilt_strength = rangelim(player->hurt_tilt_strength, 1.0, 4.0);

MtEvent *e = new SimpleTriggerEvent("PlayerDamage");
gamedef->event()->put(e);
Expand Down

0 comments on commit e4d570e

Please sign in to comment.