687c2cf75d060

687c2cf762690
1 Guest is here.
 

Topic: SS2 light gem Read 940 times  

687c2cf762c13ZylonBane

687c2cf762c85
I'm trying to get the (undocumented) NVVisibilityGem script to work, but I'm not having much luck figuring out how exactly it's supposed to be set up. I've copied over all the light gem models and textures from Thief. I've placed the script on the player object, which seems to do something... it says "  equipped" at the top of the screen... but no light gem appears.

Looking at the source, it seems like all the script needs is to be on an object at the moment of creation, then it should take care of everything else itself.

If this can be made to work, it might be a fun project to reskin it to fit in with the SS2 UI.

EDIT: Okay so it is actually spawning the light gem, but it's positioned facing away from the player. WTF?

EDIT2: Have managed to manually dink around with the camera attach settings, and there appears to be no combination of settings that will force a camera-attached object to just face the camera. So I have no idea how NV did it.
« Last Edit: 06. February 2025, 01:18:39 by ZylonBane »

687c2cf762f24Nameless Voice

687c2cf762f87
Sounds like you've already seen the source, but it's here for future reference:
https://github.com/NamelessVoice/NVScript/blob/master/NVScript/NVScript-ThiefShock.cpp

It should "just work" if you slap in on the player archetype, so long as you have the relevant UI files.

I don't think these are the actual original Thief UI files. They're modified in 2007 so are probably something custom.
Attached.

SS2's camera attachment system is also a bit buggy (hence why the gem wobbled around in the video I made back then); these days it would be better to create a custom overlay using NewDark functionality.
« Last Edit: 06. February 2025, 13:58:22 by Nameless Voice »
Acknowledged by: ZylonBane

Your name:
This box must be left blank:

Who's your favourite artificial intelligence:
1 Guest is here.
This is no offence, but you are a robot, aren't you?
Contact SMF 2.0.19 | SMF © 2016, Simple Machines | Terms and Policies
FEEP
687c2cf763f18