WolfPire Posted March 29, 2012 Share Posted March 29, 2012 There are some functiosn related to timecyc.dat, like -- Sky Gradient Functions getSkyGradient setSkyGradient -- Sun Functions setSunSize getSunSize resetSunSize setSunColor getSunColor resetSunColor -- Far Clip Functions setFarClipDistance getFarClipDistance resetFarClipDistance -- Fog Functions setFogDistance getFogDistance resetFogDistance So, why not add more functions? We already messed with some part of timecyc.dat, so why not the rest? Such as -- Light Functions setAmbientLightColor( string type, int r, int b, int b) Types: "Static Objects" -- Objects without movement "Dynamic Objects" -- Moveable objects "Direct Light" -- Light reflected to buildings, vehicles and peds ( i think ) "Light on ground" -- nuff' said. int, int, int = getDynamicAmbientLightColor() resetAmbientLightColor( bool true/false ) setAmbientLightEnabled( bool true/false ) --Shadow functions setShadowIntensity( int intensity ) int = getShadowIntensity() resetShadowIntensity( bool true/false ) setShadowsEnabled( bool true/false ) -- Cloud functions setCloudColor( int r, int b, int b ) int, int, int = getCloudColor() resetCloudColor( bool true/false ) -- Sun Functions setSunBrightnessLevel( int level ) int = getSunBrightnessLevel() resetSunBrightnessLevel( bool true/false ) Maybe there could be more... and i'm sure this can be done, but that's all i thought off. What do you guys think? Link to comment
CapY Posted March 29, 2012 Share Posted March 29, 2012 Would be great to have these functions over here. Link to comment
Unknown76 Posted March 30, 2012 Share Posted March 30, 2012 Shadow functions already exist in MTA as user settings. Server owners shouldn't be allowed to manipulate shadows because some users may encounter fps drop or other issues. Link to comment
WolfPire Posted March 30, 2012 Author Share Posted March 30, 2012 Shadow functions already exist in MTA as user settings. Server owners shouldn't be allowed to manipulate shadows because some users may encounter fps drop or other issues. True, but... Hey let's be realistic with this part. You can also encounter massive FPS drop if you mess enough with the "setRainLevel" function. Link to comment
Jaysds1 Posted April 10, 2012 Share Posted April 10, 2012 true... but... never mind you have a point Link to comment
diegofkda Posted April 13, 2012 Share Posted April 13, 2012 Shadow functions already exist in MTA as user settings. Server owners shouldn't be allowed to manipulate shadows because some users may encounter fps drop or other issues. Those aren't the same as the functions explained here. setShadowIntensity( int intensity ) shouldn't change the kind of the shadow, it would change the intensity of it which would mean changing its alpha which is already possible, using shaders. All functions mentioned here should be added because, as mentioned here, they're part of 'timecyc' functions. Link to comment
Cassandra Posted April 13, 2012 Share Posted April 13, 2012 I agree. This would come in handy. Link to comment
Recommended Posts