ampreeT / SourceCoop

Black Mesa cooperative plugin for SourceMod
GNU General Public License v3.0
182 stars 13 forks source link

Reenable Dynamic Lighting for Batteries #171

Open MyGamepedia opened 6 days ago

MyGamepedia commented 6 days ago

This feature is not used in multiplayer mode for some reason. SP.

Black Mesa Screenshot 2024 11 14 - 14 14 00 38

MP.

Black Mesa Screenshot 2024 11 14 - 12 35 02 22

This effect can be recreated with parented newLight_Point entity. The settings is:

Light color(lightcolor ) 20 181 214 255 Appearance(style) Flicker A Light Intensity(Intensity) 256 Texture Name(texName) lights/lightcookie_battery.vtf Enable Texture Light(bTexLight) 1 Specular Multiplier(SpecMultiplier) 0 Light Type(lighttype) 2 Range(range) 30 (needs to be confirmed)

Such point light attached to models origin point (not attachment point).

Want to note that dlights created by batteries in SP are client side/not solid entities, so you can't give them a name or change lighting values via LightScript.cfg.