Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

help to reload on zdoom

Recommended Posts

hello, i tried to use Xaser's "COPGun" so i could use the altfire to reload.

heres the portion of the DECORATE lump that zdoom crashes on,

ACTOR ZenII : Weapon 2005
   Inventory.PickupSound "weapons/zenreload1"
   Inventory.PickupMessage "You got the Zen II SMG!"
   Weapon.AmmoType "Clip"
   Weapon.AmmoGive 60
   Weapon.AmmoUse 1
   Weapon.Kickback 20
   AttackSound "weapons/zenfire"
      ZSMG A -1
      ZENG A 1 A_WeaponReady
      ZENX ABCDEF 1 
      ZENG A 1 A_Raise
      ZENG A 0 A_JumpIfInventory("Zen2InClip", 1, 2)
      ZENG A 1
      Goto Ready
      ZENG A 0 A_GunFlash
      ZENG A 0 A_FireCustomMissile("CheapAlert",0,0,0,0)
      ZENG A 0 A_TakeInventory("Zen2InClip",1)
      ZENG BC 1 Bright A_FireBullets(2,2,1,10,0,0)
      ZENG C 1 Bright
      ZENG A 1 A_ReFire
      Goto Ready
      ZENG A 1
      ZENG A 1 A_ReFire
      Goto Ready
      ZENG A 0 A_JumpIfInventory("Zen2InClip", 30, 2)
      ZENG A 0 A_JumpIfInventory("Clip", 1, 2)
      ZENG A 0 
      Goto Ready
      ZENG D 1 A_PlaySound("weapons/zenreload2")
      ZENG E 1
      ZENG FG 1
      ZENG H 1
      ZENG T 0 A_TakeInventory("Clip",15)   <--- somewhere between here
      ZENG T 0 A_GiveInventory("zen2InClip",15)
      ZENG T 0 A_JumpIfInventory("zen2inclip",30,2)
      ZENG T 0 A_JumpIfInventory("Clip",1,2)
      ZENG T 0 <--- and here.
      Goto AltFire+22
      ZENG T 0 
      Goto AltFire+16
      ZENG T 1 A_PlaySound("weapons/zenreload1")
      ZENG U 1
      ZENG V 1 
      ZENG W 1
      ZENG XYZ 1
      ZENG "[" 1
      ZENG "" 1
      ZENG A 1
      Goto Ready
      MAGG K 1 Bright A_Light2
      MAGG K 1 Bright A_Light1
      MAGG K 1 Bright A_Light0
it crashes when Zen2InClip gets to 30.

[out of AlternateWeps3.wad]

Share this post

Link to post

Two things -

1) Perhaps you could denote WHERE line 30 is in your code or at least post the error message that you got (it would help a LOT)

2) Which version of ZDoom were you running?

EDIT - Nevermind, my lack of knowledge has been displaced by superior means :P

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now