[Solved] Problems with a DECORATE Chainsaw

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.

[Solved] Problems with a DECORATE Chainsaw

Postby Endie » Thu Oct 19, 2017 6:11 pm

I don't know if i'm doing anything wrong but, this:
Code: Select allExpand view
ACTOR Chainsaw2 : Chainsaw replaces Chainsaw
{
Weapon.SlotNumber 0
Weapon.BobStyle "Alpha"
Weapon.SlotNumber 0
Inventory.PickupMessage "Chainsaw! - Slot_0"
+Weapon.MeleeWeapon
TAG "THE GREAT COMMUNICATOR"
Obituary "%k > Chainsaw > %o"
States
{
Spawn:
   CSAW A -1
   Stop
Ready:
   SAWR ABCD 1 A_SetPitch(Pitch-0.5)
   Goto RealReady
RealReady:
   SAWA AB 1 A_WeaponReady
   Loop
Select:
   TNT1 A 1 A_Raise
   Loop
Deselect:
   SAWR DCBA 1 A_SetPitch(Pitch+0.5)
   TNT1 A 1 A_Lower
   Loop
Fire:
   SAWF ABCDE 2 A_Saw
   TNT1 AAAAA 1 A_SetPitch(Pitch+0.5)
   Goto Ready
   }
}

Just don't work, and i wanna know if there's something wrong there, thanks.
Last edited by Endie on Thu Oct 19, 2017 11:59 pm, edited 1 time in total.
User avatar
Endie
I'm doing what i love. Doesn't mean i'm good at it though
 
Joined: 16 Mar 2017
Location: Somewhere in the void
Discord: 「Moa Dixøn」#4254
Operating System: Windows Vista/7/2008 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: Not Listed

Re: Problems with a DECORATE Chainsaw

Postby Blue Shadow » Thu Oct 19, 2017 8:02 pm

What's the problem exactly?
User avatar
Blue Shadow
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: Problems with a DECORATE Chainsaw

Postby Endie » Thu Oct 19, 2017 8:27 pm

Crash, forced close.
User avatar
Endie
I'm doing what i love. Doesn't mean i'm good at it though
 
Joined: 16 Mar 2017
Location: Somewhere in the void
Discord: 「Moa Dixøn」#4254
Operating System: Windows Vista/7/2008 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: Not Listed

Re: Problems with a DECORATE Chainsaw

Postby Blue Shadow » Thu Oct 19, 2017 9:55 pm

I just tested the code - I didn't encounter any of that. Could you describe what happens in more detail? Like what you do to trigger the issue.
User avatar
Blue Shadow
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: Problems with a DECORATE Chainsaw

Postby Endie » Thu Oct 19, 2017 11:58 pm

Oh, nevermind. It's fixed, the problem wasn't with THIS code. Anyway, thanks
User avatar
Endie
I'm doing what i love. Doesn't mean i'm good at it though
 
Joined: 16 Mar 2017
Location: Somewhere in the void
Discord: 「Moa Dixøn」#4254
Operating System: Windows Vista/7/2008 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: Not Listed


Return to Scripting

Who is online

Users browsing this forum: No registered users and 0 guests