[SOLVED] Weapon with charging action (trouble in the Decorate lump)

Discuss all aspects related to modding Zandronum here.
Post Reply
Kotometal041
 
Posts: 30
Joined: Sat Aug 10, 2013 3:16 am
Location: Chile

[SOLVED] Weapon with charging action (trouble in the Decorate lump)

#1

Post by Kotometal041 » Thu Mar 13, 2014 4:21 pm

Hello people.

i'm trying to make a weapon that you need to charge to fire,
this is my plan in this pseudo-decorate:

Code: Select all

States
   {
   Fire:
      // Weapon loading sequence
      // if the fire button is not pressed, it passes to a specific ending state 
      Goto Ready
   Hold:
      // the weapon is ready to fire and launches a custom missile when it's not pressed
      Goto Ready
   Ending State:
      // normal weapon end sequence
      Goto Ready
   }
Specifically i'm trying to make a weapon that replaces the BFG, but with a charging action. The weapon has a screen that shows a load bar, if it's full, the missile launches.
But if it isn't, the bar goes back to the original state (like this)
[>>>>>>>_____]
(fire button released)
[<<<<<<______]

Actually have this

Code: Select all

	States
	{
	Ready:
		XXXX A 1 A_WeaponReady
		Loop
	Deselect:
		XXXX A 1 A_Lower
		Loop
	Select:
		TNT1 A 0 A_TakeInventory("Abort",999)
		XXXX A 1 A_Raise
		Loop
	Fire:
		TNT1 A 0 A_JumpIfInventory("Abort",1,11)
		NULL A 0 A_GiveInventory("Abort",1)
		YYYY A 4
		YYYY B 4 A_JumpIfInventory("Abort",11,"D1")
		YYYY C 4 A_JumpIfInventory("Abort",10,"D2")
		YYYY D 4 A_JumpIfInventory("Abort",9,"D3")
		...
		YYYY N 4 A_JumpIfInventory("Abort",X,"Dn")
//		TNT1 A 0 A_ReFire
		TNT1 A 0 A_TakeInventory("Abort",999)
		ZZZZ ABCDEFGHIJKL 4
		Goto Ready
	Hold:
		LLLL AB 2
		LLLL B 2 A_Refire
		LLLL CDCDCDCDCD 2
		XXXX A 1 A_FireCustomMissile("Missile",0,20,12,5)
		XXXX BCD 1
		XXXX EDCBA 2
		EEEE ABABABABABABABABABABABABABABABAB 4
		ZZZZ ABCD...N 4
		Goto Ready
	D1:
		TNT1 A 0 A_GiveInventory("Abort",11)
		ZZZZ A 4
		TNT1 A 0 A_TakeInventory("Abort",999)
		Goto Ready
	D2:
		TNT1 A 0 A_GiveInventory("Abort",10)
		ZZZZ AB 4
		TNT1 A 0 A_TakeInventory("Abort",999)
		Goto Ready
	D3:
		TNT1 A 0 A_GiveInventory("Abort",9)
		ZZZZ ABC 4
		TNT1 A 0 A_TakeInventory("Abort",999)
		Goto Ready		
	Dn:
		TNT1 A 0 A_GiveInventory("Abort",X)
		ZZZZ ABC...N 4
		TNT1 A 0 A_TakeInventory("Abort",999)
		Goto Ready
i've tried to implement this from the Realm667's Hand grenade, but didn't work.

is there any good example or solution? please help
Last edited by Kotometal041 on Tue Sep 16, 2014 9:38 pm, edited 1 time in total.

User avatar
Vincent(PDP)
Forum Regular
Posts: 527
Joined: Thu Mar 14, 2013 7:35 pm
Location: Sweden
Clan: My DOOM site
Clan Tag: <MDS>
Contact:

RE: Weapon with loading action (trouble in the Decorate lump)

#2

Post by Vincent(PDP) » Fri Mar 14, 2014 11:28 am

Can i have the WAD?
//Visual Vincent ( Vincent (PDP) )
- My DOOM site Team

My projects:
Spoiler: (Open)
Doom Writer
Escape From The Laboratory - Done
Escape From The Laboratory Part 2
Parkskolan Zombie Horde Map (ZM10) - Done
In game Admin Commands for Zandronum.
Achievement Mod for Zandronum
Stats mod

Kotometal041
 
Posts: 30
Joined: Sat Aug 10, 2013 3:16 am
Location: Chile

RE: Weapon with loading action (trouble in the Decorate lump)

#3

Post by Kotometal041 » Fri Mar 14, 2014 2:00 pm

Vincent(PDP) wrote: Can i have the WAD?
OK, let me create a PWAD with the weapon itself (cause i don't want to ruin the surprise of my project) and it will be uploaded on monday by time reasons.

User avatar
Vincent(PDP)
Forum Regular
Posts: 527
Joined: Thu Mar 14, 2013 7:35 pm
Location: Sweden
Clan: My DOOM site
Clan Tag: <MDS>
Contact:

RE: Weapon with loading action (trouble in the Decorate lump)

#4

Post by Vincent(PDP) » Fri Mar 14, 2014 3:54 pm

Your mod seems awesome!
Let me know when you release it. :)
//Visual Vincent ( Vincent (PDP) )
- My DOOM site Team

My projects:
Spoiler: (Open)
Doom Writer
Escape From The Laboratory - Done
Escape From The Laboratory Part 2
Parkskolan Zombie Horde Map (ZM10) - Done
In game Admin Commands for Zandronum.
Achievement Mod for Zandronum
Stats mod

Kotometal041
 
Posts: 30
Joined: Sat Aug 10, 2013 3:16 am
Location: Chile

RE: Weapon with loading action (trouble in the Decorate lump)

#5

Post by Kotometal041 » Mon Mar 17, 2014 12:27 pm

Vincent(PDP) wrote: Your mod seems awesome!
Let me know when you release it. :)
Thank you, i'll advice you when it's ready. In the meantime, here's the WAD. http://www.4shared.com/file/o3tRB4Pbce/ ... eapon.html

the weapon hasn't sound effects, because i want to validate this first, the graphics are different from the final version.

User avatar
Vincent(PDP)
Forum Regular
Posts: 527
Joined: Thu Mar 14, 2013 7:35 pm
Location: Sweden
Clan: My DOOM site
Clan Tag: <MDS>
Contact:

RE: Weapon with loading action (trouble in the Decorate lump)

#6

Post by Vincent(PDP) » Thu Mar 20, 2014 11:41 am

I will try to help you as soon as possible... I've got so much to do these weeks.
//Visual Vincent ( Vincent (PDP) )
- My DOOM site Team

My projects:
Spoiler: (Open)
Doom Writer
Escape From The Laboratory - Done
Escape From The Laboratory Part 2
Parkskolan Zombie Horde Map (ZM10) - Done
In game Admin Commands for Zandronum.
Achievement Mod for Zandronum
Stats mod

Kotometal041
 
Posts: 30
Joined: Sat Aug 10, 2013 3:16 am
Location: Chile

RE: Weapon with loading action (trouble in the Decorate lump)

#7

Post by Kotometal041 » Thu Mar 20, 2014 12:17 pm

Thanks, no problem about time. Reply this thread or send me a PM when it's ready.

User avatar
Vincent(PDP)
Forum Regular
Posts: 527
Joined: Thu Mar 14, 2013 7:35 pm
Location: Sweden
Clan: My DOOM site
Clan Tag: <MDS>
Contact:

RE: Weapon with loading action (trouble in the Decorate lump)

#8

Post by Vincent(PDP) » Fri Mar 28, 2014 9:29 pm

Still working on it, haven't got it working yet :S
//Visual Vincent ( Vincent (PDP) )
- My DOOM site Team

My projects:
Spoiler: (Open)
Doom Writer
Escape From The Laboratory - Done
Escape From The Laboratory Part 2
Parkskolan Zombie Horde Map (ZM10) - Done
In game Admin Commands for Zandronum.
Achievement Mod for Zandronum
Stats mod

Kotometal041
 
Posts: 30
Joined: Sat Aug 10, 2013 3:16 am
Location: Chile

RE: Weapon with loading action (trouble in the Decorate lump)

#9

Post by Kotometal041 » Mon Mar 31, 2014 12:45 pm

OK, no problem.

How's it going?
Last edited by Kotometal041 on Tue Apr 08, 2014 2:02 pm, edited 1 time in total.

Kotometal041
 
Posts: 30
Joined: Sat Aug 10, 2013 3:16 am
Location: Chile

RE: Weapon with charging action (trouble in the Decorate lump)

#10

Post by Kotometal041 » Tue Sep 16, 2014 9:38 pm

I solved this problem, digging in the multi projectile weapon's DECORATE in Weapons resource wad. Here´s the result.

http://www.4shared.com/file/hUtmMlbUba/ ... eapon.html

diegomula
New User
Posts: 9
Joined: Fri Oct 25, 2013 9:55 pm

RE: [SOLVED] Weapon with charging action (trouble in the Decorate lump)

#11

Post by diegomula » Sun Oct 12, 2014 5:09 pm

Kotometal041 wrote: I solved this problem, digging in the multi projectile weapon's DECORATE in Weapons resource wad. Here´s the result.

http://www.4shared.com/file/hUtmMlbUba/ ... eapon.html
Bien, un paso mas cerca del mod más grandioso de todos, PINOCHESTEIN GL

User avatar
Vincent(PDP)
Forum Regular
Posts: 527
Joined: Thu Mar 14, 2013 7:35 pm
Location: Sweden
Clan: My DOOM site
Clan Tag: <MDS>
Contact:

RE: [SOLVED] Weapon with charging action (trouble in the Decorate lump)

#12

Post by Vincent(PDP) » Sun Oct 12, 2014 8:59 pm

Kotometal041 wrote: I solved this problem, digging in the multi projectile weapon's DECORATE in Weapons resource wad. Here´s the result.

http://www.4shared.com/file/hUtmMlbUba/ ... eapon.html
Glad to hear you came up with a solution. Sorry for not getting back to you about my progress...
After some amount of time I totally forgot about your weapon, and haven't thought about it since. :redface:
//Visual Vincent ( Vincent (PDP) )
- My DOOM site Team

My projects:
Spoiler: (Open)
Doom Writer
Escape From The Laboratory - Done
Escape From The Laboratory Part 2
Parkskolan Zombie Horde Map (ZM10) - Done
In game Admin Commands for Zandronum.
Achievement Mod for Zandronum
Stats mod

Post Reply