Garry's Mod

Garry's Mod

966 个评价
IFL - CLIENTSIDE Improved Flashlight
3
2
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 特效
插件标签: 写实
文件大小
发表于
更新日期
22.575 KB
2 月 4 日 下午 9:18
2 月 21 日 上午 1:32
5 项改动说明 ( 查看 )

订阅以下载
IFL - CLIENTSIDE Improved Flashlight

描述
A fully clientside improved flashlight system.

Built around singleplayer.

Allows you to fully customize the flashlight, attach it to your weapon (first and third person!) and enable aesthetics like flickering and chances for the flashlight to turn off when taking damage.

Pretty optimized and its made work with many different weapons and situations. Also has a cool sway effect when not attached to weapon in first person.

Also respects mp_flashlight ConVar!





----------------------------------------------------------------

ConVars:

IFL_flashlight 1/0 - Enable/Disable IFL flashlight.
IFL_flashlight_flicker 1/0 - Enable/Disable flashlight flickering effects.
IFL_flashlight_weapon 1/0 Use weapon (worldmodel and viewmodel) muzzle attachment for flashlight, if available.
IFL_flashlight_color (R G B) Set flashlight color, seperated by spaces.
IFL_flashlight_brightness (VALUE) - Set flashlight brightness.
IFL_flashlight_fov (VALUE) - Set flashlight fov.
IFL_flashlight_texture (NAME) - Sets flashlight texture.
IFL_flashlight_farz (VALUE) - Set flashlight farz (distance).
IFL_flashlight_nearz (VALUE) - Set flashlight nearz (cutoff). This is helpful for self shadowing on PM’s or weapons.
IFL_flashlight_swayfactor (VALUE) - Set flashlight sway factor (how fast it sways).
IFL_flashlight_ondamage 1/0 - Sets if flashlight should have a chance to turn off on damage.
IFL_flashlight_sprite 1/0 - Sets if flashlight (if IFL_flashlight_weapon 1) should draw a sprite.
IFL_flashlight_pushback 1/0 - Sets if flashlight should be pushed backwards near a wall.

IFL_flashlight_flicker_freq (VALUE) - Sets how rare flickering is.
IFL_flashlight_flicker_int (VALUE) - Sets how intense flickering is.

IFL_flashlight_Blacklist_Add (Path/MODELNAME.mdl) - Adds model to blacklist.
IFL_flashlight_Blacklist_Remove (Path/MODELNAME.mdl) - Removes model from blacklist.

IFL_GetWorldModel - Gets players worldmodel name (thirdperson).
IFL_GetViewModel - Gets players viewmodel name (firstperson).

----------------------------------------------------------------

This was my favorite addon to make so far- enjoy!

If a weapon has incorrect attachment angles or shouldn’t attach (some crowbar replacements do this) then you can blacklist them using the commands above!

Possible future updates planned:

-Multiplayer support
161 条留言
froelz 9 月 30 日 上午 11:46 
+1 would be nice, Fading Wounds Fix doesn't work with this unfortunately.

Also found that looking at grass/trees with the flashlight on some maps tanks your FPS, great addon otherwise.
Gabriel ML 9 月 30 日 上午 2:37 
Is it possible to fix the fading wounds thingy? When you shine your flashlight on an NPC with blood decals, they dissapear
Snicktlogan 9 月 27 日 下午 12:38 
is it possible to connect the original flashlight config to this and make it so that if you have the mod you can't see the original flashlight (I know nothing about making mods)
kizbo228 9 月 13 日 上午 7:40 
multiplayer pls:missing:
Gorigo 9 月 11 日 上午 10:33 
agree with comment below
baba ⁧⁧yaga 8 月 23 日 下午 1:08 
YOU COULD DO ANOTHER VERSION WITH THE MULTIPLAYER COMPATILIBITY AND LEAVE THIS ONE SO PEOPLE THAT WANTS CLIENTSIDE USES THIS AND THE OTHERS USE THE OTHER VERSION
bobellan476 8 月 21 日 下午 8:29 
When i use this mod for some reason no light actually comes on, just a sprite on the end of my gun, and ive tried uninstalling, reinstalling, and trying different mods, but I cant fix it? is this a common issue with the mod/ a capability issue? ive seriously tried almost everything at this point to bring the flashlight back on but nothing works.
RestfulTitan99 8 月 18 日 下午 7:39 
as world u can play
RestfulTitan99 8 月 18 日 下午 7:39 
can u help me port my custom buildingd=s to garrys mod workshop lol if so whats your discord
Jiyū to anzen  [作者] 8 月 11 日 下午 1:46 
@Parrowlili It seems many people want a multiplayer feature and I really can’t add stuff like that without sacrificing the client-side element. I’m still looking into how I can make this addon stay clientside