izh18.c 489 B

123456789101112131415161718192021222324252627
  1. /**@class Izh18_Base
  2. * @brief base for Izh18
  3. * @NOTE name copies config base class
  4. **/
  5. class Izh18_Base extends RifleSingleShot_Base
  6. {
  7. void Izh18_Base ()
  8. {
  9. }
  10. override RecoilBase SpawnRecoilObject()
  11. {
  12. return new Izh18Recoil(this);
  13. }
  14. //Debug menu Spawn Ground Special
  15. override void OnDebugSpawn()
  16. {
  17. super.OnDebugSpawn();
  18. EntityAI entity;
  19. if ( Class.CastTo(entity, this) )
  20. {
  21. entity.SpawnEntityOnGroundPos("Ammo_762x39", entity.GetPosition());
  22. }
  23. }
  24. };