Page 1 of 1

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

Posted: Thu Mar 13, 2014 4:21 pm
by Kotometal041
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

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

Posted: Fri Mar 14, 2014 11:28 am
by Vincent(PDP)
Can i have the WAD?

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

Posted: Fri Mar 14, 2014 2:00 pm
by Kotometal041
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.

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

Posted: Fri Mar 14, 2014 3:54 pm
by Vincent(PDP)
Your mod seems awesome!
Let me know when you release it. :)

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

Posted: Mon Mar 17, 2014 12:27 pm
by Kotometal041
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.

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

Posted: Thu Mar 20, 2014 11:41 am
by Vincent(PDP)
I will try to help you as soon as possible... I've got so much to do these weeks.

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

Posted: Thu Mar 20, 2014 12:17 pm
by Kotometal041
Thanks, no problem about time. Reply this thread or send me a PM when it's ready.

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

Posted: Fri Mar 28, 2014 9:29 pm
by Vincent(PDP)
Still working on it, haven't got it working yet :S

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

Posted: Mon Mar 31, 2014 12:45 pm
by Kotometal041
OK, no problem.

How's it going?

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

Posted: Tue Sep 16, 2014 9:38 pm
by Kotometal041
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

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

Posted: Sun Oct 12, 2014 5:09 pm
by diegomula
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

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

Posted: Sun Oct 12, 2014 8:59 pm
by Vincent(PDP)
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: