Weapon Sway - ZScript Edition! v1.0 officially out now

For high-res texture/sprite projects, sprite-fix patches, music add-ons, music randomizers, and other graphic/sound-only projects.
Forum rules
The Projects forums are ONLY for YOUR PROJECTS! If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.

Weapon Sway - ZScript Edition! v1.0 officially out now

Postby Nash » Wed Nov 21, 2018 10:31 am



Here's a ZScriptified version of my popular weapon sway mod. Now works universally with anything. Have fun!

Made for GZDoom 3.7.0

28th December 2018:

v1.0
- Official 1.0 release
- Updated ZScript directive to version 3.7.0
- Reformatted options menu
- Fixed swaying so that it should now work with ANY weapon mod

Updates:

Spoiler: "Old updates"
Attachments
WeaponSway v1.0.pk3
(4.08 KiB) Downloaded 1007 times
Last edited by Nash on Fri Dec 28, 2018 8:03 am, edited 4 times in total.
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes

Re: Weapon Sway - ZScript Edition! (0.9b)

Postby Pompous Seed » Wed Nov 21, 2018 4:01 pm

Awesome, thanks for this! Also, could you possibly consider adding a slider to adjust the intensity of the sway? To me, it seems a bit more intense than the non-zscript version.
Pompous Seed
 
Joined: 05 Aug 2016

Re: Weapon Sway - ZScript Edition! (0.9b)

Postby Enjay » Wed Nov 21, 2018 4:38 pm

While this is cool and clever and all (and, as usual, well done to Nash for doing it) I think it has also helped me identify exactly what that "sloppy" "weapons lagging behind the mouse movement" effect in modern games that I was moaning about some time ago is caused by.

viewtopic.php?f=12&t=61392&p=1065036#p1065036

:lol:
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: Weapon Sway - ZScript Edition! (0.9b)

Postby DabbingSquidward » Wed Nov 21, 2018 5:30 pm

Enjay wrote:While this is cool and clever and all (and, as usual, well done to Nash for doing it) I think it has also helped me identify exactly what that "sloppy" "weapons lagging behind the mouse movement" effect in modern games that I was moaning about some time ago is caused by.

viewtopic.php?f=12&t=61392&p=1065036#p1065036

:lol:


Also known as inertia :P
User avatar
DabbingSquidward
 
Joined: 08 Nov 2017
Location: Germany

Re: Weapon Sway - ZScript Edition! (0.9b)

Postby Enjay » Wed Nov 21, 2018 6:03 pm

Indeed, but when I'm holding something in front of me and I move around, it tends not to fall behind in such a pronounced or "I'll catch up with you later" manner.

Anyway, sorry for the slight derail. The mod is cool, even if it's not really to my taste. :)
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: Weapon Sway - ZScript Edition! (0.9b)

Postby Cherno » Wed Nov 21, 2018 7:35 pm

I wonder, wouldn't it look better if the weapon lagged behind the turning motion instead?
User avatar
Cherno
 
Joined: 06 Dec 2016

Re: Weapon Sway - ZScript Edition! (0.9b)

Postby Pixel Eater » Wed Nov 21, 2018 7:43 pm

That's what the inverse option does. I like it, it seems more realistic because eyes are faster to turn.
How long before we get independent neck movement though? :wink:
User avatar
Pixel Eater
I sense evil I fear it here today, Like a bad dream that never goes away -MBerry
 
 
 
Joined: 02 Aug 2017
Location: In between the Moon and you, between the buried and me.

Re: Weapon Sway - ZScript Edition! (0.91b)

Postby Nash » Thu Nov 22, 2018 10:25 am

Small update: 0.91b

- Fixed chainsaw bug
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes

Re: Weapon Sway - ZScript Edition! (0.91b)

Postby Agitatio » Tue Nov 27, 2018 4:51 pm

Is it possible to make weapons center when firing from your end? Some mods don't have problem with that, but some do. Looks especially weird with tracers.
User avatar
Agitatio
 
Joined: 05 Sep 2011
Discord: Agitatio#4183
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: nVidia with Vulkan support

Re: Weapon Sway - ZScript Edition! (0.91b)

Postby Nash » Tue Nov 27, 2018 11:33 pm

Grigori wrote:Is it possible to make weapons center when firing from your end? Some mods don't have problem with that, but some do. Looks especially weird with tracers.


It should already be doing that. Have you downloaded the latest version in the OP?
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes

Re: Weapon Sway - ZScript Edition! (0.91b)

Postby Agitatio » Wed Nov 28, 2018 2:23 am

Nash wrote:It should already be doing that. Have you downloaded the latest version in the OP?

Yep. I downloaded it the same day I wrote that. I can't test all my mods right now, but the ones I remember to encounter that issue in were Faspons and Brutal Doom.
User avatar
Agitatio
 
Joined: 05 Sep 2011
Discord: Agitatio#4183
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: nVidia with Vulkan support

Re: Weapon Sway - ZScript Edition! (0.91b)

Postby Trusty McLegit » Wed Nov 28, 2018 10:40 am

Actually I was just going to ask the opposite of that, would it be possible to have an option for the weapon not to snap to center when firing? Right now it looks like the weapon can't decide where it wants to be. Also, not sure how hard this would be to implement but it would be cool if the sway slowed down the farther from center it gets (kinda like most source games) as I feel that would look and feel more natural and would fix the weapon just stopping on a dime when you hit the edge of the sway range.
User avatar
Trusty McLegit
 
Joined: 07 Feb 2016

Re: Weapon Sway - ZScript Edition! (0.91b)

Postby BROS_ETT_311 » Wed Nov 28, 2018 6:15 pm

Love that this has finally been zscriptified! The former ACS version required a bit too much trickery to be worth using all that often, but this...well, "it just works". This is especially true with just about any weapon mod that uses 3d models for the weapons, which definitely makes this a go to for me. Unfortunately, when it comes to the world of sprites, there doesn't seem to be a lot of mods with extended sprite hands to make the vertical sway option worth it. Maybe I'm just unaware of said mods, but the only one I can think of is Vanilla as Fuck by JoeyTD. Shame too, because I love the jumping inertia effect when using that option! Don't suppose there's a way to not have that effect tied to the vertical sway option, is there?

*EDIT
Just noticed a weird kind of stutter effect with weapons that use "offset" functions, though not sure if this is specific to any particular axis. I know this mod isn't exactly high priority at the moment, what with your release of nashgore ve and all, but might be worth looking into. Perhaps finding some way to have the script ignore offset commands through a check system.
User avatar
BROS_ETT_311
 
Joined: 03 Nov 2017

Re: Weapon Sway - ZScript Edition! (0.91b)

Postby Nash » Sat Dec 01, 2018 3:50 am

BROS_ETT_311 wrote:Don't suppose there's a way to not have that effect tied to the vertical sway option, is there?

*EDIT
Just noticed a weird kind of stutter effect with weapons that use "offset" functions, though not sure if this is specific to any particular axis. I know this mod isn't exactly high priority at the moment, what with your release of nashgore ve and all, but might be worth looking into. Perhaps finding some way to have the script ignore offset commands through a check system.


The problem with the vertical option is, even if I enable it ONLY for the jump inertia, you will start to see glitchy graphics as some weapon sprites literally cut off as soon as it touches the status bar.

About the weapon offset issue, can you recommend me an example mod where I can test this issue?
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes

Re: Weapon Sway - ZScript Edition! (0.91b)

Postby BROS_ETT_311 » Sat Dec 01, 2018 5:07 am

Sure! Check out: QCDE; Trailblazer; Led's Generic Weapon Mod

The tribolt from QCDE is a good place to start. Should reproduce the issue just fine.

Nash wrote:The problem with the vertical option is, even if I enable it ONLY for the jump inertia, you will start to see glitchy graphics as some weapon sprites literally cut off as soon as it touches the status bar.


That makes sense. I actually did a work around for the cut off by lowering the Y sensitivity along with changing the "Vel.z *" value within the script. The effect is more subtle than I like, but it's there and technically functional...I think. Mind you, I'm no coder and have no idea what I'm doing, so there's that. I'll PM an example you can check out or here works too https://www.dropbox.com/s/lrim5j83r4kqn ... 1.pk3?dl=0
User avatar
BROS_ETT_311
 
Joined: 03 Nov 2017

Next

Return to Graphic/Audio Patches

Who is online

Users browsing this forum: Xim and 1 guest