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.
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
}
}
Question
Toilet_Wine_Connoisseur
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.
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
Edited by Toilet_Wine_Connoisseur{
RenderStyle Translucent
Alpha 0.4
VSpeed 1
+NOBLOCKMAP
+NOGRAVITY
+PUFFONACTORS
AttackSound "weapons/staffhit"
States
{
Spawn:
PUF3 A 4 Bright
PUF3 BCD 4
Stop
}
}
decorate upload
Share this post
Link to post
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.