mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-18 06:21:55 +00:00
1
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||||
//
|
||||
// Purpose:
|
||||
//
|
||||
//=============================================================================
|
||||
|
||||
#ifndef INFO_DARKNESSMODE_LIGHTSOURCE_H
|
||||
#define INFO_DARKNESSMODE_LIGHTSOURCE_H
|
||||
#ifdef _WIN32
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
// Default distance from lightsources that entities are considered visible
|
||||
// NOTE!!! This is bigger by a factor of to deal with fixing a bug from HL2. See dlight_t.h
|
||||
#define DARKNESS_LIGHTSOURCE_SIZE (256.0f*1.2f)
|
||||
|
||||
void AddEntityToDarknessCheck( CBaseEntity *pEntity, float flLightRadius = DARKNESS_LIGHTSOURCE_SIZE );
|
||||
void RemoveEntityFromDarknessCheck( CBaseEntity *pEntity );
|
||||
bool LookerCouldSeeTargetInDarkness( CBaseEntity *pLooker, CBaseEntity *pTarget );
|
||||
bool DarknessLightSourceWithinRadius( CBaseEntity *pLooker, float flRadius );
|
||||
|
||||
#endif // INFO_DARKNESSMODE_LIGHTSOURCE_H
|
||||
Reference in New Issue
Block a user