AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Flashlight distance/size/lightness relation function (https://forums.alliedmods.net/showthread.php?t=117592)

01101101 02-02-2010 19:16

Flashlight distance/size/lightness relation function
 
Which do you think is the function for getting the size of a flashlight by its distance, and the lightness?

I looked at SourceSDK but found nothing about calculating flashlight params. I am trying to find a function to get the proper size and color depending on the distance, like any "new" game.

capostrike93 02-02-2010 19:30

Re: Flashlight distance/size/lightness relation function
 
Edit: hay te mando mp

joropito 02-02-2010 20:51

Re: Flashlight distance/size/lightness relation function
 
With some math I can get the size of the circle.
I can't do it now but if you want I can try tomorrow.


All times are GMT -4. The time now is 07:29.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.