summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0666734)
raw | patch | inline | side by side (parent: 0666734)
author | fgsfds <pvt.fgsfds@gmail.com> | |
Tue, 6 Aug 2019 17:52:32 +0000 (20:52 +0300) | ||
committer | fgsfds <pvt.fgsfds@gmail.com> | |
Tue, 6 Aug 2019 17:52:32 +0000 (20:52 +0300) |
src/game/g_player.pas | patch | blob | history |
diff --git a/src/game/g_player.pas b/src/game/g_player.pas
index 6bfc34c0de5302e5291f7d323429e2df16249fbb..7db6de1ed38b0f592bbf5ea1fc77e9c21b7d6033 100644 (file)
--- a/src/game/g_player.pas
+++ b/src/game/g_player.pas
end;
FFirePainTime := FFirePainTime - 1;
FFireTime := FFireTime - 1;
+ if ((FFireTime mod 36) = 0) and (FMegaRulez[MR_INVUL] < gTime) then
+ FModel.PlaySound(MODELSOUND_PAIN, 1, FObj.X, FObj.Y);
if (FFireTime = 0) and g_Game_IsNet and g_Game_IsServer then
MH_SEND_PlayerStats(FUID);
end;
else if FHealth > -50 then Kill(K_HARDKILL, FLastSpawnerUID, FLastHit)
else Kill(K_EXTRAHARDKILL, FLastSpawnerUID, FLastHit);
- if FAlive then
+ if FAlive and (FFireTime <= 0) then
begin
if FDamageBuffer <= 20 then FModel.PlaySound(MODELSOUND_PAIN, 1, FObj.X, FObj.Y)
else if FDamageBuffer <= 55 then FModel.PlaySound(MODELSOUND_PAIN, 2, FObj.X, FObj.Y)