Melee Puff not working

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
User avatar
ibm5155
Posts: 1268
Joined: Wed Jul 20, 2011 4:24 pm

Melee Puff not working

Post by ibm5155 »

Code: Select all

ACTOR Axe: Fist 20002
{
  Tag "Axe"
   +WEAPON.MELEEWEAPON
   +WEAPON.NOAUTOAIM
  States
  {
    Ready:
    TNT1 A 1 A_WeaponReady
    Loop
  Deselect:
    TNT1 A 1 A_Lower
    Loop
  Select:
    TNT1 A 1 A_Raise
    Loop
  Fire:
    AXEA A 1
	TNT1 A 0 ACS_NamedExecuteAlways("AXEATTACK",0)
    AXEA B 1 A_CustomPunch(35,1,CPF_NOTURN,"AxePuff",64)
    AXEA CDEFGHIJK 1
    Goto Ready
  }
}

ACTOR AxePuff : BulletPuff
{
   ActiveSound "AXEHWALL"
   AttackSound "AXEMISS_"   
   SeeSound ""
}
The sounds exist and are working when playing it from console, but the puff isn't working :S, what did I mess with it? D:
User avatar
Mikk-
Posts: 2274
Joined: Tue Jun 30, 2009 1:31 pm

Re: Melee Puff not working

Post by Mikk- »

There is already [wiki]Classes:AxePuff[/wiki]. Maybe try renaming your puff actor
User avatar
ibm5155
Posts: 1268
Joined: Wed Jul 20, 2011 4:24 pm

Re: Melee Puff not working

Post by ibm5155 »

.... That was indeed correct, ty Mikk- :D

Return to “Scripting”