Garry's Mod

Garry's Mod

376 hodnocení
[STool] Lightwarper
2
   
Ocenit
Přidat do oblíbených
Oblíbeno
Odebrat z oblíbených
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Movie, Scenic
Velikost souboru
Přidáno
376.211 KB
15. čvn. 2023 v 15.20
Poznámky ke změnám (1) – zobrazit

Klikněte na „Odebírat“ pro stažení položky
[STool] Lightwarper

Popis
Adds a new tool that will apply lightwarp material for any model which has $phong and $bumpmap on

$Lightwarptexture referency by valve: https://developer.valvesoftware.com/wiki/$lightwarptexture
Lightwarp textures taken from: https://gtm.steamproxy.vip/workshop/filedetails/?id=903389694

How to add your own color sets:

Create a Lua file in garrysmod/lua/autorun/client/
You can call it whatever you want, preferiblely "custom_lightwarps.lua", the .lua part it's important, since it will be a custom script

Then inside this file you have to write

list.Add( "TextureLightwarps", "path/to/your/file/without/extension" ) //Those are some default examples, materials are at materials/models/lightwarp/* list.Add( "TextureLightwarps", "models/lightwarp/twarphigh" ) list.Add( "TextureLightwarps", "models/lightwarp/twarplow" ) list.Add( "TextureLightwarps", "models/lightwarp/spectrum" ) list.Add( "TextureLightwarps", "models/lightwarp/twarpmed" ) list.Add( "TextureLightwarps", "models/lightwarp/wrapped" )


Credits: Me
Počet komentářů: 33
Jodi 7. čvn. 2024 v 4.10 
Bug: You can't save lightwarps in dupes or saves
Y!2!K!★ 7. kvě. 2024 v 20.15 
doesnt work for me
NextKurome76TheSoldier 17. zář. 2023 v 10.48 
[ERROR] lua/weapons/gmod_tool/stools/lightwrapper.lua:83: attempt to index field '$basetexture' (a nil value)
1. func - lua/weapons/gmod_tool/stools/lightwrapper.lua:83
2. unknown - lua/includes/extensions/net.lua:38
th 9. čvc. 2023 v 17.21 
cool:missing:
RaccoonFoot 7. čvc. 2023 v 16.09 
I can attest to it clashing with the Submaterial tool. After using Submaterial, any new lightwarps applied end up looking weird. Also, this tool doesn't seem to work on eye materials.
NextKurome76TheSoldier 3. čvc. 2023 v 11.33 
it cannot handle textures with transparency well and doesn't work with submaterial
ramendelsohn 24. čvn. 2023 v 21.30 
pls make it compatible with dupes :steamhappy:
Peter Lemoncello 24. čvn. 2023 v 18.35 
okay i added the custom_lightwarps.lua in the autorun file so now what?
specterusp 23. čvn. 2023 v 15.52 
use the black and white one for suda51 light warp generator
Cj ROCKS 22. čvn. 2023 v 15.19 
It ignores lightwrap, when you try to duplicate it.