Skip to content

Commit

Permalink
Gamemode Music System
Browse files Browse the repository at this point in the history
  • Loading branch information
sabianroberts committed Oct 8, 2024
1 parent 849d7f6 commit c043e2c
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions binary/dlls/triggers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ void PlayCDTrack( int iTrack )
continue;
}

if (ARENA != AgGametype())
if (ARENA != AgGametype() && CTF!= AgGametype())
{
if (iTrack == -1)
{
Expand All @@ -744,7 +744,33 @@ void PlayCDTrack( int iTrack )
}
else
{
ClientPrint(&pClient->v, HUD_PRINTCONSOLE, "Map music unavailable in Arena games\n");
ClientPrint(&pClient->v, HUD_PRINTCONSOLE, "Map music unavailable in this gamemode\n");
}

if (ARENA == AgGametype())
{
if (iTrack == -1)
{

CLIENT_COMMAND(pClient, "cd play 5\n");
// TODO: make this random CLIENT_COMMAND(pClient, "cd play 3\n");
}
else
{
CLIENT_COMMAND(pClient, "echo ZEKE WAS HERE\n");
}
}

if (CTF == AgGametype())
{
if (iTrack == -1)
{
CLIENT_COMMAND(pClient, "echo CTF Music Not Made Yet Pal\n");
}
else
{
CLIENT_COMMAND(pClient, "echo ZEKE WAS HERE\n");
}
}
}
}
Expand Down

0 comments on commit c043e2c

Please sign in to comment.