.:: Bots United ::.  
filebase forums irc server wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps waypoints yapb

Go Back   .:: Bots United ::. > Developer's Farm > SDK Programming discussions > Half-Life 1 SDK
Half-Life 1 SDK For developments focused around Half-Life (and its mods) Half-Life

Reply
 
Thread Tools
detecting light/dark
Old
  (#1)
tschumann
Moderator
 
tschumann's Avatar
 
Status: Offline
Posts: 100
Join Date: Apr 2011
Location: Australia
Default detecting light/dark - 31-07-2016

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?
   
Reply With Quote
Re: detecting light/dark
Old
  (#2)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,545
Join Date: Jul 2004
Location: Bulgaria
Default Re: detecting light/dark - 31-07-2016

Yes, Podbot_mm, have such code, you can check it out.
   
Reply With Quote
Re: detecting light/dark
Old
  (#3)
Whistler
Whistler
 
Whistler's Avatar
 
Status: Offline
Posts: 1,477
Join Date: Feb 2004
Location: Beijing, P. R. China
Default Re: detecting light/dark - 01-08-2016

to put it simple, use:
Quote:
int pfnGetEntityIllum( edict_t* pEnt )
   
Reply With Quote
Re: detecting light/dark
Old
  (#4)
tschumann
Moderator
 
tschumann's Avatar
 
Status: Offline
Posts: 100
Join Date: Apr 2011
Location: Australia
Default Re: detecting light/dark - 02-08-2016

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


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com