Garry's Mod

Garry's Mod

102 个评价
Projected Texture Impact Light
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 特效
插件标签: 风景, 写实
文件大小
发表于
更新日期
9.342 KB
1 月 3 日 上午 12:20
2 月 4 日 上午 12:39
5 项改动说明 ( 查看 )

订阅以下载
Projected Texture Impact Light

在 Jiyū to anzen 的 1 个合集中
Projected Texture Light Effects
7 件物品
描述
An addon that utilizes Adanced Light Entities to create cool lighting effects that look a lot better than defualt source dynamic lights. Inspired and source code heavily edited from this collection of addons: https://psteamcommunity.yuanyoumao.com/workshop/filedetails/?id=3181183585

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

List of ConVars:

PT_Impact_Light 0/1 - enables/disables bullet impact light
PT_Impact_OnlyMetal 0/1 - enables/disables the effect only working on metal surfaces
PT_Impact_Light_Color (R, G, B) - sets color of impact light
PT_Impact_Hit 0/1 - enables/disables crowbar and stunstick impact light
PT_Impact_Cheap 0/1 - enables/disables cheaper spotlight
PT_Impact_Light_Blacklist_Add (CLASS) - adds weapon or entity to blacklist
PT_Impact_Light_Blacklist_Remove (CLASS) - removes weapon or entity from blacklist

------------------------------------------------------------------------------------
18 条留言
OPTIX 6 月 3 日 下午 4:00 
each time the npcs shoot the particles keep shooting if that makes sense its lagging my game pls fix
Zippy 2 月 1 日 上午 1:59 
Glad you fixed it. And yeah, life steals precious Gmod time sadly...
Jiyū to anzen  [作者] 1 月 31 日 下午 11:42 
sorry for the wait, it was finals week, but I fixed it
Zippy 1 月 22 日 上午 8:38 
getting the same issue i believe from the muzzle one
Zippy 1 月 22 日 上午 8:27 
[Projected Texture Impact Light] lua/autorun/pt_impactlight.lua:128: attempt to call method 'GetActiveWeapon' (a nil value)
1. v - lua/autorun/pt_impactlight.lua:128
2. unknown - lua/includes/modules/hook.lua:102
3. FireBullets - [C]:-1
4. PrimaryAttack - addons/zbase2/lua/weapons/weapon_zbase/sh_internal.lua:80
5. ZBWepSys_Shoot - addons/zbase2/lua/zbase/npc_base_internal.lua:797
6. ZBWepSys_FireWeaponThink - addons/zbase2/lua/zbase/npc_base_internal.lua:1188
7. ZBWepSys_Think - addons/zbase2/lua/zbase/npc_base_internal.lua:1254
8. ZBaseThink - addons/zbase2/lua/zbase/npc_base_internal.lua:457
9. v - addons/zbase2/lua/zbase/sh_hooks.lua:186
10. unknown - lua/includes/modules/hook.lua:102 (x33)

Missing IsNPC/IsPlayer() check?
Jiyū to anzen  [作者] 1 月 9 日 下午 7:20 
Things should be fixed now, and work better. Let me know how it works.
Jiyū to anzen  [作者] 1 月 9 日 下午 1:50 
Yeah- the check for metal surfaces kinda sucks anyways so I’ll rework it and fix that.
Zippy 1 月 9 日 下午 1:38 
@Jiyū to anzen
im also getting that error, just a missing nil check?
Zlobin Proto AK-12 1 月 8 日 下午 5:26 
I'm getting weird particles shooting NPC's. I'm using full dynamic animated blood as well so maybe there's an incompatibility between the two, but could you check it out?
Jiyū to anzen  [作者] 1 月 8 日 上午 10:19 
I cannot port this to Hl2- as HL2 does not support lua code.