Actor TAODPistol: Weapon 15001
{
Game Doom
Weapon.Ammogive 12
Weapon.AmmoUse 1
Weapon.SelectionOrder 10
Weapon.KickBack 10
Weapon.AmmoType "Clip"
Obituary "o% was shot by k%"
states
{
Spawn:
ULGN A -1
Stop
Ready:
TPIL A 2 A_WeaponReady
Loop
Select:
TPIL A 2 A_Raise
Loop
Deselect:
TPIL A 2 A_Lower
Loop
Fire:
TPIL B 2 A_PlaySound ("PISTOL1")
TPIL C 2 A_FireBullets (2, 2, 1, 20, "PistolPuff")
TPIL D 2 Bright
TPIL E 2 Bright
TPIL F 2 Bright
TPIL G 2 Bright
TPIL H 2 A_ReFire
Goto Ready
}
}
Actor PistolPuff
{
Radius 32
Height 32
Damage 20
+NOGRAVITY
+ACTIVATEIMPACT
+PUFFONACTORS
States
{
Spawn:
TNT1 A 1
Stop
}
}
But if i do this:
Actor TAODPistol: Weapon replaces Pistol
{
Game Doom
Weapon.Ammogive 12
Weapon.AmmoUse 1
Weapon.SelectionOrder 10
Weapon.KickBack 10
Weapon.AmmoType "Clip"
Obituary "o% was shot by k%"
states
{
Spawn:
ULGN A -1
Stop
Ready:
TPIL A 2 A_WeaponReady
Loop
Select:
TPIL A 2 A_Raise
Loop
Deselect:
TPIL A 2 A_Lower
Loop
Fire:
TPIL B 2 A_PlaySound ("PISTOL1")
TPIL C 2 A_FireBullets (2, 2, 1, 20, "PistolPuff")
TPIL D 2 Bright
TPIL E 2 Bright
TPIL F 2 Bright
TPIL G 2 Bright
TPIL H 2 A_ReFire
Goto Ready
}
}
Actor PistolPuff
{
Radius 32
Height 32
Damage 20
+NOGRAVITY
+ACTIVATEIMPACT
+PUFFONACTORS
States
{
Spawn:
TNT1 A 1
Stop
}
}
It causes EVEN MORE issues.
These issues include but not limited to:
Weapon not appearing on the map
Gzdoom not starting due to things like: weapon.ammouse or other properties being unknown, A_weaponready and other functions being unknown etc.
DECORATE warning in "PISTOL.wad\DECORATE:0", line 35. Unable to find "Weapon" class to inherit from, while parsing "TAODPistol:15001".
gzdoom not being able to find a specific sprite lump
Conflicts between the weapon and the pistol
and a bunch of other things.
I'm just about on the verge of giving up, Can someone help me please?.
