Sir_Skurpsalot Posted March 30, 2020 Share Posted March 30, 2020 Does setting firstperson = false not actually do anything in a ShapeBaseImageData datablock? This came up because I am mounting a ShapeBaseImage to the players chest to show your rifle as slung when it is not being used and you can still see it in first person view, which I don't want. Quote Link to comment Share on other sites More sharing options...
Duion Posted March 30, 2020 Share Posted March 30, 2020 Interesting question, I have iron sight aiming for weapons that duplicates the weapon datablock and in the iron sight version firstperson is set to false, but it does not seem to do anything, or I forgot what it does.Maybe it is broken, did you look into the source code what it actually does? Quote Link to comment Share on other sites More sharing options...
Sir_Skurpsalot Posted March 30, 2020 Author Share Posted March 30, 2020 I have not, but on here https://torque-3d.readthedocs.io/en/latest/script/class/ShapeBaseImageData.html?highlight=firstpersonIt says "set to true to render the image in first person".I guess a workaround might be to use an empty DAE as the shapefileFP to stop the third person model from rendering. Quote Link to comment Share on other sites More sharing options...
Duion Posted March 31, 2020 Share Posted March 31, 2020 I meant to look into the actual C++ source code, but I'm too lazy and not that good of a programmer to see what the issue is there.How I solved it for aiming is, that you zoom, which moves the gun out of the field of view, so it is basically gone and if not the rest is covered with a black gui and a crosshair overlay that covers most of the screen except the center.And for regular iron sight weapons without scope zoom, the weapon is still rendered but moved infront of your eyes.That was good enough as a workaround for me, alternatively you can use an empty model or maybe no model at all. Quote Link to comment Share on other sites More sharing options...
Azaezel Posted April 1, 2020 Share Posted April 1, 2020 for what it's worth, firstperson = false flips things on so that the third person model is used for rendering purposes instead of the first person model file, so if you want something not showing in first, but showing in third, hiding it would be part of the first person animation. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.