104th_Crunch Posted March 28, 2011 Posted March 28, 2011 In FC2/DCS there is the option to turn on or off Head Movement by G-Forces. I like the effect but my own taste is that it is too much. Is there a way to adjust the effect to something less in a config or lua file? Thanks This would be a good option for DCS that might be easy to implement in DCS. The GTR series of racing games have a slider 0-100 for this effect.
Moa Posted March 28, 2011 Posted March 28, 2011 (edited) There isn't an adjustable option within the "options" files (embedded in missions). Perhaps the G-Effect settings does something in addition to control the onset (speculating here)? Aside from that, someone might know a LUA customization ... Incidentally, pilots wear helmets for a reason. Their heads routinely hit the canopy during maneuvering in fighters. There is a great story (video actually) of a guy who was practicing in an A4 (IIRC) and he was looking behind and maneuvering when his helmet got stuck between the ejection seat and canopy. Had to concede the fight, call a "knock it off" and took him around ten thousand feet to get it unstuck (with not too many to spare before the ejection floor). A few more Gs involved there than a race car I guess. Edited March 28, 2011 by Moa
aaron886 Posted March 28, 2011 Posted March 28, 2011 Not quite right, Moa. If you wanted to get creative, it is available in the view.lua. (Which does get saved in every mission file.) function NaturalHeadMoving(tang, roll, omz) local r = roll if r > 90.0 then r = 180.0 - r elseif roll < -90.0 then r = -180.0 - r end local hAngle = -0.25 * r local vAngle = math.min(math.max(0.0, 0.4 * tang + 45.0 * omz), 90.0) return hAngle, vAngle end I haven't messed with it yet, although I've been thinking about it.
Moa Posted March 29, 2011 Posted March 29, 2011 Thanks for the tip aaron886. Please note that 'view.lua' is optional. Only *required* files in FC2 and A-10C missions (zip archives) are: * mission, and * options. All other files are optional, but can be included to override the client's defaults.
104th_Crunch Posted March 29, 2011 Author Posted March 29, 2011 (edited) Incidentally, pilots wear helmets for a reason. Their heads routinely hit the canopy during maneuvering in fighters. Is that what happened to you Moa. No helmet on during training? I see :fear: Not quite right, Moa. If you wanted to get creative, it is available in the view.lua. (Which does get saved in every mission file.) function NaturalHeadMoving(tang, roll, omz) local r = roll if r > 90.0 then r = 180.0 - r elseif roll < -90.0 then r = -180.0 - r end local hAngle = -0.25 * r local vAngle = math.min(math.max(0.0, 0.4 * tang + 45.0 * omz), 90.0) return hAngle, vAngle end I haven't messed with it yet, although I've been thinking about it. Looks like that is the spot thanks, except I am lua script challenged here. Edited March 29, 2011 by Crunch 1
Bvoiash Posted March 30, 2011 Posted March 30, 2011 Hi Crunch, if my guesses are right if you multiply the -0.25, 0.4 and 45.0 in the code below by any value that is less than 1.0 the head movement should be reduced. local hAngle = -0.25 * r local vAngle = math.min(math.max(0.0, 0.4 * tang + 45.0 * omz), 90.0) My guesses are that changing -0.25 will affect how much the head will roll while changing 0.4 and 45.0 will affect how much the head will pitch up or down. I could be wrong though but you can try experimenting with different values and see what happen.
104th_Crunch Posted March 30, 2011 Author Posted March 30, 2011 Thanks Bvoiash! Unfortunately I did not have much success trying to reduce the effect. Here is what I used compared to the default and yet it didn't seem to make a difference. The movement was the same as the default. local hAngle = -0.05 * r local vAngle = math.min(math.max(0.0, 0.1 * tang + 10.0 * omz), 90.0) return hAngle, vAngle
Bvoiash Posted March 31, 2011 Posted March 31, 2011 Hmm, if no differences were made it either means that my guesses are wrong or the code that was pointed out by aaron886 is not the code that controls head movement by g-forces or the combination of both. Sorry Crunch, as I can't suggest anything else at the moment. It would be great if any of the ED team point us to the Lua code that does that if there is such code. Or ED could make it an adjustable option for DCS in future patch as Crunch has suggested :). 1
Recommended Posts