Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
I don't know what's going on here but my custom gun I made for understanding sprite codes won't go into the game.
This is my decorate
Spoiler:
Actor HecklerKochBrownPistol : Weapon
{
Weapon.SelectionOrder 1900
Weapon.AmmoUse 1
Weapon.AmmoGive 20
Weapon.AmmoType "Clip"
AttackSound "Weapon/HKBPFIRE"
Weapon.SlotNumber 2
Obituary "%o was Killed by %k's HKPB."
+WEAPON.WIMPY_WEAPON
Inventory.Pickupmessage "Picked up a HKPB."
States
{
Ready:
HKBP A 1 A_WeaponReady
Loop
Deselect:
HKBP A 1 A_Lower
Loop
Select:
HKBP A 1 A_Raise
Loop
Fire:
HKBP A 0
HKBP A 1 A_FireBullets (5.2,1,2,"BulletPuff",1)
HKBP B 1 A_Light2
HKBP C 1 A_Light1
HKBP D 1 A_Light0
HKBP DEA 3
HKBP A 3 A_Refire
Goto Ready
Flash:
HKBP A 3 A_Light1
HKBP A 3 A_Light0
Goto Lightdone
Spawn:
HKPP A -1
stop
}
}
I don't see anything wrong personally from the knowledge I've gathered from sprites and their coding anyway. I also did the "ss_start paste your sprite into it" thing" but the sprites still won't show up and I can't select the gun in game. Maybe it's the resolution of the sprites? I did rip them from a spritesheet using photoshop, I'm sure you'll recognize them when you see them. Here is my custom gun http://www.mediafire.com/download/4100j ... Pistol.pk3 please investigate for me and tell me what I've done wrong and correct me. Thanks a bunch.
You have it set up like a wad but you saved it as a zip. I just opened up slade, opened up a new wad file and copied the contents of the zip into it and it worked.
Wow thanks man. I was so happy to see my custom gun in the game. Looks like it isn't killing and the audio is off aaah. But I'm really happy to see a sprite I coded in a game lmao. Thanks.