.:: 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 10: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 15:27

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

Whistler 01-08-2016 17:22

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

int pfnGetEntityIllum( edict_t* pEnt )

tschumann 02-08-2016 12: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 03:54.

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