WEAP A 2 offset (random(10, 14), random(32,35))

Moderator: GZDoom Developers

Post Reply
User avatar
StrikerMan780
Posts: 486
Joined: Tue Nov 29, 2005 2:15 pm
Graphics Processor: nVidia with Vulkan support
Contact:

WEAP A 2 offset (random(10, 14), random(32,35))

Post by StrikerMan780 »

The Title is basically an example of what I have in mind. Being able to Randomize offsets for weapon firing states. Right now, it crashes out saying "Bad Numeric Constant: Random". This be useful for mod authors to be able to make Weapons Shake around while firing, Doom64 Chaingun-Style.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49227
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: WEAP A 2 offset (random(10, 14), random(32,35))

Post by Graf Zahl »

The offsets are static values and can't be randomized.
User avatar
Cutmanmike
Posts: 11352
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Re: WEAP A 2 offset (random(10, 14), random(32,35))

Post by Cutmanmike »

That's a shame because there's too many weapon mods with guns that take up like 50 frames just to make the gun look like it's moving across the HUD, wasting space. Doesn't Hexen have moving frames for the hammer and such? I could have sworn it did.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49227
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: WEAP A 2 offset (random(10, 14), random(32,35))

Post by Graf Zahl »

Yes, but no random offsets.
User avatar
Cutmanmike
Posts: 11352
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Re: WEAP A 2 offset (random(10, 14), random(32,35))

Post by Cutmanmike »

Oh.


... Hang on does that mean "offset" actually works (or could work)?
Gez
 
 
Posts: 17939
Joined: Fri Jul 06, 2007 3:22 pm

Re: WEAP A 2 offset (random(10, 14), random(32,35))

Post by Gez »

The DECORATE code for [wiki=Classes:FWeapHammer]the hammer of retribution[/wiki] is available in the wiki, you know...
User avatar
Cutmanmike
Posts: 11352
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Re: WEAP A 2 offset (random(10, 14), random(32,35))

Post by Cutmanmike »

Oh sweet... when was offset added? I always miss these juicy features. *reads changelog again*
User avatar
Ichor
Posts: 1783
Joined: Wed Jul 23, 2003 9:22 pm

Re: WEAP A 2 offset (random(10, 14), random(32,35))

Post by Ichor »

As for random offsets, you could make a bunch of frames with different offsets, then it could jump to a random frame.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49227
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: WEAP A 2 offset (random(10, 14), random(32,35))

Post by Graf Zahl »

Cutmanmike wrote:Oh sweet... when was offset added?

Somewhere around the end of 2004, although it took Randy 1.5 years to get 2.1.0 out. ;)
User avatar
Cutmanmike
Posts: 11352
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Re: WEAP A 2 offset (random(10, 14), random(32,35))

Post by Cutmanmike »

Hmm, does it just work for weapons or anything? If it does I could have REALLY used this like... yesterday :(
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49227
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: WEAP A 2 offset (random(10, 14), random(32,35))

Post by Graf Zahl »

Yes, it's only for weapons.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”