Product Chat / Static screen

Author
Message
simoffen
5
Years of Service
User Offline
Joined: 9th Dec 2018
Location:
Posted: 9th Dec 2018 08:28
Hi!
When I play, I´m always aim in the center of the screen. But I would like to have a static screen so I can move my gun around without having the 3D-world moving. Is there a way to do this?
PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 9th Dec 2018 12:02
Don't think that's possible sorry.
A static screen maybe possible but the sights will always be in in the middle
Unless someone knows different ?
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
simoffen
5
Years of Service
User Offline
Joined: 9th Dec 2018
Location:
Posted: 9th Dec 2018 12:23
I really hope it´s possible. I´m scanning the help files, code bases and so on eveywhere to find a solution.....
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 9th Dec 2018 17:32
Replace the cursor with your own sprite and place it at the mouse position
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
simoffen
5
Years of Service
User Offline
Joined: 9th Dec 2018
Location:
Posted: 9th Dec 2018 22:03
Can you help some more, I´m quite new to GG.
Regards
Fredrik
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 10th Dec 2018 00:15
Check out the scripts forum, that's where you will find the answers you seek Grasshopper.

I'd start with the first two sticky threads if I were you.

Been there, done that, got all the T-Shirts!
PM
simoffen
5
Years of Service
User Offline
Joined: 9th Dec 2018
Location:
Posted: 10th Dec 2018 14:01
AmenMoses, I cant find anything among the scripts... Please help me If you can.
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 10th Dec 2018 19:17
https://forum.game-guru.com/thread/207801?page=23#msg2599808

There's an example of taking over mouse control you could start with.
Been there, done that, got all the T-Shirts!
PM
simoffen
5
Years of Service
User Offline
Joined: 9th Dec 2018
Location:
Posted: 10th Dec 2018 21:05
This is what i would like to do.....

Attachments

Login to view attachments
PM
Teabone
Forum Support
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 10th Dec 2018 22:00 Edited at: 10th Dec 2018 22:01
Best to upload videos to Youtube as Unlisted and then share their link with us. Cause i'd rather not download a 30+MB file.

To answer your question, yes its possible in theory. This would however require a lot of LUA programming. You'd also need to some how detect enemies/targets based on where your custom cursor is on the screen and possibly override the gun controls or avoid them completely and rewrite your own in LUA. It would not be an easy task.
Twitter - Teabone3 | Youtube - Teabone3 | Twitch - Teabone3 | TGC Assets - Store Link | Patreon - Teabone3

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GTX 960
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 10th Dec 2018 22:02 Edited at: 10th Dec 2018 22:23
Aha, I see now.

So if the hardware uses the standard DX mouse inputs then in theory GG would pick that up as an x,y screen position plus a mouse button press. Assuming that bit all works correctly then yes what you want to do is doable.

You would need to use the same mechanism for mouse detection as used in small's inventory script and on mouse 'click' use the x,y mouse coordinates to work backwards and calculate what object is 'targetted'.

That final bit will not be a walk in the park btw, you will need to calculate, based on current field of view setting, what the 3D vector should be based on the x,y values, then project a ray in 3D space from the player to detect which object, if any, is hit.

Edited to add: This is something I would be quite happy to help you out with assuming I could get access to the hardware, do you have a link to it?

Edited to add: Found the device, bit expensive and no technical details on the link I found so I can't tell whether it would work with GG, I'm guessing the answer is probably no.
Been there, done that, got all the T-Shirts!
PM
simoffen
5
Years of Service
User Offline
Joined: 9th Dec 2018
Location:
Posted: 14th Dec 2018 10:56
You were right. The mouse did not work in the Standalone game. Have to try the coding above.
Cheers
Fredrik
PM

Login to post a reply

Server time is: 2024-11-27 19:29:42
Your offset time is: 2024-11-27 19:29:42