[DECORATE] Help with creating pistol wad

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
DoomguyFTW
 
Posts: 25
Joined: Thu Jul 02, 2015 11:57 pm

[DECORATE] Help with creating pistol wad

#1

Post by DoomguyFTW » Sun Dec 24, 2017 5:55 pm

Hello there!

It's been a while since I've been here, but here I go:

I've been trying to make a custom pistol wad for a couple of days now,
and I'm not sure what I'm doing wrong here. I've checked out a few tutorials
on youtube, and things haven't been working out. For a reference, here's what
my pistol looks like:
Image

So basically it's just a simple two-barrel two-shot pistol. I originally had
Ideas for creating a sort of RPG with it, but I can do that later. Can anyone
help me with this? If so, thanks.

Also, here's the wad so far: http://www.mediafire.com/file/9dkdzu9rj ... Mortar.wad

Samuzero15tlh
Forum Regular
Posts: 255
Joined: Wed Sep 09, 2015 2:21 pm
Location: In home, sweet Home
Clan Tag: <skr>

[DECORATE] Re: Help with creating pistol wad

#2

Post by Samuzero15tlh » Mon Dec 25, 2017 6:08 pm

Well, look at the code

Code: Select all

ACTOR XipherythrisMortar: Weapon Replaces Chainsaw 20000 {
	Weapon.SelectionOrder 50
	Weapon.AmmoUse 2
	Weapon.AmmoGive 100
	Weapon.AmmoType "Clip"
	
	Inventory.PickupSound "weapon/pickup"
	Inventory.PickupMessage "~You've got the Xipherythris Mortar~"
	
	States {
		Spawn:
		MRTR A -1
		Stop
		
		Select:
		XMTR A 1 A_Raise
		Loop
		
		Deselect:
		XMTR A 1 A_Lower
		Loop
		
		Ready:
		XMTR A 1 A_WeaponReady
		Loop
		
		Fire:
		XMTR BCDEFG 4
		Goto XiphFire
		
		XiphFire:
		XMTR B 0 A_PlaySound("weapon/dodoosh",CHAN_WEAPON, 0.7)
		XMTR B 0 A_Recoil(4)
		XMTR B 1
		XMTR B 0 A_Refire("XiphFire")
		Goto Ready
		
	{ // <- Here it is the little big mistake
}
Remember, { for the start and } for the end.

And also i'd modified it enough to keep it near of that you wish, here it is.

User avatar
DoomguyFTW
 
Posts: 25
Joined: Thu Jul 02, 2015 11:57 pm

[DECORATE] Re: Help with creating pistol wad

#3

Post by DoomguyFTW » Mon Dec 25, 2017 10:19 pm

Samuzero15tlh wrote:
Mon Dec 25, 2017 6:08 pm
Well, look at the code

Code: Select all

ACTOR XipherythrisMortar: Weapon Replaces Chainsaw 20000 {
	Weapon.SelectionOrder 50
	Weapon.AmmoUse 2
	Weapon.AmmoGive 100
	Weapon.AmmoType "Clip"
	
	Inventory.PickupSound "weapon/pickup"
	Inventory.PickupMessage "~You've got the Xipherythris Mortar~"
	
	States {
		Spawn:
		MRTR A -1
		Stop
		
		Select:
		XMTR A 1 A_Raise
		Loop
		
		Deselect:
		XMTR A 1 A_Lower
		Loop
		
		Ready:
		XMTR A 1 A_WeaponReady
		Loop
		
		Fire:
		XMTR BCDEFG 4
		Goto XiphFire
		
		XiphFire:
		XMTR B 0 A_PlaySound("weapon/dodoosh",CHAN_WEAPON, 0.7)
		XMTR B 0 A_Recoil(4)
		XMTR B 1
		XMTR B 0 A_Refire("XiphFire")
		Goto Ready
		
	{ // <- Here it is the little big mistake
}
Remember, { for the start and } for the end.

And also i'd modified it enough to keep it near of that you wish, here it is.
I'm not very proficient at modding or scripting, I mostly just do sprites and I've messed
around with map making. I must truly thank you so much for helping me with this (Well,
fixing my wad) :surprised: :surprised: :surprised: <3

I appreciate it so much! I'm trying my best to learn more about scripting in decorate, and
I've been checking out the zdoom wiki for more help. Would you recommend any tutorials
or guides for beginners? And also, how did you learn what you know?

Thanks~!

Samuzero15tlh
Forum Regular
Posts: 255
Joined: Wed Sep 09, 2015 2:21 pm
Location: In home, sweet Home
Clan Tag: <skr>

[DECORATE] Re: Help with creating pistol wad

#4

Post by Samuzero15tlh » Tue Dec 26, 2017 12:02 am

Im not the BEST Decorate master arround here, but Madcat can teach you a few tricks. Go talk with him if you want to learn how do you code in decorate.
I learn from the mistakes that i'd done once upon a time when i was doing Decorate stuff, so all that i can say, its just a thing of practice.

Now that youre trying to do some weapon, go over here. WildWeasel done a blogspot tutorial about it, this is enough to get you on track in weapons.

For guides, you can ramble a while for the zdoom forums (on tutorial threads) or, in case that you want to be more programer, go learn something of acs, ChubbsDoomer its doing some tutorials about it.

And dont forget that in the forums we can help you with anithing possible, so dont hestiate when asking the people.

Like i said, practice does the Master. wish you the best of the lucks on learning :biggrin:

User avatar
DoomguyFTW
 
Posts: 25
Joined: Thu Jul 02, 2015 11:57 pm

[DECORATE] Re: Help with creating pistol wad

#5

Post by DoomguyFTW » Tue Dec 26, 2017 10:19 pm

Hey there!

I messed around on GunLabs a bit earlier, and I got a lot of useful information on Zdoom wiki ^^
I haven't messaged madcat yet, but I might do so in the future. I made a few changes to the wad,
changing it from a missile based weapon into a hitscan one. I also added a custom bulletpuff animation
and added flash. I'm slowly learning a few things, which is really fun for me ^^

If you wanna check it out, here it is: http://www.moddb.com/games/doom-ii/addo ... ris-mortar
I gave you credits in the information and in the readme provided with the addon... is it okay for me to do so?

Sincerely, DoomguyFTW

Samuzero15tlh
Forum Regular
Posts: 255
Joined: Wed Sep 09, 2015 2:21 pm
Location: In home, sweet Home
Clan Tag: <skr>

[DECORATE] Re: Help with creating pistol wad

#6

Post by Samuzero15tlh » Wed Dec 27, 2017 3:03 am

It's not a big deal what i have done, but I apreciate it anyway.

To be honest, you're starting with a good feet, you actually added some more things that I did'nt done on the last wad.

Oh and, the gun it'snt consuming the ammo properly (unless youre intending to give it unlimited ammo). Since you're trying to learn, I'll let you to find the mistake that you done this time (hint: Ammo Amount Use).

User avatar
DoomguyFTW
 
Posts: 25
Joined: Thu Jul 02, 2015 11:57 pm

[DECORATE] Re: Help with creating pistol wad

#7

Post by DoomguyFTW » Wed Dec 27, 2017 6:30 am

Oh yeah haha, I intended for the ammo to be unlimited, since I wanted it to be a weapon that takes priority over the others. Kinda like when you run out of ammo and go to chainsaw (except the xipherythris mortar is better) But yeah, I might make changes in the future.

Right now I'm focused on adding a melee altfire to the weapon, and I hope to implement it soonwe or later ^^

Writing from my phone, and I wanted to give credit where it's due. I wouldn't be learning much has it not been for you getting me on track ^^, so I thank you profusely.

Sincerely, DoomguyFTW.

Post Reply