* Stop using net.WriteTable, improve net efficiency
* Up precision, remove len
* Use Write/ReadInt
* Fix rounding issue
---------
Co-authored-by: StrawWagen <64710817+StrawWagen@users.noreply.github.com>
Add step sound changing support.
Entirely clientside, only changes them for the localplayer.
( stepsounds on props for other players didn't seem to work by default, so feature parity with vanilla )
By default, the step sound system checks the actual texture for a sound, then checks the noise texture for a sound.
Can be overridden though in the tool's settings.
Can be enabled/disabled by serverside & client convars.
+ Rework bumpmap system, so it actually works
---------
Co-authored-by: Redox <mail@redox.to>
- use ints to store if noise is on/off
- only pass around "untranslated" noise, never the actual texture paths.
- converts old "advanced materials" to this new standard
- some style/name tweaks for readability
Add detail/noise texture rotation
Tool now ""dynamically"" builds preview materials as needed, less hard coded.
Alphatype is now properly previewed
Noise textures are now properly copied
* Catch advmat 2 rotation + an error.
* Add alphatype support.
+ tweak style & var names
* Polish the tool.
Allow admins to change advanced material of players
Clean up + tweak the material copying logic.
Allow for the copying of "innate" prop materials.
So copy the explosive barrel texture off of a barrel.
Remove silly bool and material or material logic, put it into a function instead.
* Fixes
Fixed the preview not drawing sometimes.
Fixed a potential crash issue, according to the wiki at least.
* Style
* Add convar to block materializing players.
* Change filename
Change filename to avoid potential conflicts
* Fix stupid.
* Re-impliment vertexalpha
* Fix wrong number
* Material Removal Polish
* Use IsEffectActive
* Turbo optimize networking
* Remove debug print
* Small limit edit
* Check for old value properly
* Apply hack to fix race condition
* Clear material flag
* Rename nw2 var
No longer crashes every client when trying to validate advmats.
Advanced materials are actually removed when you hit R with the tool.
Added rotation.
Added "Wood" noise option.
Cleaned up the code.
Tested, works.