I need help with my decorate weapon.

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
Sgt Nate V
Posts: 168
Joined: Sat Mar 04, 2017 4:21 pm
Location: somewhere

I need help with my decorate weapon.

Post by Sgt Nate V »

I have created my own decorate flamethrower using some example code from the wiki, but I need to finish it up first.

First of all, I can't seem to get the projectile centered. No matter what numbers I put, it comes out angled.
The ammo pickup also turns invisible immediately after spawn. The sound effects I downloaded also don't seem to work.

I have attached the latest, at this time, version of my weapon. See if you can fix it up for me.
You do not have the required permissions to view the files attached to this post.
User avatar
Ravick
Posts: 2033
Joined: Sun Aug 22, 2010 10:59 pm
Location: Tubarão, Brasil

Re: I need help with my decorate weapon.

Post by Ravick »

I couldn't spawn and/ou use the flamethrower actor. o.õ
User avatar
Sgt Nate V
Posts: 168
Joined: Sat Mar 04, 2017 4:21 pm
Location: somewhere

Re: I need help with my decorate weapon.

Post by Sgt Nate V »

Check the console. There's also a bug that causes the actor to be renamed on start.
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed

Re: I need help with my decorate weapon.

Post by wildweasel »

Sgt Jack V wrote:Check the console. There's also a bug that causes the actor to be renamed on start.
First of all, name it something other than "Flamethrower" - Strife already uses this actor name. Feel free to name it "SJVFlamethrower" or something to guarantee that it's unique.
User avatar
Sgt Nate V
Posts: 168
Joined: Sat Mar 04, 2017 4:21 pm
Location: somewhere

Re: I need help with my decorate weapon.

Post by Sgt Nate V »

That explains it.
I would also like a fix for projectile placement and the ammo going invisible on spawn.
User avatar
Sgt Nate V
Posts: 168
Joined: Sat Mar 04, 2017 4:21 pm
Location: somewhere

Re: I need help with my decorate weapon.

Post by Sgt Nate V »

I have fixed the naming problem, along with fixing a sprite.
The latest version is attached below.
EDIT: Cleared the projectile position and lack of sound by replacing it with one inherited from DoomImpBall. I might not be able to use my own sprites for it, but hey, works.
Still need to fix the invisible items though.
EDIT2: Looks like the items actually fall through the ground.
You do not have the required permissions to view the files attached to this post.
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed

Re: I need help with my decorate weapon.

Post by wildweasel »

Are your sprites aligned properly?
User avatar
Sgt Nate V
Posts: 168
Joined: Sat Mar 04, 2017 4:21 pm
Location: somewhere

Re: I need help with my decorate weapon.

Post by Sgt Nate V »

I fixed them this morning. Now I can use my custom sprites. Ichor at Doomworld also helped me align the pickups.

Return to “Scripting”