Garry's Mod

Garry's Mod

154 个评价
Dynamic Flashlight Fix
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 特效
插件标签: 快乐, 写实
文件大小
发表于
更新日期
10.747 KB
2 月 4 日 下午 12:42
8 月 5 日 下午 5:07
3 项改动说明 ( 查看 )

订阅以下载
Dynamic Flashlight Fix

在 Asrial 的 2 个合集中
功能插件
212 件物品
My Script Addon
14 件物品
描述
原地址: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2558917151

只在x86-64分支上测试过

新增
墙壁检测
可以在载具里使用
移除原插件重生时关闭手电的设定

新增控制台变量
df_flashlight_offset: 手电光发出的地点向后偏移一段距离。
df_flashlight_offset_vehicle: 同上,只在载具里使用。

25.08.06 更新:
df_flashlight_near: 与光源发射点的距离小于这个值的物体会被光源渲染忽略, 即不会渲染物体的阴影, 当你自己的模型被渲染时, (通常是启用第三人称时) df_flashlight_near_self的值会加上这个值, 避免手电渲染你自己人物模型的阴影 (因为会把手电的光全部挡住), 所以如果你发现第三人称出现了自己的阴影,尽量调整这个参数
df_flashlight_near_self: 同上,但是只影响你自己的光源。(基本上用于第一人称的参数, 不建议设置太高, 会变奇怪, 因为有些墙壁和物体在小于这个值时也不会渲染光照)
df_flashlight_wall_detect_distance: 墙壁检测,光源尝试始终与正面的墙壁保持这个距离 (如果光源与墙壁靠太近, 则看起来就像手电变小甚至消失一样)
df_flashlight_old_render: 0=新的, 1=旧的. 当玩家转动视角时,旧的手电渲染会有一个较小的转动延迟,新的则没有,建议用新的,因为我重写了代码,所以有些功能在旧渲染下会失效

其他参数可以去看原插件的说明
9 条留言
♬♫~Joe Blaze~♫♬ 9 月 1 日 下午 6:35 
Allow use with sit anywhere addon?
Asrial  [作者] 8 月 5 日 下午 3:49 
type 'df_flashlight_old_render 1' in console, if you still want use old one:winter2019happyyul:
Asrial  [作者] 8 月 5 日 下午 3:47 
@slxmmd I make an update, idk why it get smaller, cant replicate it, i write a new function, so 'df_flashlight_offset' is still work but i recommend to use 'df_flashlight_wall_detect_distance'.
𝖎𝖓𝖎𝖙𝖞 8 月 4 日 下午 12:40 
the flashlight would get smaller when close to the wall
Asrial  [作者] 2 月 8 日 上午 2:10 
make sure "df_flashlight_shadow_self" has been set to 0 and df_flashlight_offset > 10.
if still not work, check your other addon , this addon may not compatible with other flashlight addon
Trooper_025 2 月 7 日 下午 9:20 
unfortunately, flashlight still disappears in wall (i am on x86-64 branch)
Asrial  [作者] 2 月 7 日 下午 8:26 
github can not be accessed in my region. anyway if you don't like this , i will delete it
Riggs 2 月 7 日 上午 9:40 
could've at least made a pr on github rather than to straight reupload my work without any given consent.
Jiyū to anzen 2 月 6 日 上午 1:44 
Fixed all the things I was annoyed with- thanks for this!