Quote:
Originally Posted by Lux
here is an alt version that uses cone based illumination for models and pointlight for geometry use 1.10 compiler.
Edit this define AMBIENTLIGHT_USE_ATTACHMENT true to use gamedata attached directly to flashlight attachment.
https://github.com/LuxLuma/L4D-small...-2_team_lights
|
i like this version
It looks like it uses the player's own flashlight.
Is "AMBIENT_*" used to control another light?
From my perspective the plugin seems to create an extra light in the close range, perhaps incorrect tracking?
Change "AMBIENTLIGHT_USE_ATTACHMENT true"
Nothing seems to happen?
Code:
#define AMBIENTLIGHT_USE_ATTACHMENT true
#define DEBUG false
#define COLOUR "7 7 7"
#define BRIGHTNESS "3"
#define INNER_CONE "1"
#define OUTERCONE "1"
#define SPOTLIGHT_RANGE 750.0
#define SPOTLIGHT_SIZE 750.0
#define LIGHT_OFFSET 40.0
#define LERP_TIME 0.1
#define AMBIENT_COLOUR "50 50 50"
#define AMBIENT_BRIGHTNESS "1"
#define AMBIENT_LIGHT_SIZE 150.0
#define AMBIENT_LIGHT_OFFSET 40.0
#define COOKIE_DEFAULT "1"
Also tested with different "INNER_CONE" "OUTERCONE" settings.
Compiler:
SourcePawn Compiler 1.10.0.6545
Server:
Code:
SourceMod Version Information:
SourceMod Version: 1.11.0.6906
SourcePawn Engine: 1.11.0.6906, jit-x86 (build 1.11.0.6906)
SourcePawn API: v1 = 5, v2 = 16
Compiled on: Jul 8 2022 07:37:00
Built from: https://github.com/alliedmodders/sourcemod/commit/aa4145c7
Build ID: 6906:aa4145c7
http://www.sourcemod.net/