Skip to content

Commit e4d570e

Browse files
SmallJokersapier
authored and
sapier
committedAug 22, 2014
Reduce time of red screen when damaged
10 seconds in PvP is very long and annoying.
1 parent c58b9d8 commit e4d570e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/game.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -2399,8 +2399,8 @@ void the_game(bool &kill, bool random_input, InputHandler *input,
23992399
damage_flash += 8.0 * event.player_damage.amount;
24002400

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.