Garry's Mod

Garry's Mod

2,210 个评价
Dynamic Flashlight
3
2
2
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 特效
插件标签: 影视, 风景, 写实
文件大小
发表于
更新日期
7.243 KB
2021 年 7 月 27 日 下午 12:02
2024 年 10 月 1 日 下午 2:15
18 项改动说明 ( 查看 )

订阅以下载
Dynamic Flashlight

在 Riggs 的 1 个合集中
Realism Pack
120 件物品
描述
Dynamic Flashlight
Dynamic Flashlight is a tool designed to enhance the original flashlight from Garry's Mod or the Half-Life 2 base engine, making it fully dynamic. This upgrade allows the flashlight to emit light that glows from the player's position and projects textures, casting realistic shadows on objects. This feature can significantly improve the realism in videos and enhance the atmosphere in roleplay servers, offering users a more immersive and visually appealing experience. Whether for cinematic purposes or gameplay, Dynamic Flashlight provides a versatile and powerful lighting solution.

Customize-ability
The system offers several console commands for customization, with potential for more in future updates. Here are some console commands for clients and servers:
Client Convars
  • df_flashlight_shadow | Enable/Disable shadows of the dynamic flashlight system.
  • df_flashlight_shadow_self | Enable/Disable shadows of the dynamic flashlight system for yourself.
  • df_flashlight_fov | Set the field of view of the dynamic flashlight system.
  • df_flashlight_distance | Set the distance of the dynamic flashlight system.
  • df_flashlight_texture | Set the texture of the dynamic flashlight system.
  • df_flashlight_sound | Set the sound of the dynamic flashlight system.
Server Convars
  • df_flashlight | Enable/Disable the dynamic flashlight system.

For developers
Including developer support! This system allows developers for gamemodes or addons to restrict the flashlight from being used or activated or even drawn. Here are some notable hooks:
Client Hooks
  • ShouldDrawShadows
  • ShouldDrawFlashlight
Server Hooks
  • PlayerCanSwitchFlashlight

You can view the GitHub repository here[github.com] and extract it to your gamemode for modifications.

Known bugs
Make sure the shadow setting in your Garry's Mod settings is set to maximum to see the shadows if enabled.

Contact
If you wish to contact me, then join my discord here[minerva-servers.com].

Sponsored by Minerva Servers
Minerva Servers[minerva-servers.com] is an online Garry's Mod community that hosts a wide range of servers for its dedicated player base. The community's main attraction is its Half-Life 2 Roleplay scene, which draws players interested in immersive roleplaying experiences. Founded on October 12, 2022, by Riggs and some of his friends, Minerva Servers originally started as a server focusing on SCP Roleplay. It later branched out to include the Half-Life 2 Roleplay scene, which has since become its core feature. Over time, it has expanded significantly and become a prominent and well-respected name in the Garry's Mod community. The community continues to grow, offering various servers and activities to engage and entertain its members.
热门讨论 查看全部(4)
1
1 月 20 日 下午 4:52
How is this different from the default flashlight?
Tiny Desk Engineer
271 条留言
Gorigo 9 月 7 日 上午 7:02 
Also the issue i run when using this mod
It breaks with pill packs (for example running makes this flashlight blink alot
It breaks with this addon which makes you be invisible in noclip (also npc wont see you or attack https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3120148772&searchtext=invisible+noclip it just disables flashlight in noclip
Gorigo 9 月 7 日 上午 6:57 
seems like some addon or optimisation addon makes flashlight laggy, what kind of hook or etc this flashlight system uses
Riggs  [作者] 7 月 31 日 下午 1:09 
dont even know what the issue is you havent provided me valid evidence and logs
lugtelha 7 月 31 日 下午 12:11 
@Riggs, can you fix it in the future?
Riggs  [作者] 7 月 31 日 下午 12:03 
uninstall it then
lugtelha 7 月 31 日 上午 10:28 
doesn't work with drgbase ((
Nick 6 月 19 日 下午 1:51 
Doesn't work when I noclip.
kefir 6 月 1 日 下午 12:47 
is there a way to stop it from clipping trough walls?
Hakurei Reimu 1 月 20 日 上午 3:34 
dynamic flashlight seems to have broken or something idk i cant see my light anymore
olsyr 1 月 2 日 下午 4:59 
no it doesnt work with vmanip i dont think