mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
added and adjusted the following features by zwwooooo to help restoring IoV to a pure item mod:
- externalized the brightness vision range modifiers to allow for different ratios of day/night vision range - added <PercentRangeBonus> as a complement to <Rangebonus> - added the possibility for LBE vests to function as plate carriers These were the missing features from IoV previously not in the 1.13 trunk. Thereby, IoV is now fully compatible to the current trunk (by DepressivesBrot) git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6279 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -250,7 +250,8 @@ INT8 gbSmellStrength[3] =
|
||||
UINT16 gsWhoThrewRock = NOBODY;
|
||||
|
||||
// % values of sighting distance at various light levels
|
||||
|
||||
//DBrot: use gGameExternalOptions.ubBrightnessVisionMod instead
|
||||
/*
|
||||
INT8 gbLightSighting[1][SHADE_MIN+1] =
|
||||
{
|
||||
{ // human
|
||||
@@ -271,7 +272,7 @@ INT8 gbLightSighting[1][SHADE_MIN+1] =
|
||||
17,
|
||||
9
|
||||
}
|
||||
};
|
||||
};*/
|
||||
/*
|
||||
{
|
||||
{ // human
|
||||
@@ -333,8 +334,8 @@ INT16 AdjustMaxSightRangeForEnvEffects( SOLDIERTYPE *pSoldier, INT8 bLightLevel,
|
||||
{
|
||||
INT16 sNewDist = 0;
|
||||
|
||||
sNewDist = sDistVisible * gbLightSighting[ 0 ][ bLightLevel ] / 100;
|
||||
|
||||
//sNewDist = sDistVisible * gbLightSighting[ 0 ][ bLightLevel ] / 100;
|
||||
sNewDist = sDistVisible * gGameExternalOptions.ubBrightnessVisionMod[ bLightLevel ] / 100;
|
||||
// Adjust it based on weather...
|
||||
if ( guiEnvWeather & ( WEATHER_FORECAST_SHOWERS | WEATHER_FORECAST_THUNDERSHOWERS ) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user