TaCZ Lights
TaCZ Lights 为 Timeless and Classics Zero 带来真实的动态光照,由 Veil 提供支持。手电筒照亮你前方的世界,激光在击中处投射光点,每次射击都会短暂照亮枪械周围的区域。
所有内容均由枪包驱动:作者只需在其现有的 TaCZ 显示文件中添加一个小的 taczlights 区块,无需额外文件或代码。
功能
配件灯光
- 手电筒和其他配件可以从其模型的任何骨骼投射真实聚光灯(锥形)或点光源(发光)
- 灯光跟随枪械:瞄准、晃动、后坐力、换弹和检视动画中灯光均会同步
- 配件可拥有多种灯光模式,例如宽泛泛光和狭窄聚焦光束
- 按下灯光键(默认 J)循环切换模式:关闭、模式 1、模式 2,然后回到关闭
- 模式保存在配件本身,因此当你将其移动到另一把枪时,模式保持不变
- 其他玩家也能看到你的灯光
激光
- 每道激光都会在击中处投射一个光点,颜色与激光一致,包括来自 TaCZ 自定义屏幕的自定义颜色
- 光点使用自定义圆柱形光源,因此在任何距离下大小保持一致,并在击中第一个方块时停止
- 按下激光键(默认 K)开启或关闭激光
- 可见激光束会发光,强度和宽度均可调节
- 枪包可将激光标记为红外:此时激光键将循环切换开、IR 和关(参见下方的 Modern Mayhem)
枪口闪光
- 每次射击都会短暂照亮周围环境,即使在高射速下也是如此
- 适用于你自己的射击、其他玩家以及 TaCZ 中的怪物
- 消音枪械不会闪烁
- 枪包可以为每把枪更改颜色、亮度、大小和持续时间,或将其关闭
客户端配置
位于 config/taczlights-client.toml。可以在游戏运行时编辑。
- 单独开启或关闭配件灯光、激光光点、枪口闪光和激光辉光
- 限制同时激活的光源数量和枪口闪光数量
- 调整激光辉光的强度和宽度
针对枪包作者
在配件的显示文件中添加 taczlights 区块:
"taczlights": {
"default_mode": 0,
"modes": [
{
"name": "Flood",
"lights": [
{ "type": "spot", "bone": "light_pos", "color": "#FFF4E0", "brightness": 1.0, "distance": 24, "angle": 45 }
]
},
{
"name": "Focused",
"lights": [
{ "type": "spot", "bone": "light_pos", "color": "#FFF8F0", "brightness": 3.0, "distance": 60, "angle": 15 }
]
}
],
"laser_light": { "radius": 0.06, "softness": 0.6, "brightness": 2.0 }
}
- 灯光位于命名骨骼上,并沿其 -Z 轴指向,这与 TaCZ 用于
laser_beam 骨骼的规则相同
laser_light 设置激光的光点。没有设置光点的激光将使用默认光点(如果客户端配置允许)
- 枪械的显示文件可以通过
"taczlights": { "muzzle_flash": { ... } } 设置其枪口闪光
- 更改可以通过
/tacz reload 或 F3+T 在游戏中重新加载
依赖项
TaCZ Lights 必须在客户端和服务端都安装。
兼容性
- Modern Mayhem: 红外激光和 IR 灯光仅通过 Modern Mayhem 的夜视效果可见(尚未实现,仅在 Neoforge 1.21.1 版本中存在)
- 光影包(Iris): Veil 的光照功能与光影包不兼容,且在激活光影包时激光辉光会关闭
- Veil 修复: TaCZ 在主帧缓冲上启用模板测试,这会破坏 Veil 的光照功能。TaCZ Lights 包含了对此问题的修复以及其他一些 Veil 渲染错误。它会在已修复这些问题的 Veil 版本上自动禁用它们。
支持
发现错误或需要帮助?TaCZ Lights 在 TaCZ Discord 服务器上有专门的帖子,我在那里回答问题并提供问题协助:
报告问题时,请附上你的 latest.log 和你的模组列表。
TaCZ Lights
TaCZ Lights brings real dynamic lighting to Timeless and Classics Zero, powered by Veil. Flashlights light up the world in front of you, lasers put a dot of light where they hit, and every shot briefly lights up the area around the gun.
Everything is driven by gunpacks: authors add a small taczlights block to their existing TaCZ display files, no extra files and no code needed.
Features
Attachment lights
- Flashlights and other attachments can cast real spot lights (a cone) or point lights (a glow) from any bone in their model
- Lights follow the gun: aiming, sway, recoil, reloads and inspect animations
- Attachments can have several light modes, for example a wide flood and a narrow focused beam
- Press the light key (default J) to cycle through the modes: off, mode 1, mode 2, and back to off
- The mode is saved on the attachment itself, so it stays the same when you move it to another gun
- Other players see your lights too
Lasers
- Every laser casts a dot of light where it hits, in the laser's color, including custom colors from the TaCZ customization screen
- The dot uses a custom cylindrical light, so it stays the same size at any distance and stops at the first block it hits
- Press the laser key (default K) to turn lasers on and off
- Visible laser beams glow, with adjustable strength and width
- Gunpacks can mark a laser as infrared: the laser key then cycles on, IR and off (see Modern Mayhem below)
Muzzle flashes
- Every shot briefly lights up the surroundings, even at high fire rates
- Works for your own shots, other players and TaCZ mobs
- Suppressed guns don't flash
- Gunpacks can change the color, brightness, size and duration per gun, or turn it off
Client config
Found in config/taczlights-client.toml. It can be edited while the game is running.
- Turn attachment lights, laser dots, muzzle flashes and laser glow on or off individually
- Limit how many lights and muzzle flashes are active at once
- Adjust the laser glow strength and width
For gunpack authors
Add a taczlights block to an attachment's display file:
"taczlights": {
"default_mode": 0,
"modes": [
{
"name": "Flood",
"lights": [
{ "type": "spot", "bone": "light_pos", "color": "#FFF4E0", "brightness": 1.0, "distance": 24, "angle": 45 }
]
},
{
"name": "Focused",
"lights": [
{ "type": "spot", "bone": "light_pos", "color": "#FFF8F0", "brightness": 3.0, "distance": 60, "angle": 15 }
]
}
],
"laser_light": { "radius": 0.06, "softness": 0.6, "brightness": 2.0 }
}
- Lights sit on the named bone and point along its -Z axis, the same rule TaCZ uses for
laser_beam bones
laser_light sets the laser's dot. Lasers without one use the default dot, if the client config allows it
- A gun's display file can set its muzzle flash with
"taczlights": { "muzzle_flash": { ... } }
- Changes can be reloaded in game with
/tacz reload or F3+T
Requirements
TaCZ Lights must be installed on both the client and the server.
Compatibility
- Modern Mayhem: infrared lasers and IR lights are only visible through Modern Mayhem's night vision (not implemented yet, only on Neoforge 1.21.1 version)
- Shader packs (Iris): Veil's lighting doesn't work with shader packs, and the laser glow turns off while one is active
- Veil fixes: TaCZ enables stencil on the main framebuffer, which breaks Veil's lighting. TaCZ Lights includes fixes for this and a few other Veil rendering bugs. It turns them off automatically on Veil versions that already fix them.
Support
Found a bug or need help? TaCZ Lights has its own post in the TaCZ Discord server, where I answer questions and help with problems:
When reporting a problem, please include your latest.log and a list of your mods.
评论 0
登录后参与评分
还没有评论,来抢沙发吧