Left 4 Dead 2

Left 4 Dead 2

308 个评价
No VSLib Dynamic Light + Extra Features
   
奖励
收藏
已收藏
取消收藏
Game Content: Scripts
Weapons: Throwable
文件大小
发表于
更新日期
6.485 KB
11 月 12 日 下午 6:09
11 月 14 日 上午 4:28
2 项改动说明 ( 查看 )

订阅以下载
No VSLib Dynamic Light + Extra Features

描述
Unlike this mod, this addon adds dynamic light to your grenade without VSLib.

Most crashes and bugs of the original dynamic light mod are caused by VSLib.

Muzzle flash and the glow of grenades in hand will be implemented in the near future. To keep the implemention simple as possible, I'll release it as a separate MOD.
-> I created muzzle flash part https://steamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3605084814

This mod adds realistic animation to lights as an extra feature.
The lights also synchronize with the sound of the pipe bomb.

ems/light/projectile.txt

Required variables
color0: Initial RGB color when generating the light (string)
style: Light flickering style (integer, style from light_dynamic)
distance0: Light distance when generated (numeric value)
brightness0: Brightness when generated (numeric value)

Optional variables
distance: Function name to animate distance0 (string)
color: Function name to animate color0 (string)
brightness: Function name to animate brightness0 (string)
strength: Intensity parameter passed to the animation function (numeric value)

This is the config if you want similer effects to original dynamic light mod
My motivation for creating this mod wasn't to make a replacement for the original mod, but because I wanted to give L4D2 cinematic effects.

molotov_projectile : color0="255 100 0", style=6, distance0=500, brightness0=1 spitter_projectile : color0="0 192 0", style=0, distance0=500, brightness0=1 inferno : color0="255 100 0", style=6, distance0=500, brightness0=2 pipe_bomb_projectile : color0="255 0 0", style=0, distance0=500, brightness0=2, distance="pbblink", strength=300 fire_cracker_blast : color0="0 255 255", style=6, distance0=500, brightness0=2 insect_swarm : color0="0 192 0", style=0, distance0=500, brightness0=2, distance="spit", strength=500
88 条留言
Angel Dust 1 小时以前 
noice m8
『Exusiai』 4 小时以前 
Epilepsy warning
Subby 11 小时以前 
Nice
Wabisuke 4 Dead  [作者] 13 小时以前 
@PEACEandLOVE @Whootie
My motivation for creating this mod wasn't to make a replacement for the original mod, but because I wanted to give L4D2 cinematic effects.
PEACEandLOVE 13 小时以前 
What Whootie said, you're doing good work but the mod's default values should be sensible
Whootie 14 小时以前 
u def should've shipped it configured by default cause spitter flash-banging ur eyes and fires flickering the entire building is crazy work
Wabisuke 4 Dead  [作者] 14 小时以前 
you can remove color="greenred" from settings
Whootie 14 小时以前 
THE viper spit is cancer ? how do i turn that trash off
Wabisuke 4 Dead  [作者] 15 小时以前 
@Amitie
There must be an error in the configuration file. I did not implement error handling in the configuration file parser.
Amitie 17 小时以前 
Causes a spam of this error in the console, usually happens during fires or pipe bombs. Doesn't seem to actually bug anything out, but thought it might be worth pointing out:

AN ERROR HAS OCCURED [arith op * on between 'float' and 'string']

CALLSTACK
*FUNCTION [func()] scripts/vscripts/light.nut line [77]
*FUNCTION [unknown()] scripts/vscripts/light.nut line [133]

LOCALS
[rate] 0.99047631025314
[seed] 0.30434823036194
[strength] "00"
[time] 6.9333343505859
[this] TABLE
[params] TABLE
[graphs] TABLE
[input] "distance"
[@INDEX@] 0
[time] 189.36668395996
[pos] INSTANCE
[this] TABLE