Quote:
Originally Posted by Bacardi
Ok, but I start use that like measure now and works great.
|
Indeed it looks like it is distance. It checks if the distance is within a radius then "deafens" accordingly.
From IDA:
PHP Code:
v6 = 134;
v4 = a2;
if ( a2 <= 600.0 || (v6 = 135, v4 <= 800.0) || (v6 = 136, v4 <= 1000.0) )
So anything less than 600 has the highest deafen anything over 1000 units away doesn't deafen.
I also had a look at the percentage thing it seems it just returns 1.0 if the player will be blind and returns 0.0 if they will not be.
I updated the include file and changed the extension source code to change that time for OnDeafen is actually distance. Thanks for pointing it out. I also attached the inc file its in the main zip.