View Single Post
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 06-23-2011 , 10:52   Re: [CS:S] Flashbang Tools
Reply With Quote #8

Quote:
Originally Posted by Bacardi View Post
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 135v4 <= 800.0) || (v6 136v4 <= 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.
Dr!fter is offline