Skip to content
Snippets Groups Projects
Commit e4d570ea authored by SmallJoker's avatar SmallJoker Committed by sapier
Browse files

Reduce time of red screen when damaged

10 seconds in PvP is very long and annoying.
parent c58b9d8d
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment