Heres the script:
Spoiler:Also, it dosen't appear if i use IDKFA.
HELP ME WEAPON DECORATE GODS!

Moderator: GZDoom Developers
Spoiler:Also, it dosen't appear if i use IDKFA.
This could either mean that the weapon is not loaded into the game, or it is loaded, but it has somehow ended up with a different [wiki]editor number[/wiki]. Have you changed its editor number after you moved it out into its own WAD file?The Struggler wrote:now ingame it appears as a red exclamation error thingy, and still dosent appear if i give all.
That warning shouldn't have any effect on the weapon. You can silence it by loading the gzdoom.pk3 file as a resource when working on the map.Also, I dont know if this is related but.... in GZDoom Builder it says that "DECORATE warning in "MAP01.wad\DECORATE:1696", line 45. Unable to find "Weapon" class to inherit from, while parsing "AutoShotgun:19073"."
Code: Select all
Actor AutoShotgun : Weapon 27018 // Old code
Code: Select all
Actor AutoShotgun : Weapon 19073 // New code
Code: Select all
use autoshotgun
Considering the code does define a Weapon.SlotNumber, I wonder if something else isn't overriding that. I'd guess at it being some rogue KEYCONF lump clearing the weapon slots to redefine them with SetSlot, but again, I would need to see the project file to tell for sure.Cherno wrote:I had this problem a few times and it was always due to me not setting up the player class' weapon slots correctly. You would still have a weapon after switching to another one, but since it wouldn't be assigned to a weapon slot you wouldn't be able to select it again, so check if that's the case.