Light level
( Damn I'm posting a lot of topics in here lately )
I'm trying to make the player's footsteps silent in darker areas and in the opposite in lighter areas. Here's what I came up with but it gives the player silent footsteps 24/7: Code:
|
its most likely just checking the whole map instead of that specifix area...so both become true and since the last if statements makes it where nobody has foot steps...
you need to get the origin of the light and light areas somehow and then contrast it with the player origin... hope this help ;) |
No, I've already tested it:
Code:
|
How is this check ran?
|
PreThink.. Not sure if that's the best way.. :P
|
Try testing in prethink by showing the light levels to see if it would effect server play.
|
vex what does it print out in dark areas as to light areas?
|
Quote:
|
also whats LIGHT_LEVEL defined as?
Code:
|
As I said before, LIGHT_LEVEL is defined as 25 :P.
Do you want me to change it to =>? Low light = no footsteps High light = footsteps |
| All times are GMT -4. The time now is 14:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.