hi~again. i wanna do a splinter cell-like light bar.but i don't know how to get the level of light at a postion. i've already looked into the aum 32.but i don't know how to do this in a8? thanks in advance.
Full of my eyes are class struggles.....
Re: how to get the level of light.
[Re: tzw]
#381444 08/28/1111:3108/28/1111:31
I do something like that in my game. The code is integrated in the movement routine where it traces for the ground. The "c_trace" is done with "SCAN_TEXTURE" set. The varibale "tex_light" afterwarts contains brightness below player entity.
yep i've tried this. but seem the var is not correct. when the hero is at a very dark place.the var's value still very high. and the hero stand below a hi-res light ,the var's value even slower than in the dark one...... i'm confused
Full of my eyes are class struggles.....
Re: how to get the level of light.
[Re: tzw]
#381461 08/28/1115:3508/28/1115:35
Explain what you are trying to do. You can use hit.blue to with TRACE under player's feet (with SCAN_TEXTURE), but that works only with static ones. For dynamic lights use "ent_nextlight", but I have no idea how to combine results from them...