summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d791e7c)
raw | patch | inline | side by side (parent: d791e7c)
author | TerminalHash <lyashuk.voxx@gmail.com> | |
Mon, 28 Aug 2023 12:40:49 +0000 (15:40 +0300) | ||
committer | TerminalHash <lyashuk.voxx@gmail.com> | |
Mon, 28 Aug 2023 12:40:49 +0000 (15:40 +0300) |
src/game/g_game.pas | patch | blob | history | |
src/game/g_player.pas | patch | blob | history |
diff --git a/src/game/g_game.pas b/src/game/g_game.pas
index 9e7b4a25e56e385a6204bc6ecfc113ef72ccbfe8..51044e4d620263455dd5b1823073022eccbe4460 100644 (file)
--- a/src/game/g_game.pas
+++ b/src/game/g_game.pas
e_TextureFontPrintEx(x+16, _y, s1, gStdFont, r, g, b, 1);
e_TextureFontPrintEx(x+w1+16, _y, IntToStr(gTeamStat[a].Score),
gStdFont, r, g, b, 1);
- e_TextureFontPrintEx(x+w1+w2+16, _y, _lc[I_GAME_FRAGS],
+ e_TextureFontPrintEx(x+w1+w2, _y, _lc[I_GAME_FRAGS],
gStdFont, r, g, b, 1);
e_TextureFontPrintEx(x+w1+w2+72, _y, _lc[I_GAME_ASSISTS],
gStdFont, r, g, b, 1);
else
e_TextureFontPrintEx(x+16, _y, Name, gStdFont, rr, gg, bb, 1);
e_TextureFontPrintEx(x+w1+16, _y, IntToStr(Frags), gStdFont, rr, gg, bb, 1);
- e_TextureFontPrintEx(x+w1+w2+16, _y, IntToStr(Assists), gStdFont, rr, gg, bb, 1);
- e_TextureFontPrintEx(x+w1+w2+w3+16, _y, IntToStr(Deaths), gStdFont, rr, gg, bb, 1);
+ e_TextureFontPrintEx(x+w1+72, _y, IntToStr(Assists), gStdFont, rr, gg, bb, 1);
+ e_TextureFontPrintEx(x+w1+w2+16, _y, IntToStr(Deaths), gStdFont, rr, gg, bb, 1);
_y := _y+24;
end;
diff --git a/src/game/g_player.pas b/src/game/g_player.pas
index 4e5b60e453dce9ab8e20e4fcaf921b15e256fb32..22813f1dfac378f0f37af6fa05e0c3e7c9faaa1c 100644 (file)
--- a/src/game/g_player.pas
+++ b/src/game/g_player.pas
FKills: Integer;
FMonsterKills: Integer;
FFrags: Integer;
- FAssists: Integer;
+ FAssists: Integer;
FFragCombo: Byte;
FLastFrag: LongWord;
FComboEvnt: Integer;
end;
end;
+ // FRAGS
s := IntToStr(p)+' / '+IntToStr(Length(stat))+' ';
if Frags >= m then s := s+'+' else s := s+'-';
s := s+IntToStr(Abs(Frags-m));
+ // ASSISTS
t := IntToStr(p)+' / '+IntToStr(Length(stat))+' ';
if Assists >= m then t := t+'+' else t := t+'-';
t := t+IntToStr(Abs(Assists-m));
FNextWeapDelay := 0;
end;
+
// Assists block
-procedure TPlayer.Assist();
+{procedure TPlayer.Assist(KillType: Byte; SpawnerUID: Word);
var
DoAssists: Boolean;
+ AP: TPlayer;
+
+ procedure Accumulate(FDamage: Byte;);
+ begin
+
+ end;
+
+
begin
DoAssists := (gGameSettings.GameMode = GM_TDM) or (gGameSettings.GameMode = GM_CTF);
-
- if (DoAssists or (gGameSettings.GameMode = GM_TDM)) then
+ if DoAssists then
begin
- if a = 4 then
+ if (FAccumulatedDamage >= 65) then
begin
- Inc(KP.FAssists);
+ Inc(AP.FAssists);
end;
end;
-end;
+end;}
function TPlayer.hasAmmoForWeapon (weapon: Byte): Boolean;