Reduce time of red screen when damaged
authorSmallJoker <st.rentsch@hotmail.com>
Thu, 21 Aug 2014 18:01:03 +0000 (20:01 +0200)
committersapier <Sapier at GMX dot net>
Fri, 22 Aug 2014 20:19:07 +0000 (22:19 +0200)
10 seconds in PvP is very long and annoying.

src/game.cpp

index 768193147dd575dff3f7bbe4ce1d7ff74cd5249e..e25210337c1615feded3f4514640f111e17f4c60 100644 (file)
@@ -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);