TigerDen Posted September 22, 2022 Report Share Posted September 22, 2022 How difficult is it to add a FPV feature to the game? I envision hitting a hotkey to switch back and forth between 3rd person view (TPV) and FPV like this: 1) user hits a hotkey after selecting an actor (citizen, soldier, hero, etc) 2) game saves current TPV setting 3) game switches to follow mode 4) camera location changes to (x,y,z) of the head of the actor 5) camera view sets to direction of actor view 6) track mouse movement to change camera view (up, down, left, right) 7) return to saved TPV when user hits hotkey again or when actor died or enter a building Hopefully this can be implement in JS. I'm no expert in JS but if someone can point me to relevant sections of the code to implement this mod I would appreciate it very much. Peace..... 2 Quote Link to comment Share on other sites More sharing options...
Loki1950 Posted September 22, 2022 Report Share Posted September 22, 2022 It would need C++ code to handle the new view point as that is part of the render pipeline and further code to define which actor of a possible hundreds to choose from either side's army that would require constant calculation ie: C++ code just to be fast enough so causing more lag, only the toggle between mode can be handled by JS by passing values to C++ code. Enjoy the Choice Quote Link to comment Share on other sites More sharing options...
TigerDen Posted September 22, 2022 Author Report Share Posted September 22, 2022 Thanks for the reply... sounds like NOT GONNA HAPPEN wish then. I was hoping the code for flexible camera view available in Atlas is already hard coded in the simulation and just need to be activated using JS. Quote Link to comment Share on other sites More sharing options...
Gurken Khan Posted September 22, 2022 Report Share Posted September 22, 2022 What is possible is to rotate the camera downwards and then follow a unit; or some other camera option, just an idea. I believe to get a ~horizontal view you have to edit the config file, because the default setting won't go so far. Maybe someone here knows what to do. Quote Link to comment Share on other sites More sharing options...
TigerDen Posted September 23, 2022 Author Report Share Posted September 23, 2022 Gurken Khan, I'm thinking of some sort of clever hack like you suggested. But if it requires digging into C++ code as Loki1950 mentioned then I need to ramp up my coding skills significantly to make my wish comes true. Just where to find the code that follows a unit around is a start. Quote Link to comment Share on other sites More sharing options...
Darkcity Posted September 23, 2022 Report Share Posted September 23, 2022 My suggestion would be experiment for FPV for Heroes, as you will have 1 target which you can choose, also he has high health so won't die so fast; so camera switch will not happen too much automatically. This will allow you to test FPV without massive computions or lag. 1 Quote Link to comment Share on other sites More sharing options...
Stan` Posted September 23, 2022 Report Share Posted September 23, 2022 There is already a follow unit option in observer mode. Would just have to tilt the camera. I think it's all JS. Quote Link to comment Share on other sites More sharing options...
vladislavbelov Posted September 23, 2022 Report Share Posted September 23, 2022 2 hours ago, Stan` said: I think it's all JS. Camera related code is C++. Only interfaces to switch modes are JS. Quote Link to comment Share on other sites More sharing options...
Stan` Posted September 23, 2022 Report Share Posted September 23, 2022 9 minutes ago, vladislavbelov said: Camera related code is C++. Only interfaces to switch modes are JS. Then he can switch mode at game start no? Quote Link to comment Share on other sites More sharing options...
vladislavbelov Posted September 23, 2022 Report Share Posted September 23, 2022 4 minutes ago, Stan` said: Then he can switch mode at game start no? Via JS - yes, but mouse tracking isn't implemented. Quote Link to comment Share on other sites More sharing options...
Stan` Posted September 23, 2022 Report Share Posted September 23, 2022 9 minutes ago, vladislavbelov said: Via JS - yes, but mouse tracking isn't implemented. We have unit tracking though Quote Link to comment Share on other sites More sharing options...
nifa Posted September 23, 2022 Report Share Posted September 23, 2022 When being attacked, hitting the spacebar or clicking the notification also makes the camera follow the unit. Maybe you can find the code you're looking for there: https://code.wildfiregames.com/D1461 Quote Link to comment Share on other sites More sharing options...
TigerDen Posted September 23, 2022 Author Report Share Posted September 23, 2022 Thank you all for the helpful hints - I'll give it a try with my limited coding skills... Quote Link to comment Share on other sites More sharing options...
maroder Posted September 27, 2022 Report Share Posted September 27, 2022 @TigerDen iirc there actually already is the possibility to do this although it is experimental. Check out the boonGUI mod, especially this part: https://github.com/LangLangBart/boonGUI/blob/main/gui/pregame/mainmenu~boongui.js#L59 There is afaik a hotkey to go into FPV. (But it's been a while since if tried it, so no guarantee) 1 Quote Link to comment Share on other sites More sharing options...
TigerDen Posted September 29, 2022 Author Report Share Posted September 29, 2022 Maroder, I'll check boonGUI out... thanks for the hint! Quote Link to comment Share on other sites More sharing options...
Gurken Khan Posted September 29, 2022 Report Share Posted September 29, 2022 @seeh Did you say in a recent vid that you use F3 to get into FPV? Quote Link to comment Share on other sites More sharing options...
TigerDen Posted October 2, 2022 Author Report Share Posted October 2, 2022 My motivation for FPV is simple... I just want to admire the beautiful Aegean Archipelago map created by Yavin as a tourist in the age before jetliners (i.e. -2023 years agon) 1 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.