Cyclones-like aiming system in ZDoom

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
ZZYZX
 
 
Posts: 1384
Joined: Sun Oct 14, 2012 1:43 am
Location: Ukraine
Contact:

Cyclones-like aiming system in ZDoom

Post by ZZYZX »

subj.

Video


Link
http://www.mediafire.com/download/xg998 ... yclone.pk3

Also the maths is broken (angle is off near red lines here, in a wave-like way). I have a compensating crutch, but help with that is highly appreciated.
As usual, the license is take anything you want and do anything you want with it zzz.

Also thanks to Dynamo for the idea.
Last edited by ZZYZX on Sat Aug 13, 2016 9:53 am, edited 1 time in total.
User avatar
Jaxxoon R
Posts: 772
Joined: Sun May 04, 2014 7:22 pm

Re: Cyclones-like aiming system in ZDoom

Post by Jaxxoon R »

Ha, that looks like a fun little thing to toy with, honestly. I wonder if anyone will eventually bother to make a rail shooter or somesuch with this. What's up with the music, though? It's kind of amazing in a weird way.
User avatar
Nash
 
 
Posts: 17487
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Cyclones-like aiming system in ZDoom

Post by Nash »

Interesting! Is the aiming calculated correctly in both software and OpenGL (since software = Y-shearing and OpenGL = real perspective)? Just curious as I haven't had the time to play with this yet (I only watched the video).

This would definitely come in handy in future for VR-compatible GZDoom projects. Being able to use your hand to actually affect where you shoot is essential in VR I think!
User avatar
ZZYZX
 
 
Posts: 1384
Joined: Sun Oct 14, 2012 1:43 am
Location: Ukraine
Contact:

Re: Cyclones-like aiming system in ZDoom

Post by ZZYZX »

It doesn't allow you to change pitch. What shearing?
Also I doubt it can be used in proper mods because in 2016 we still got no way to lock player's angle and pitch without SetActorAngle/SetActorPitch. Means it will have noticeable jitter in uncapped and sometimes even in capped.
That's the primary problem.
User avatar
Caligari87
Admin
Posts: 6229
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him
Contact:

Re: Cyclones-like aiming system in ZDoom

Post by Caligari87 »

Sheering is what happens in the software renderer, where looking up and down produces an ever-more distorted view, while the OpenGL renderer has true 3D look. This can a difference in apparent angles when switching between the two, so Nash is asking if it's calibrated to be correct at extreme pitch angles for both.

8-)
User avatar
ZZYZX
 
 
Posts: 1384
Joined: Sun Oct 14, 2012 1:43 am
Location: Ukraine
Contact:

Re: Cyclones-like aiming system in ZDoom

Post by ZZYZX »

Caligari87 wrote:Sheering is what happens in the software renderer, where looking up and down produces an ever-more distorted view
ZZYZX wrote:It doesn't allow you to change pitch.
Due to how original game worked, only horizontal looking is possible.

Also I've edited the script, it should now display more closely to the original weapons (i.e. moving smoothly), and also fixed vertical aiming imprecision (or rather, put another crutch. maaaaaaaaaaaaaaaaaaaaaaaths...)
Also shouldnt anymore display in the automap and work better with screenblocks 10 (but not smaller. because lazy.)
Locked

Return to “Editing (Archive)”