cz61.c 853 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /**@class CZ61_Base
  2. * @brief basic CZ61 Skorpion submachine gun
  3. **/
  4. class CZ61_Base : RifleBoltLock_Base
  5. {
  6. void CZ61()
  7. {
  8. }
  9. override RecoilBase SpawnRecoilObject()
  10. {
  11. return new Cz61Recoil(this);
  12. }
  13. //some command is different for this weapon
  14. override int GetWeaponSpecificCommand(int weaponAction ,int subCommand)
  15. {
  16. if ( weaponAction == WeaponActions.CHAMBERING)
  17. {
  18. switch (subCommand)
  19. {
  20. case WeaponActionChamberingTypes.CHAMBERING_ONEBULLET_UNIQUE_CLOSED:
  21. return WeaponActionChamberingTypes.CHAMBERING_ONEBULLET_OPENED;
  22. default:
  23. return subCommand;
  24. }
  25. }
  26. return subCommand;
  27. }
  28. //Debug menu Spawn Ground Special
  29. override void OnDebugSpawn()
  30. {
  31. GameInventory inventory = GetInventory();
  32. inventory.CreateInInventory( "PistolSuppressor" );
  33. SpawnAttachedMagazine("Mag_CZ61_20Rnd");
  34. }
  35. };