WEAP A 2 offset (random(10, 14), random(32,35))
Moderator: GZDoom Developers
- 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))
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.
- Graf Zahl
- 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))
The offsets are static values and can't be randomized.
- 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))
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.
- Graf Zahl
- 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))
Yes, but no random offsets.
- 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))
Oh.
... Hang on does that mean "offset" actually works (or could work)?
... Hang on does that mean "offset" actually works (or could work)?
Re: WEAP A 2 offset (random(10, 14), random(32,35))
The DECORATE code for [wiki=Classes:FWeapHammer]the hammer of retribution[/wiki] is available in the wiki, you know...
- 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))
Oh sweet... when was offset added? I always miss these juicy features. *reads changelog again*
Re: WEAP A 2 offset (random(10, 14), random(32,35))
As for random offsets, you could make a bunch of frames with different offsets, then it could jump to a random frame.
- Graf Zahl
- 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))
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.

- 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))
Hmm, does it just work for weapons or anything? If it does I could have REALLY used this like... yesterday 

- Graf Zahl
- 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))
Yes, it's only for weapons.