Zdoom & USB Light Guns

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
Post Reply
User avatar
jbb666999
Posts: 74
Joined: Sun Feb 13, 2005 6:15 am

Zdoom & USB Light Guns

Post by jbb666999 »

Has anyone tried using a PC USB Light Gun with ZDoom? I'm still researching which one is the most compatible and the most accurate, kinda leaning towards the Act Labs one. Any comments would be appreciated. Thanks.
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Re: Zdoom & USB Light Guns

Post by Xaser »

I don't think there's any code present that will handle lightguns or anything of the sort. Unless autoaim is on, the player will always shoot directly at the crosshair, period. Sorry for the bad news.

Though admittedly, this would be a reeeally cool feature, but it's not likely to be considered since any potential use is rather limited.
User avatar
XutaWoo
Posts: 4005
Joined: Sat Dec 30, 2006 4:25 pm
Location: beautiful hills of those who are friends
Contact:

Re: Zdoom & USB Light Guns

Post by XutaWoo »

How would you even turn?

Or move even?
User avatar
esselfortium
Posts: 3862
Joined: Tue Sep 19, 2006 8:43 pm
Contact:

Re: Zdoom & USB Light Guns

Post by esselfortium »

Very, very carefully.
User avatar
jbb666999
Posts: 74
Joined: Sun Feb 13, 2005 6:15 am

Re: Zdoom & USB Light Guns

Post by jbb666999 »

That's too bad. Lightgun support would be incredible. As for moving I think most lightguns come with a handheld device like the one for wii. It has a little joystick on it and 3 buttons.
User avatar
edward850
Posts: 5890
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

Re: Zdoom & USB Light Guns

Post by edward850 »

Using a light gun on a FPS like doom doesn't work right. Considering you always aim at the center of your screen (+ autoaim), the light gun would be next to useless.
Stuff like using an xbox360 controller's vibration though zdoom (upon damage), however, would be neat (that is if there is any drivers that will handle the controller vibration).

Regardless... I would rather leave light guns to arcade terminals.
User avatar
jbb666999
Posts: 74
Joined: Sun Feb 13, 2005 6:15 am

Re: Zdoom & USB Light Guns

Post by jbb666999 »

If they don't work in ZDoom would they work in GZDoom where there is 100% free mouse look? Light guns work by capturing the mouse right.
User avatar
edward850
Posts: 5890
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

Re: Zdoom & USB Light Guns

Post by edward850 »

jbb666999 wrote:If they don't work in ZDoom would they work in GZDoom where there is 100% free mouse look? Light guns work by capturing the mouse right.
Do you even know how light guns work? Its not a matter of will it work, its more of are matter of how. Light guns a screen relative (you see something, you point the light gun at it, you fire, screen stays in same place the whole time), and a quite the bitch if you try to make them manipulate the screen position in any way.

Side note: They don't capture the mouse position at all... In fact, you work by, big surprise, light. The most basic function of the light gun is that upon pressing the fire key, you screen changes for a split second showing a black screen and anything white is its target. If a light sensor (built inside the gun) can see a white box, it will take that as a successful shot. That was the old Nintendo days. These days it works the same way the wiimote would work. You place a sensor at the top/sides of your TV and the light gun gets guided by that. Shots are calculated via trigonometry (finding out the position of something via triangles). Well, thats my understanding of it.
And to quote myself:
edward850 wrote:Regardless... I would rather leave light guns to arcade terminals.
User avatar
Lord_Z
Posts: 189
Joined: Sun Jun 15, 2008 2:11 pm
Location: Temporal Singularity

Re: Zdoom & USB Light Guns

Post by Lord_Z »

A way to get around moving would be to make a level where the marine just followed path nodes. Then you could sit back and blast anything that came onto the screen. Haha that would be pretty cool.
User avatar
Skunk
Posts: 1189
Joined: Tue Jan 18, 2005 1:04 am
Contact:

Re: Zdoom & USB Light Guns

Post by Skunk »

I was considering making a rail shooter out of the Doom engine but couldn't figure out how to get the light gun part to work.
I figured one way would be to make the game automatically darken everything on the screen except sprites (somehow) and make the sprites turn into white boxes (somehow) and figure out a way to get the game to recognize which boxes were which (somehow) or somehow do the Wiimote thing.

My other idea was to make it work more like Terminator 2 Arcade, ie it's actually a joystick mounted gun that you move around the screen to shoot enemies but the cross hair moves instead of the player or screen. Something like that would work too.
User avatar
Ceeb
Posts: 5125
Joined: Wed Jun 11, 2008 4:07 pm
Location: Castle Wut

Re: Zdoom & USB Light Guns

Post by Ceeb »

Skunk wrote:I was considering making a rail shooter out of the Doom engine but couldn't figure out how to get the light gun part to work.
I figured one way would be to make the game automatically darken everything on the screen except sprites (somehow) and make the sprites turn into white boxes (somehow) and figure out a way to get the game to recognize which boxes were which (somehow) or somehow do the Wiimote thing.

My other idea was to make it work more like Terminator 2 Arcade, ie it's actually a joystick mounted gun that you move around the screen to shoot enemies but the cross hair moves instead of the player or screen. Something like that would work too.
You could always pitch that to Scuba for Action Doom 3. :P
User avatar
Project Shadowcat
Posts: 9369
Joined: Thu Jul 14, 2005 8:33 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: Blacksburg, SC USA
Contact:

Re: Zdoom & USB Light Guns

Post by Project Shadowcat »

When Duck Hunt goes horribly, horribly wrong...

(in before Duck Doom)
User avatar
Ceeb
Posts: 5125
Joined: Wed Jun 11, 2008 4:07 pm
Location: Castle Wut

Re: Zdoom & USB Light Guns

Post by Ceeb »

Project Dark Fox wrote:(in before Duck Doom)
Didn't people make thousands of those? ...Oh, you said DUCK Doom, sorry. :oops:
User avatar
hnsolo77
Posts: 1446
Joined: Sat Sep 16, 2006 8:06 pm
Location: the mythical land of Toronto Canada. (not really)

Re: Zdoom & USB Light Guns

Post by hnsolo77 »

if you want lightgun like support the best i can suggest is using a bluetooth adapter and installing a control package to use a wiimote and nun-chuck to play doom with, and im not sure exactly how that would work out as i have not tried that myself
Post Reply

Return to “General”