return PlayerTemplate_GivePlayerItem(player, template,
"pickup_weapon_rpc");
}
- case "droppedweapon":
- {
- switch (item.weapon)
- {
- case WEP_BLASTER.m_id:
- {
- return PlayerTemplate_GivePlayerItem(player, template,
- "pickup_weapon_shotgun");
- }
- case WEP_SHOTGUN.m_id:
- {
- return PlayerTemplate_GivePlayerItem(player, template,
- "pickup_weapon_shotgun");
- }
- case WEP_MACHINEGUN.m_id:
- {
- return PlayerTemplate_GivePlayerItem(player, template,
- "pickup_weapon_machinegun");
- }
- case WEP_MORTAR.m_id:
- {
- return PlayerTemplate_GivePlayerItem(player, template,
- "pickup_weapon_mortar");
- }
- case WEP_ELECTRO.m_id:
- {
- return PlayerTemplate_GivePlayerItem(player, template,
- "pickup_weapon_electro");
- }
- case WEP_CRYLINK.m_id:
- {
- return PlayerTemplate_GivePlayerItem(player, template,
- "pickup_weapon_crylink");
- }
- case WEP_VORTEX.m_id:
- {
- return PlayerTemplate_GivePlayerItem(player, template,
- "pickup_weapon_vortex");
- }
- case WEP_HAGAR.m_id:
- {
- return PlayerTemplate_GivePlayerItem(player, template,
- "pickup_weapon_hagar");
- }
- case WEP_DEVASTATOR.m_id:
- {
- return PlayerTemplate_GivePlayerItem(player, template,
- "pickup_weapon_devastator");
- }
- case WEP_SHOCKWAVE.m_id:
- {
- return PlayerTemplate_GivePlayerItem(player, template,
- "pickup_weapon_shockwave");
- }
- case WEP_ARC.m_id:
- {
- return PlayerTemplate_GivePlayerItem(player, template,
- "pickup_weapon_arc");
- }
- case WEP_HOOK.m_id:
- {
- return PlayerTemplate_GivePlayerItem(player, template,
- "pickup_weapon_hook");
- }
- case WEP_TUBA.m_id:
- {
- return PlayerTemplate_GivePlayerItem(player, template,
- "pickup_weapon_tuba");
- }
- case WEP_PORTO.m_id:
- {
- return PlayerTemplate_GivePlayerItem(player, template,
- "pickup_weapon_porto");
- }
- case WEP_FIREBALL.m_id:
- {
- return PlayerTemplate_GivePlayerItem(player, template,
- "pickup_weapon_fireball");
- }
- case WEP_MINE_LAYER.m_id:
- {
- return PlayerTemplate_GivePlayerItem(player, template,
- "pickup_weapon_minelayer");
- }
- case WEP_HLAC.m_id:
- {
- return PlayerTemplate_GivePlayerItem(player, template,
- "pickup_weapon_hlac");
- }
- case WEP_RIFLE.m_id:
- {
- return PlayerTemplate_GivePlayerItem(player, template,
- "pickup_weapon_rifle");
- }
- case WEP_SEEKER.m_id:
- {
- return PlayerTemplate_GivePlayerItem(player, template,
- "pickup_weapon_seeker");
- }
- case WEP_VAPORIZER.m_id:
- {
- return PlayerTemplate_GivePlayerItem(player, template,
- "pickup_weapon_vaporizer");
- }
- case WEP_HMG.m_id:
- {
- return PlayerTemplate_GivePlayerItem(player, template,
- "pickup_weapon_hmg");
- }
- case WEP_RPC.m_id:
- {
- return PlayerTemplate_GivePlayerItem(player, template,
- "pickup_weapon_rpc");
- }
- default:
- {
- PrintToChatAll(strcat("Unrecognized item, classname: ",
- item.classname, " netname: ", item.netname));
- return MUT_ITEMTOUCH_CONTINUE;
- }
- }
- }
case "replacedweapon":
{
switch (item.weapon)