Well, I'm Making A Mod Named "Shells The Way Id Did" That Just Adds Casings To Doom.
And There Is A Glitch With The Chaingun That Makes The Pickup Sprite Appear On The Corner Of The Screen When You Shoot.
Here Is The Code So Someone Can Fix It.
ACTOR ShelledChaingun : DoomWeapon Replaces Chaingun
{
Weapon.SelectionOrder 700
Weapon.AmmoUse 1
Weapon.AmmoGive 20
Weapon.AmmoType "Clip"
Inventory.PickupMessage "$GOTCHAINGUN" // "You got the chaingun"
Obituary "$OB_MPCHAINGUN" // "%o was mowed down by %k's chaingun."
Tag "$TAG_CHAINGUN"
States
{
Ready:
CHGG A 1 A_WeaponReady
Loop
Deselect:
CHGG A 1 A_Lower
Loop
Select:
CHGG A 1 A_Raise
Loop
Fire:
FIRC B 0 A_SpawnItemEx("Casings",28, 0, 30, 0,5,5,0,"",0,"")
FIRC B 4 A_FireCGun
FIRC C 0 A_SpawnItemEx("Casings",28, 0, 30, 0,5,5,0,"",0,"")
FIRC C 4 A_FireCGun
FIRC C 0 A_ReFire
Goto Ready
Flash:
FIRC A 0 Bright A_Light1
Spawn:
MGUN A -1
Stop
}
}
Can Someone Please Fix This.
Glitch:Weapon Pickup Sprite Showing Up While Firing
Moderator: GZDoom Developers
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
-
-
- Posts: 1693
- Joined: Wed May 13, 2009 3:15 am
- Graphics Processor: nVidia with Vulkan support
Re: Glitch:Weapon Pickup Sprite Showing Up While Firing
You need at least to add another Stop just before Spawn:, i.e.:
Code: Select all
Flash:
FIRC A 0 Bright A_Light1
Stop // <-- Here
Spawn:
MGUN A -1
Stop
Code: Select all
Flash:
FIRC A 4 A_Light1
FIRC A 0 A_Light0
Stop