Skip to content

Commit

Permalink
Some more code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
DrinkyBird committed Sep 8, 2018
1 parent 64edc24 commit 510ed1e
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/source/litespre.bcs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ enum
GENDER_OTHER = 2
};

enum
{
LSMSG_MULTI = 69420,
LSMSG_SPREE = 69421
};

strict namespace {

function void LS_PlayerInit(int idx)
Expand Down Expand Up @@ -147,7 +153,7 @@ Script LSS_AnnounceMultiKill (int msg, int player, int parm) CLIENTSIDE
}

HudMessage(s: "\c", s: multic[index], l: lang; HUDMSG_FADEOUT | HUDMSG_LOG,
69420, CR_WHITE, 1.5, 0.25, msgTime
LSMSG_MULTI, CR_WHITE, 1.5, 0.25, msgTime
);

SetFont("DOOMFONT");
Expand All @@ -165,7 +171,7 @@ Script LSS_AnnounceMultiKill (int msg, int player, int parm) CLIENTSIDE
str langs = StrParam(s: "spree", d: parm);

HudMessageBold(s: "\cf", n: player + 1, s: "\cj is", s: isona, s: " \c", s: spreec[parm], l: langs ; HUDMSG_FADEOUT | HUDMSG_LOG,
69421, CR_WHITE, 1.5, 0.2, msgTime
LSMSG_SPREE, CR_WHITE, 1.5, 0.2, msgTime
);

if (ConsolePlayerNumber() == player)
Expand All @@ -185,13 +191,13 @@ Script LSS_AnnounceMultiKill (int msg, int player, int parm) CLIENTSIDE
if (isKillerFake || killer == player)
{
HudMessageBold(s: "\cf", n: player + 1, s: "\cj was looking good until ", s: they, s:" killed ", s: themselves; HUDMSG_FADEOUT | HUDMSG_LOG,
69421, CR_WHITE, 1.5, 0.2, 1.0
LSMSG_SPREE, CR_WHITE, 1.5, 0.2, 1.0
);
}
else
{
HudMessageBold(s: "\cf", n: player + 1, s: "\cj's killing spree was ended by \cf", n: killer + 1; HUDMSG_FADEOUT | HUDMSG_LOG,
69421, CR_WHITE, 1.5, 0.2, 1.0
LSMSG_SPREE, CR_WHITE, 1.5, 0.2, 1.0
);
}

Expand Down

0 comments on commit 510ed1e

Please sign in to comment.