Allow axis players to select kar98 sniper on 2.0 and above by choosing german panzer skins
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 18s

This commit is contained in:
smallmodel 2025-01-19 19:16:28 +01:00
parent 83caae7586
commit 8fdc66d138
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -8923,7 +8923,11 @@ void Player::EquipWeapons()
}
break;
case NA_GERMAN:
if (g_target_game < target_game_e::TG_MOHTA || dmflags->integer & DF_OLD_SNIPER) {
if (g_target_game < target_game_e::TG_MOHTA || dmflags->integer & DF_OLD_SNIPER
// Added in OPM
// This was also a feature of Daven's fixes
// Use KAR98 for panzer skins
|| !Q_stricmpn(client->pers.dm_playergermanmodel, "german_panzer", 13)) {
// Old snipers are forced older versions of the game
giveItem("weapons/kar98sniper.tik");
event->AddString("KAR98 - Sniper");