Jump to content
  • 0

Melee weapon alt-fire


Toilet_Wine_Connoisseur

Question

I am trying to make a simple altfire for this melee weapon

I have all the sprites I need and this is what I put into DECORATE

 

when I test it out in GZDoom nothing registers when I click on the altfire button.

 

 

Capture1.PNG.5653a7c912dd1b1cf09b8ccb80961a9a.PNG

 

Capture.PNG.3a6c8b7a40e128679396de8f0f4ee0fc.PNG

 

 

 

ACTOR Staff : Weapon 16005
{
  Weapon.Slotnumber 1
  +BLOODSPLATTER
   +WEAPON.MELEEWEAPON
   Weapon.Kickback 650
  Obituary "$OB_MPSTAFF"
  Tag "$TAG_STAFF"


  States
  {
  Ready:
    STFF A 1 A_WeaponReady
    Loop
  Deselect:
    STFF A 1 A_Lower
    Loop
  Select:
    STFF A 1 A_Raise
    Loop
  Fire:
    STFF B 6
    STFF C 8 A_CustomPunch(1000,1000,CPF_PULLIN,"StaffPuff",96)
    STFF B 8 A_ReFire
    Goto Ready
    AltFire:
    STFF G 6
    STFF H 8 A_CustomPunch(20,0,CPF_PULLIN,"StaffPuff",96)
    STFF G 8 A_ReFire
    Goto Ready
  }
}

ACTOR StaffPuff
{
  RenderStyle Translucent
  Alpha 0.4
  VSpeed 1
  +NOBLOCKMAP
  +NOGRAVITY
  +PUFFONACTORS
  AttackSound "weapons/staffhit"
  States
  {
  Spawn:
    PUF3 A 4 Bright
    PUF3 BCD 4
    Stop
  }
}

Edited by Toilet_Wine_Connoisseur
decorate upload

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 0

Would you mind uploading the file or posting the full Decorate code? I don't see anything that looks out of order here, so it could be something else that's making it not register.

 

Also a very rudimentary question equivalent to "did you plug it in?", but is the secondary fire button mapped to the key you're pressing? Sorry if that sounds insulting, but it's just one of those things I would double check.

 

But do upload the file, it will be easier to see what's going on.

Edited by Lippeth

Share this post


Link to post
  • 0
2 minutes ago, Lippeth said:

Would you mind uploading the file or posting the full Decorate code? I don't see anything that looks out of order here, so it could be something else that's making it not register.

 

Also a very rudimentary question equivalent to "did you plug it in?", but is the secondary fire button mapped to the key you're pressing? Sorry if that sounds insulting, but it's just one of those things I would double check.

 

But do upload the file, it will be easier to see what's going on.

ok I uploaded it, and yea Mouse trigger 2 is my alt-fire button and workds just fine with the other weapons I have with alt-fires 

 

no need to apologize, I have made rookie mistakes like that before XD

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...