-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved weather parameters #209
base: master
Are you sure you want to change the base?
Changes from all commits
1e30350
e28b155
36e71bd
674737d
3fd01d6
6ba4135
45d9c2c
b37ccbe
899fb99
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,27 +63,19 @@ if (isMultiplayer) then { | |
0 setOvercast (_overcast / 10); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Towards the top of this file, _windDir should be declared as a private variable, as per the other parameters. |
||
|
||
}; | ||
|
||
_WindParam = "Wind" call BIS_fnc_getParamValue; | ||
|
||
if (_WindParam != -1) then { | ||
|
||
_wind = _WindParam; | ||
if (_wind == -10) then { | ||
_wind = random 10; | ||
}; | ||
0 setWindStr (_wind / 10); | ||
|
||
if ((_wind / 10) * 1.25 > 1) then { | ||
|
||
0 setGusts 1; | ||
|
||
} else { | ||
|
||
0 setGusts ((_wind / 10) * 1.25); | ||
|
||
}; | ||
}; | ||
|
||
_wind = "Wind" call BIS_fnc_getParamValue; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In my fork's implementation I've called the "getParamValue" function using the alternative syntax (i.e. specifying a default value) just as a note if this gets merged into the Olsen Framework. |
||
_windDir = "WindDir" call BIS_fnc_getParamValue; | ||
if (_wind != -1) then { | ||
//calculate X and Y component of wind direction vector | ||
//convert to CCW from X-axis, inverted (so the wind blows *from* that dir) | ||
_windDir = 90 + (180 - _windDir); | ||
_dirX = cos _windDir; | ||
_dirY = sin _windDir; | ||
|
||
0 setWindStr 1; | ||
setWind [_dirX * _wind, _dirY * _wind, true]; | ||
}; | ||
|
||
_FogParam = "Fog" call BIS_fnc_getParamValue; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
class StartInVehicle { | ||
class VehicleStart | ||
{ | ||
file = "modules\start_in_vehicle\functions\VehicleStart"; | ||
class moveInVehicle {}; | ||
class startInVehicle {}; | ||
}; | ||
}; | ||
class StartInVehicle { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This looks like a purely formatting change, so maybe remove it from the pull request? |
||
class VehicleStart | ||
{ | ||
file = "modules\start_in_vehicle\functions\VehicleStart"; | ||
class moveInVehicle {}; | ||
class startInVehicle {}; | ||
}; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you intend to remove the functionality for random fog?