[fixed][0.9.1] Zen Dynamics ammo handling is screwed up.
Moderator: Graf Zahl
- 
				TheDarkArchon
														 - Posts: 1000
 - Joined: Wed Jul 06, 2005 11:58
 - Location: What's that fucking smell
 
[fixed][0.9.1] Zen Dynamics ammo handling is screwed up.
Weapons use twice as much ammo to reload and weapons drain reserve ammo when they fire.
			
			
									
						
										
						- 
				wildweasel
														 - DRD Team Admin (Inactive)
 - Posts: 2132
 - Joined: Wed Jun 29, 2005 22:00
 - Location: the Admincave!
 
- 
				Graf Zahl
														 - GZDoom Developer

 - Posts: 7148
 - Joined: Wed Jul 20, 2005 9:48
 - Location: Germany
 
- 
				wildweasel
														 - DRD Team Admin (Inactive)
 - Posts: 2132
 - Joined: Wed Jun 29, 2005 22:00
 - Location: the Admincave!
 
- 
				TheDarkArchon
														 - Posts: 1000
 - Joined: Wed Jul 06, 2005 11:58
 - Location: What's that fucking smell
 
I think the ignorance of UseNoAmmo is the problem: My version of the Zen SMG, which ejects smoke and casing as well as a bullet, uses 3 ammo per shot instead of one.
The DECORATE code:
			
			
									
						
										
						The DECORATE code:
Code: Select all
ACTOR ZenSMG : Weapon
{
   Weapon.SelectionOrder 200
   Inventory.PickupSound "misc/w_pkup"
   Inventory.PickupMessage "You got the Zen-II 9mm SMG!"
   Weapon.AmmoType "ZenClip"
   Weapon.AmmoGive 25
   Weapon.AmmoUse 1
   Weapon.Kickback 90
   AttackSound "weapons/zenfire"
   Obituary "%o face %k's Zen II SMG"
   States
   {
   Spawn:
      ZSMG A -1
      Loop
   Ready:
      ZENG A 1 A_WeaponReady
      Loop
   Deselect:
      ZENG A 1 A_Lower
      Loop
   Select:
      ZENG A 1 A_Raise
      Loop
   Fire:
      ZENG A 0 A_GunFlash
	ZENG B 0 BRIGHT A_FireCustomMissile("ZenSmoke",0,0,1,6)
	ZENG B 0 BRIGHT A_FireCustomMissile("9MMcasing",-45+random(-8,8),0,0,6)
      ZENG B 1 BRIGHT A_FireBullets(4,4,1,3,0,1,7296)
      ZENG C 1 BRIGHT
      ZENG D 2
      ZENG A 2 A_Refire  
      goto Ready
   Flash:
      ZENF A 1 BRIGHT A_Light2
      ZENF B 1 BRIGHT A_Light1
      ZENF E 0 BRIGHT A_Light0
      Stop
   }
}
ACTOR ZenClip : Ammo 2007
{
	Radius 20
	Height 16
	Inventory.PickupMessage "Picked up a Zen-II 9mm clip."
        Inventory.PickupSound "misc/i_pkup"
	Inventory.Amount 25
	Inventory.MaxAmount 350
	Ammo.BackpackAmount 25
	Ammo.BackpackMaxAmount 700
	Inventory.Icon ZCLPA0
	States
	{
	Spawn:
	      ZCLP A -1
	      Stop
	}
}
- 
				Graf Zahl
														 - GZDoom Developer

 - Posts: 7148
 - Joined: Wed Jul 20, 2005 9:48
 - Location: Germany