Add sounds on injection

This commit is contained in:
Wizzard 2023-09-19 18:54:15 -04:00
parent b7bac66484
commit c1ff555e17
2 changed files with 15 additions and 0 deletions

View File

@ -13,5 +13,6 @@ GameType get_current_game(void);
int IsCS16(void); int IsCS16(void);
int IsHalfLife(void); int IsHalfLife(void);
int IsDayOfDefeat(void); int IsDayOfDefeat(void);
int IsTFC(void);
#endif #endif

View File

@ -40,6 +40,20 @@ void load(void) {
/* Get game version after injecting */ /* Get game version after injecting */
//this_game_id = get_cur_game(); //this_game_id = get_cur_game();
if (IsCS16()) {
i_engine->pfnClientCmd("play 'sound/radio/go.wav'");
}
else if (IsDayOfDefeat()) {
i_engine->pfnClientCmd("play 'sound/player/gersniper.wav'");
}
else if (IsTFC()) {
i_engine->pfnClientCmd("play 'sound/misc/party2.wav'");
}
else
{
i_engine->pfnClientCmd("play 'valve/sound/vox/suit.wav'");
}
i_engine->pfnClientCmd("echo \"goldsource-cheat loaded successfully!\""); i_engine->pfnClientCmd("echo \"goldsource-cheat loaded successfully!\"");
i_engine->pfnClientCmd("echo \"Deadzone rulez!\""); i_engine->pfnClientCmd("echo \"Deadzone rulez!\"");
i_engine->pfnClientCmd("echo \"https://git.deadzone.lol/Wizzard/goldsource-cheat\""); i_engine->pfnClientCmd("echo \"https://git.deadzone.lol/Wizzard/goldsource-cheat\"");