[DECORATE] Problem with my weapon wad

Discuss all aspects related to modding Zandronum here.
Post Reply
sdracox01
New User
Posts: 8
Joined: Sun Feb 28, 2016 5:12 pm

[DECORATE] Problem with my weapon wad

#1

Post by sdracox01 » Sun Nov 26, 2017 10:50 pm

Hello, I was making a weapon wad for doom but after making the sprites, I had some problems in the DECORATE:
I made 2 ACTORS, one for a the gun FireBall (a stronger plasma ball) and the otherone for the weapon. I can't use the gun when I launch the wad, I can summon it but its invisible and I can't grab it. I don't know what happened but I need help. At least the gun's fire ball works.
The DECORATE of the weapons is:
ACTOR AK47Paladin : DoomWeapon 2508
{
//$Category Weapons
obituary "%o was destroyed by %k's AK47 Paladin."
attacksound "Weapons/AK47P"
inventory.pickupmessage "You got the AK47 Paladin!"
Weapon.SlotNumber 4
weapon.ammotype "Cell"
weapon.ammouse 1
weapon.ammogive 40
States
{
Ready:
AK4P A 1 A_WeaponReady
Stop
Deselect:
AK4P A 1 A_Lower
Stop
Select:
AK4P A 1 A_Raise
Stop
Fire:
AKPF A 1 A_FireCustomMissile ("PaladinPlasmaBall")
AKPF B 1 A_ReFire
goto ready
Spawn:
AKPS A -1
Stop
}
}
Please tell me which part is wrong so I can correct it. :happyface:

User avatar
Gaia74
 
Posts: 50
Joined: Mon Dec 26, 2016 3:39 am
Location: Mexico
Contact:

[DECORATE] Re: Problem with my weapon wad

#2

Post by Gaia74 » Sun Nov 26, 2017 11:24 pm

i need see the wad and i can tell you some answer

sdracox01
New User
Posts: 8
Joined: Sun Feb 28, 2016 5:12 pm

[DECORATE] Re: Problem with my weapon wad

#3

Post by sdracox01 » Sun Nov 26, 2017 11:32 pm


User avatar
Gaia74
 
Posts: 50
Joined: Mon Dec 26, 2016 3:39 am
Location: Mexico
Contact:

[DECORATE] Re: Problem with my weapon wad

#4

Post by Gaia74 » Mon Nov 27, 2017 12:42 am

strange i modified the wad and nothing is very strange

i cant see the problem

sdracox01
New User
Posts: 8
Joined: Sun Feb 28, 2016 5:12 pm

[DECORATE] Re: Problem with my weapon wad

#5

Post by sdracox01 » Mon Nov 27, 2017 12:44 am

Yes, I know, It never happened me before.

User avatar
Empyre
Zandrone
Posts: 1316
Joined: Sun Jul 08, 2012 6:41 am
Location: Garland, TX, USA

[DECORATE] Re: Problem with my weapon wad

#6

Post by Empyre » Mon Nov 27, 2017 1:34 am

Your sprites need to be between SS_START and SS_END markers, or the game won't know that they are sprites. Also, the Ready, Deselect, and Select states all need to end with Loop, not Stop. If you make those changes, it works, but it needs work.
The shots do not look like they are coming from the tip of the gun. I haven't made new sprites before, but I think you need to adjust the offsets so the tip of the gun is at the center.
The B frame of the firing sprite doesn't show until you let go of the fire button, and a new plasma ball is shot every tic, which is awfully fast. Maybe it will be better if you change the fire state to look more like this:

Code: Select all

  Fire:
    AKPF A 2 A_FireCustomMissile ("PaladinPlasmaBall")
    AKPF B 1
    AK4P A 7 A_ReFire 
    goto ready
This will shoot at the same speed as the plasma rifle, but it will have a shorter wait before you can fire again (7 tics rather than 20 tics). It would be better if you made a sprite with the weapon held up like the plasma rifle after you shoot, but that is optional.
The sound needs to be the plasma ball's SeeSound rather than the weapon's AttackSound, but even when I did that, no sound plays. Maybe it is in an unsupported sound format.
"For the world is hollow, and I have touched the sky."

sdracox01
New User
Posts: 8
Joined: Sun Feb 28, 2016 5:12 pm

[DECORATE] Re: Problem with my weapon wad

#7

Post by sdracox01 » Mon Nov 27, 2017 1:44 am

Ok, I will modify the gun, and sound. Thank you very much!

User avatar
Gaia74
 
Posts: 50
Joined: Mon Dec 26, 2016 3:39 am
Location: Mexico
Contact:

[DECORATE] Re: Problem with my weapon wad

#8

Post by Gaia74 » Mon Nov 27, 2017 2:33 am

lol i no notice the ss_end and ss_start

my error xD

Post Reply