[Solved] Can't seem to replace BFG with Decorate :/

Archive of the old editing forum
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.
Locked
User avatar
Lexus Alyus
Posts: 4220
Joined: Tue Jul 15, 2003 5:07 pm
Location: Nottingham, UK
Contact:

[Solved] Can't seem to replace BFG with Decorate :/

Post by Lexus Alyus »

I'm having trouble replacing the BFG with my own custom BFG. This is driving me crazy, I've been trying to figure this out for the last hour or so!

When I type the cheat to give you all the weapons the BFG isn't there. I can get it the first time by typing "give bfg13" in the console, but why won't it just replace the BFG? (strangely the cheat doesn't even give you the default BFG :/)

Here's my decorate code:

Code: Select all

ACTOR BFG13 : Doomweapon replaces BFG9000
{
Height 20
Weapon.SelectionOrder 2800
Weapon.AmmoUse 2
Weapon.AmmoGive 80
Weapon.AmmoType "Cell"
+WEAPON.NOAUTOFIRE
+WEAPON.NOAUTOAIM
Inventory.PickupMessage "You got the BFG 13k!!!"
States
	{
	Ready:
		BFGG A 1 A_WeaponReady
		Loop
	Deselect:
		TNT1 A 0 A_Light0
		BFGG A 1 A_Lower
		Loop
	Select:
		BFGG A 1 A_Raise
		Loop
	Fire:
		BFGG A 20 A_BFGSound
		BFGG B 10 A_GunFlash
		BFGG BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB 1 A_FireOldBFG
		BFGG B 10 A_FireBFG
		BFGG B 20 A_ReFire
		Goto Ready
	Flash:
		BFGF A 10 Bright A_Light1
		BFGF B 10 Bright A_Light2
		BFGF A 10 Bright A_Light1
		BFGF B 10 Bright A_Light2
		BFGF A 10 Bright A_Light1
		Goto LightDone
	Spawn:
		BFUG A -1
		Stop
	}
}
What on earth am I doing wrong? I can't figure it out for the life of me... To me, everything looks correct, so why no workies? :(

:twisted:
Last edited by Lexus Alyus on Sun May 22, 2016 5:26 am, edited 1 time in total.
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Re: Can't seem to replace BFG with Decorate :/

Post by wildweasel »

You need to assign it to a weapon slot first; the Decorate property Weapon.SlotNumber should do it.
User avatar
edward850
Posts: 5886
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

Re: Can't seem to replace BFG with Decorate :/

Post by edward850 »

Remember: Replaces doesn't mean the object is replaced altogether, this would cause vastly too many problems with the state table. Replaces simply means the spawn reference is replaced, and only the act spawning, nothing else.
User avatar
Lexus Alyus
Posts: 4220
Joined: Tue Jul 15, 2003 5:07 pm
Location: Nottingham, UK
Contact:

Re: [Solved] Can't seem to replace BFG with Decorate :/

Post by Lexus Alyus »

Hmmm, the weapon slot number seems to work, but I'm sure I tried that before... Oh well, it seems to be working now, thanks for the help :)

:twisted:
Locked

Return to “Editing (Archive)”