View Single Post
Re: code to get the illumination at any point on the map
Old
  (#3)
Immortal_BLG
Member
 
Status: Offline
Posts: 171
Join Date: Nov 2007
Location: Russian Federation
Default Re: code to get the illumination at any point on the map - 04-02-2012

Quote:
Originally Posted by The Storm
Is it PM_Move requred? Because actually this is only valid in Listen server mode.
You're 100 percent right, but I started from the fact that the server will be present, or the person editing the waypoints (for example exposing the illumination for waypoints), or bots, for which in fact I posted the code because I wanted to have it replaced illuminationEntity for bots.

IMPORTANT NOTE that I forgot to write in the first post: The code will work if at least one client will be present on the server!!!

P.S. Why I have made reception 'sv.worldmodel' of structure 'playermove_t'? Because this is probably the only way without the use of wild hooks.....
  
Reply With Quote