.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Half-Life 1 SDK (http://forums.bots-united.com/forumdisplay.php?f=33)
-   -   detecting light/dark (http://forums.bots-united.com/showthread.php?t=10029)

tschumann 31-07-2016 11:17

detecting light/dark
 
Does anyone know how to detect the current light level for a player from the server side? I remember seeing a code snippet on doing it somewhere in this forum but I can't find it at the moment. Do any bots with source code available do this?

The Storm 31-07-2016 16:27

Re: detecting light/dark
 
Yes, Podbot_mm, have such code, you can check it out. :)

Whistler 01-08-2016 18:22

Re: detecting light/dark
 
to put it simple, use:
Quote:

int pfnGetEntityIllum( edict_t* pEnt )

tschumann 02-08-2016 13:17

Re: detecting light/dark
 
Ah, thank you both, it was driving me crazy.
I found the thread with those hints: http://forums.bots-united.com/showth...GetEntityIllum


All times are GMT +2. The time now is 22:40.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.