Jump to content

Showing mouse cursor without menu.


TommInfinite

Recommended Posts

Hi everyone. Is there any way to show player's cursor in gamemode so player can move it? Also - does anyone knows a path to it so I can change it's color\texture if needed?

 

My instinct for moving the mouse cursor on its own is that it's probably a no. I know even for basic programming that GUI movement is a nightmare (I've tried it...it didn't turn out well).

 

As for the cursor, the only thing I could find was the following in "Fallout - Textures2.bsa"

 

textures\interface\icons\misc\cursor.dds

textures\interface\icons\misc\glow_cursor.dds

 

These may be controlled by the HUD color controller though. I'd have to experiment to be sure.

Link to comment
Share on other sites

The cursor seems to be something controlled by engine code. I haven't seen it referenced anywhere in the menus. Best approach in my opinion would be to stick to controlling gamemode stuff with keypresses.

 

That said, I did once play around with implementing a fake mouse cursor to use in gamemode. I would set the mouse sensitivity setting to near zero and use the tiny changes in the player's Z and X rotation values to calculate an offset to the cursor's position on the screen. I never got around to making it usable though. That would've involved checking its position for overlaps with clickable elements. :psyduck:

 

@RoyBatty - JIP NVSE does have a GetCursorPosition, but no setter. Menumode only, naturally.

Link to comment
Share on other sites

Ladez, yep I assumed that this method was used - I once saw a video in which cursor appeared in gamemode. It looked pretty precise. I use the same system in gamemode wheel except I do not decrease mouse sens. Because screen jerks anyway.

Checking for element overlapping sounds like fun! You should check for XY and then add height and width?(only way I see it).

 

Roy, yes that would be cool. If only there was a menumode which didnt stop menumode or a function which somehow detected mouse movements.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...