Can anyone tell me why this weapon isn't working in zdoom 2.2.0 and gzdoom r 144? It works perfectly in most recent svn versions of both.
In zdoom 2.2.0 I don't get it when I type idfa or give bpistol. If I type summon bpistol I can hear it hitting the floor when I have a splash wad loaded but it is invisible and when I walk over it i don't pick it up. I know that I don't have it at all because the icon does not appear in the alt hud. All of these things work in the latest svn versions.
All my sprites are in the file inside proper markers and I have a proper working KEYCONF lump.
///////////////////////////////////////
//B-Pistol
///////////////////////////////////////
actor BPistol : Weapon 22001
{
Weapon.SelectionOrder 1800
weapon.AmmoUse 1
Weapon.AmmoGive 20
Weapon.AmmoType "Clip"
Obituary "%o was stopped by %k's B-Pistol."
Inventory.PickupMessage "Picked up a B-Pistol"
Weapon.Kickback 120
Decal BulletChip
Scale 0.5
States
{
Ready:
bfr1 A 1 A_WeaponReady
Loop
Deselect:
bfr1 A 1 A_Lower
Loop
Select:
bfr1 A 1 A_Raise
Loop
Fire:
bfr1 A 3
bfr1 A 0 bright A_PlayWeaponSound("BPistolfire")
bfr1 A 0 bright A_Light1
bfr1 B 4 bright A_FireBullets(3,3,1,28,"BulletPuff",1, 2048)
bfr1 C 4 bright
bfr1 A 1 A_Light0
bfr1 A 2 A_ReFire
Goto Ready
Spawn:
bfr2 A -1
Stop
}
}
Re: Weapon help!
Posted: Sun Sep 21, 2008 9:02 am
by Jimmy
Might it have something to do with the capitalization (or lack thereof) of the sprite frame names?
Re: Weapon help!
Posted: Sun Sep 21, 2008 9:03 am
by MasterOFDeath
Not 100% sure about this but try capitalizing your sprite names.
[edit]Darnit, Jimmy. :P
Re: Weapon help!
Posted: Sun Sep 21, 2008 9:16 am
by chevrolet103
Thanks for all the help it's working now.
Re: Weapon help!
Posted: Sun Sep 21, 2008 5:26 pm
by wildweasel
That occasionally happens to me, but for a different reason: check to make sure your pickup sprite is actually aligned above the floor level. In ZDoom, you'll still be able to see the weapon when this glitch occurs, but it'll appear below the floor. In GZDoom, it'll be invisible because GZDoom doesn't render below the floor.
Re: Weapon help!
Posted: Sun Sep 21, 2008 5:38 pm
by Enjay
He's off to bed now but it was the capitalisation thing, the pickup sprite was fine. IIRC, there was a removing of case sensitivity in DECORATE for some (all?) things quite recently. That was where the confusion crept in. He'd set things up, and they worked, in recent SVN versions but they didn't with older "official" versions, despite there being noting in there that should obviously cause problems with the older versions. So, older versions just treated it like a weapon that had no sprites - ie you could summon the invisible pickup but you couldn't actually get the weapon.