Essentially, I cannot pick up the weapon, nor can I switch to it when I give it to myself via console. Can anybody with experience when it comes to custom weapons spot what I'm doing wrong?
Code: Select all
Actor 8CUltraShotgun : Weapon 12666
{
obituary "%o was obliterated by %k's Ultra-Shotgun!"
Inventory.pickupmessage "You picked up the Ultra Shotgun"
Radius 20
Height 16
Weapon.SelectionOrder 2600
Weapon.SlotNumber 3
Weapon.kickback 75
Weapon.AmmoType1 "Shell"
Weapon.AmmoGive 8
Weapon.AmmoUse1 1
+WEAPON.NOAUTOAIM
Decal BulletChip
States
{
Ready:
D4QA A 1 A_WeaponReady
Loop
Spawn:
D4QW A -1
Stop
Deselect:
D4QB A 1 A_Lower
Loop
Select:
D4QB A 1 A_Raise
Loop
Fire:
D4QB A 2
D4QB A 0 A_CheckReload
D4QB A 0 A_FireCustomMissile("GunFlash",-5,0,-85,0,random(-10,10))
D4QB A 0 A_FireCustomMissile("SparkFlash",0,0,0,0)
D4QB AAAAAAAAAAAAAAAA 0 A_FireCustomMissile("BulletTracer", random(-14,14), 0, 0, -12, 0, random(-6,6))
D4QB AAAAAAAAAAAAAAAA 0 A_FireCustomMissile("BulletTracer", random(-14,14), 0, 0, -12, 0, random(-6,6))
D4QB A 0 A_PlaySound("D4QuadBarrel/fir", 1)
D4QB A 2 A_GunFlash
D4QB B 0 A_FireBullets (14, 6, 10, 11, "BulletPuff", FBF_USEAMMO|FBF_NORANDOM)
D4QB B 0 A_FireBullets (14, 6, 10, 11, "BulletPuff", FBF_USEAMMO|FBF_NORANDOM)
D4QB B 0 A_FireBullets (14, 6, 10, 11, "BulletPuff", FBF_USEAMMO|FBF_NORANDOM)
D4QB B 0 A_FireBullets (14, 6, 10, 11, "BulletPuff", FBF_USEAMMO|FBF_NORANDOM)
D4QB B 2 A_setpitch(pitch-12.0)
D4QB A 1 A_setpitch(pitch+8.0)
D4QB A 1 A_CheckReload
D4QB CDEF 2 A_setpitch(pitch-0.2)
D4QB GHI 2 A_setpitch(pitch+0.2)
D4QB J 2 A_PlaySound("D4Reload1/ssg", 1)
D4QB J 0 A_setpitch(pitch-0.2)
D4QB KL 2 A_setpitch(pitch+0.2)
D4QC L 2 A_setpitch(pitch+0.2)
D4QB M 2 A_setpitch(pitch+0.2)
D4QB NOP 2 A_setpitch(pitch+0.2)
D4QB Q 2 A_PlaySound("D4Reload2/ssg", 1)
D4QB Q 0 A_setpitch(pitch+0.2)
D4QC Q 2 A_setpitch(pitch+0.2)
D4QB RS 2 A_setpitch(pitch+0.2)
D4QB T 2 A_PlaySound("D4Reload3/ssg", 1)
D4QB T 0 A_setpitch(pitch-0.2)
D4QB UVW 2 A_setpitch(pitch-0.2)
D4QB X 2 A_PlaySound("D4Reload2/ssg", 1)
D4QB X 0 A_setpitch(pitch-0.2)
D4QB YZ 2 A_setpitch(pitch-0.2)
D4QC AB 2
D4QB EDC 2 A_setpitch(pitch+0.2)
D4QB A 0 A_Refire
Goto Ready
Flash:
D4QF B 1 Bright A_Light2
D4QF A 1 Bright A_Light1
Goto LightDone
}
}