Jump to content
  • 0

Custom weapon pickup doesn't show up


lusianoproo2011

Question

When I try to spawn the weapon in the map with the console writing "summon crossbow" it doesn't show up. Here's the decorate code of the weapon.

 

actor crossbow : Weapon
{
	Weapon.SlotNumber 3
	Weapon.SelectionOrder 150
	Weapon.AmmoType "Cell"
	Weapon.AmmoUse 1
	Weapon.AmmoGive 40
	inventory.pickupmessage "You picked up the crossbow!"
	//weapon.ammotype2 "CrossAmmo"
	//inventory.pickupsound "TOMPKP"
	//decal Bulletchip
	//Attacksound "DSTOMFR"
	//Scale 0.6

	states
		{
		spawn:
			PSTR A -1
			stop
		ready:
			CROS A 1 A_weaponready
			loop
		deselect:
			CROS A 1 A_Lower
			loop
		select:
			CROS A 1 A_Raise
			loop
		fire:
			CROS A 1
			CROS B 1
			CROS C 1
			CROS D 1
			CROS E 1 A_FirePlasma
			CROS E 6
			CROS F 6
			CROS G 6
			CROS H 6
			CROS A 6 A_ReFire
			goto ready
		}
}

 

Share this post


Link to post

3 answers to this question

Recommended Posts

  • 0

Nevermind, I was able to fix it, and the problem was the actor name "crossbow", now I changed it to "Ballesta" (It means 'crossbow' in spanish) and now it works perfectly fine!

Now I wonder why the name "crossbow" made the weapon not work well...

Share this post


Link to post
  • 0
17 hours ago, Chow Yun Thin said:

Crossbow is already used for the Heretic crossbow. Other synonyms include arbalest and ballista.

Ye, after fixing it I started to think if that was the problem but it made me doubt because I didn't think that an actor from another game would affect another's.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...