CamoRF / Red-Faction-Guerrilla-Terraform-Patch

Work-in-progress project that adds content, fixes bugs, and enhances many features; made for the 2018 remaster of Red Faction Guerrilla.
5 stars 1 forks source link

Fix windmills in the Tharsis Point Wind-farm not spinning in SP #306

Open arrowsv opened 11 months ago

arrowsv commented 11 months ago

The windmills in the Dust wind-farm don't spin a majority of the time (with usually 1 or 2 windmills actually spinning) compared to Steam Edition where windmills spin at all times.

arrowsv commented 10 months ago

After testing with the legacy RSL object introspection menu, windmills have an object flag named RenderFlags. If the windmill is spinning, it has a value of 4, if it isn't spinning it's at 0.

Using the Telekinesis script and pressing T on a stagnant windmill will make it start spinning. The script activates the windmill using the 'HavokBodyForceActivate' function on its Havok Handle. The description of this function explains why some windmills don't activate, "Physics objects can get deactivated when they aren’t needed to save on performance". Will need to find out why Steam Edition doesn't deactivate any of them compared to Remastered.