Skip to content

Fix Purple Dildo and Silver Vibrator weapon names #3801

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
4 changes: 2 additions & 2 deletions Client/mods/deathmatch/logic/CClientPickupManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ using std::list;

static const SFixedArray<unsigned short, 47> g_usWeaponModels = {{
0, 331, 333, 334, 335, 336, 337, 338, 339, 341, // 9
321, 322, 323, 0, 325, 326, 342, 343, 344, 0, // 19
321, 322, 323, 324, 325, 326, 342, 343, 344, 0, // 19
0, 0, 346, 347, 348, 349, 350, 351, 352, 353, // 29
355, 356, 372, 357, 358, 359, 360, 361, 362, 363, // 39
364, 365, 366, 367, 368, 369, 371 // 46
Expand Down Expand Up @@ -92,7 +92,7 @@ bool CClientPickupManager::IsValidPickupID(unsigned short usPickupID)

bool CClientPickupManager::IsValidWeaponID(unsigned short usWeaponID)
{
return (usWeaponID > 0 && usWeaponID != 13 && usWeaponID != 19 && usWeaponID != 20 && usWeaponID != 21 && usWeaponID <= 46);
return (usWeaponID > 0 && usWeaponID != 19 && usWeaponID != 20 && usWeaponID != 21 && usWeaponID <= 46);
}

bool CClientPickupManager::IsPickupLimitReached()
Expand Down
4 changes: 2 additions & 2 deletions Client/mods/deathmatch/logic/CWeaponNames.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ static const SWeaponName _WeaponNames[] = {{"Fist"},
{"Poolstick"},
{"Katana"},
{"Chainsaw"},
{"Purple Dildo"},
{"Dildo"},
{"Dildo"},
{"Vibrator"},
{"Vibrator"},
{"Silver Vibrator"},
{"Flower"},
{"Cane"},
{"Grenade"},
Expand Down
4 changes: 2 additions & 2 deletions Server/mods/deathmatch/logic/CPickupManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

static SFixedArray<unsigned short, 47> g_usWeaponModels = {{
0, 331, 333, 334, 335, 336, 337, 338, 339, 341, // 9
321, 322, 323, 0, 325, 326, 342, 343, 344, 0, // 19
321, 322, 323, 324, 325, 326, 342, 343, 344, 0, // 19
0, 0, 346, 347, 348, 349, 350, 351, 352, 353, // 29
355, 356, 372, 357, 358, 359, 360, 361, 362, 363, // 39
364, 365, 366, 367, 368, 369, 371 // 46
Expand Down Expand Up @@ -65,7 +65,7 @@ bool CPickupManager::Exists(CPickup* pPickup)

bool CPickupManager::IsValidWeaponID(unsigned int uiWeaponID)
{
return (uiWeaponID > 0 && uiWeaponID != 13 && uiWeaponID != 19 && uiWeaponID != 20 && uiWeaponID != 21 && uiWeaponID <= 46);
return (uiWeaponID > 0 && uiWeaponID != 19 && uiWeaponID != 20 && uiWeaponID != 21 && uiWeaponID <= 46);
}

unsigned short CPickupManager::GetWeaponModel(unsigned int uiWeaponID)
Expand Down
4 changes: 2 additions & 2 deletions Server/mods/deathmatch/logic/CWeaponNames.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ SWeaponName WeaponNames[] = {{"Fist"},
{"Poolstick"},
{"Katana"},
{"Chainsaw"},
{"Purple Dildo"},
{"Dildo"},
{"Dildo"},
{"Vibrator"},
{"Vibrator"},
{"Silver Vibrator"},
{"Flower"},
{"Cane"},
{"Grenade"},
Expand Down
Loading