Home » MODDING HQ 1.13 » v1.13 Coding Talk » New Stealth Mechanics
Re: New Stealth Mechanics[message #340017 is a reply to message #340002] Wed, 11 March 2015 13:58 Go to previous messageGo to previous message
silversurfer

 
Messages:2791
Registered:May 2009
sevenfm wrote on Tue, 10 March 2015 18:56
silversurfer wrote on Tue, 10 March 2015 22:48
Stealth works also during the day.


Vision cover (enemy sight reduction) from worn stealth works only at night (only at low light level).
It works this way in the game, and it's the way it implemented in the code.

I don't think so. Stealth works even at bright daylight. When you look at the function GetSightAdjustmentStealthAtLightLevel() ubScaler will be 14 at ubLightLevel 3 (normal daylight).
If there wasn't the bug ubScaler would be adjusted to 7 (default stealth effectiveness is 50).
If the soldier had for example 20% stealth, sight adjustment would be -20 * 7 / 100 = 1.

So yes, the bug in GetSightAdjustmentStealthAtLightLevel() should be fixed for stealth to have the proper effect.
Also function GetSightAdjustmentThroughMovement() should be fixed. ubBrightness should be 100 - GetBrightness() so the darker it get the smaller the penalty.



Wildfire Maps Mod 6.07 on SVN: https://ja2svn.mooo.com/source/ja2/branches/Wanne/JA2%201.13%20Wildfire%206.06%20-%20Maps%20MOD

Report message to a moderator

Lieutenant
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Strategic Map load in source code
Next Topic: (New) Common Attachment Framework (new title; was The NAS Receiver)
Goto Forum:
  


Current Time: Fri Jan 10 04:16:18 GMT+2 2025

Total time taken to generate the page: 0.01264 seconds