How 'bout that?
Something like this is existing in Edge...That'll be a nice solution for Gunsmiths who loves Decorate...
Imagine , you don't have to add lots of A_JumpIfInventory stuff...
Just declare how many ammunition clip can hold , like:
Actor blablabla
{
Weapon.SelectionOrder 200
Inventory.PickupMessage "got the blablabla gun"
Inventory.PickupSound "misc/blablabla"
Weapon.AmmoGive 24
Weapon.AmmoUse 1
Weapon.Kickback 10
AttackSound "weapons/Blam"
ClipHold 18
and then , we have only to fill the Reload state...Like:
States
{
...
Reload
BLAG ABCDE 3
BLAG F 3 A_Reload
Goto Ready
How 'bout this idea?
I think it's tough...
"Reload" state in DECORATE
Moderator: GZDoom Developers
-
- Posts: 21681
- Joined: Tue Jul 15, 2003 7:33 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): A lot of them
- Graphics Processor: Not Listed
-
- Posts: 54
- Joined: Mon Jul 11, 2005 12:48 pm
-
- Posts: 73
- Joined: Sun Jan 16, 2005 9:13 am
- Location: Rocking on.
-
- Posts: 8265
- Joined: Wed Jul 28, 2004 8:21 am
- Preferred Pronouns: He/Him
- Location: WATR HQ
Not to mention the ammo display! Putting the clip left of the ammo type would be nice, instead of making a seperate ammo display.wildweasel wrote:This would make things much easier, not to mention it would allow for weapons that reload and have a secondary fire without convoluting the Decorate code.
-
- Posts: 787
- Joined: Tue Jun 21, 2005 10:14 am
- Location: Just south of the True North
-
- Posts: 54
- Joined: Mon Jul 11, 2005 12:48 pm
-
- Posts: 2925
- Joined: Thu Jul 17, 2003 12:07 am
- Graphics Processor: ATI/AMD with Vulkan/Metal Support
-
- Posts: 677
- Joined: Sun Feb 27, 2005 4:32 pm
- Location: Revere, MA
if anything the two properties could be
That could work if people want multiple reloads
Code: Select all
ClipSize1 //Attack
ClipSize2 //AltAttack
Code: Select all
States
{
Reload:
...
...
...
AltReload:
...
...
...
}
-
- Posts: 21681
- Joined: Tue Jul 15, 2003 7:33 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): A lot of them
- Graphics Processor: Not Listed