Garry's Mod

Garry's Mod

Laser STool ( Improved )
Viser 81-90 af 158 forekomster
< 1 ... 7  8  9  10  11 ... 16 >
Opdatering: 26. jan. 2022 kl. 12:53

Steam workshop version refresh

Opdatering: 26. jan. 2022 kl. 12:46

Comments change type for some functions.

Opdatering: 26. jan. 2022 kl. 12:45

2022-01-26 22:48:48.69

https://github.com/dvdvideo1234/LaserSTool/commit/3a5b3054457973973557866a4b265f809ec7d74b

Make the beam data sctructure OOP and reduce global values (#16)

Added: Automatic resize for materials content N in one row
Added: Beam redirect can take position, direction or both
Added: Custom automatic calculation of frame position and size
Added: Custom paint over to selected panel
Added: Dedicated client-side font to draw trace info with
Added: Dedicated library function for handling `MatSelect`
Added: Dedicated memory start-refract method
Added: Dedicated method for beam finish `IsFinish`
Added: Dedicated method for first iteration `IsFirst`
Added: Draw HUD shows the applied material and internal information
Added: Empty function for sorting data entries and recreate mat-select
Added: Exit medium transition sampling
Added: Initialization of client-side made in the library
Added: Language translation hashes for the labels
Added: Library `LaserLib.UpdateMaterials` for panel sorting
Added: Material panel sorting over various columns
Added: Material selector panel utilizes standard controls
Added: Materials sorting over various parameters
Added: Medium / key option to memorization
Added: Method `mtBeam:IsRefractExit` checking for exit mediums
Added: Search either by key, rate or refractive index
Added: Updating material selection slider to separate function
Changed: Beam information structure is now OOP
Changed: Consolidated and more accurate refraction cases
Changed: Most of the functions are now class methods (faster)
Factorized: Function `DoBeam` via `mtBeam:IsRefractExit`
Factorized: Material selector
Fixed: Disable hash lookup for empty and studio material
Fixed: Incorrect beam handling refracts when not traversing
Fixed: Incorrect boolean logic in HUD trace hit
Fixed: Indexing `data` instead of `self` in some places
Fixed: Laser material manipulation frame not being deleted on close
Fixed: Library `GetInteractIndex` returns the default when no data
Fixed: Lua errors due to missed `end` statement
Fixed: Material picker now save the last user state
Fixed: Material selection now saves scroll-bar position
Fixed: Refract world missing trace indexing for fraction (code it differently?)
Fixed: Various runtime error on panel generation and browsing
Reduced: Probability for typo errors in large scale `DoBeam`
Renamed: Trace class variable identifier `sTrClass`
Renamed: `ApplyWater` -> `SetWater`
Renamed: `BeWater` -> `IsWaster(nil)`
Updated: Laser tool trace materiel HUD to handle long paths

Opdatering: 14. jan. 2022 kl. 5:37

Traces performance optimiziation and wiremod API extension (#15)

Optimized: Fumction `RegisterBeamNode` utilizing numbers instead
Optimized: Refraction when mediums are the same
Optimized: Reusing multiple trace structures
Optimized: Utilizing `LengthBS`, `LengthFR`, `LengthLS`, `LengthNR`
Optimized: Utilizing library temporary instead of creating
Optimized: not creating a negated copy of `gtTxWater.N`
Added: Dedicated wiremod API for reading the `trace` and `data` structures
Added: Some comments and extra wire API functions
Added: When length is not passed it is issued from the ray direction vector
Changed: Refract entity diameter `DmRfract` is now part of the data as needed in other APIs
Updated: All calls of `RegisterBeamNode` with the new parameter set
Updated: Render bounds may help with the beam not getting drawn when player faces the other way
Updated: Update render bounds before the entity draw loop
Updated: `IsBeamNode` is not a bit fasted not creating a vector
Updated: `RegisterBeamNode` now supports direct length injection
Removed: Golden ratio method
Removed: Hard-coded select `*` from open material
Removed: Hit world refraction margin is not needed anymore
Removed: Unneeded indexing in `gmod_laser_dimmer` and `gmod_laser_parallel`

Opdatering: 11. jan. 2022 kl. 10:14

2022-01-11 20:16:38.57

https://github.com/dvdvideo1234/LaserSTool/commit/735196c7f2e0e221f2fcfa3d30ada6a7e2e01875

Fixed: Too many refractions will slow the game down by running unneeded traces
Added: CAP dedicated trace wrapper `TraceCAP`
Added: General trace dedicated wrapper `TraceBeam`
Added: Laser beam trace consolidation `LaserLib.Trace`
Added: Dedicated function for Trace width refraction modification

Opdatering: 10. jan. 2022 kl. 11:42

2022-01-10 21:45:00.73

https://github.com/dvdvideo1234/LaserSTool/commit/6b08ec5377f10519201dfe07912266f82ba18997

Removed: Filter after the beam goes out in entity refraction mode
Removed: Filter control from the refract water setup
Moved: Water and world solid to one single if statement
Used: Case condition to calculate filter ( same result )

Opdatering: 10. jan. 2022 kl. 6:48

2022-01-10 16:51:03.64

https://github.com/dvdvideo1234/LaserSTool/commit/ee932219bdca85218a0a736f14f25bbc742a7b55

Added: ray plane intersection (#14)

Fixed: Backwards trace of world transparent not ignoring start-solid props
Fixed: Beam handled incorrectly trough multiple transparent
Fixed: Beam rendering when hit-world finishes inside a solid medium
Fixed: Bounces being decremented at the end of the `trace.Hit`
Fixed: Cascade start refraction works correctly
Fixed: Do not create new parameter table for searched refraction mediums
Fixed: Laser beam spazzing out on start-refract putting extra node on the stack
Fixed: Memorize destination medium boundary when beam comes out of solids
Fixed: Register node when beam comes out of hit-world solid
Fixed: Setting water refract data normal `global` to zero at the end
Fixed: Source medium not being changed
Fixed: Start-refract flag when beam comes out of the solid medium being incorrectly triggered
Fixed: Start-refract flag when transparent and source are in water
Fixed: Trace intersect water normal is correct for beams starting in water
Fixed: Water refraction being called for other materials too
Fixed: World glass to entity refraction start-refract flag triggered correctly
Added: Beam going out of world glass `bIsRWorld and trace.FractionLeftSolid > 0`
Added: Cached material contain collection location
Added: Comment for most of the functions
Added: Function `IsBeamNode` to check the last beam node
Added: General parameter for water surface trace length
Added: Inside entity position check
Added: Library dedicated temporary calculation vector
Added: Memory refraction destination `data.TrMedium.M`
Added: More test case dupes
Added: Proper water to air refraction not bound by fraction left-solid
Added: Refract context for initializing start medium
Added: Start refract in invalid entity case `bStRfract = trace.StartSolid` ??
Added: Store world entity accessible in library internal key `WORLD`
Added: Update of `nNvMask` is `MASK_ALL` when water normal is undefined
Added: Water transition via surface plane
Added: World trigger refraction flag `bIsRWorld`
Added: ray plane intersection
Changed: Define trace valid entity flag and class outside the loop
Changed: Purpose of DATA.NUDGE as it is not needed for vectors anymore
Changed: Reduce the size of vectors origin when drawing
Updated: Increase material window size
Updated: Swap source and destination only for dedicated water hit case
Improved: Reduce input parameters of `IsWater`
Optimized: Power ratio calculator
Optimized: Start-refraction calls refraction only on different mediums
Optimized: Use local function and variable internal references
Optimized: Use local variables instead of general collection
Removed: Local variable `refsors` as it does not add much revenue
Removed: Refract world `bIsRWorld` as it is not needed anymore
Removed: Special case secondary refract world trace adjustment
Removed: Water dedicated refraction `data.IsRfract[2]` not needed anymore
Renamed: `DATA.ACTOR` to local `gtActors`
Renamed: `IsOutWater` to `IsWater`

Opdatering: 10. jan. 2022 kl. 6:46

2022-01-10 16:48:23.77

https://github.com/dvdvideo1234/LaserSTool/commit/56346916355485212e30520dd587146e4b11da55

Fixed: World glass to entity refraction start-refract flag triggered correctly
Fixed: Start-refract flag when transparent and source are in water
Fixed: Start-refract flag when beam comes out of the solid medium being incorrectly triggered
Fixed: Backwards trace of world transparent not ignoring start-solid props
Fixed: Memorize destination medium boundary when beam comes out of solids
Fixed: Beam rendering when hit-world finishes inside a solid medium
Fixed: Laser beam spazzing out on start-refract putting extra node on the stack
Changed: Purpose of DATA.NUDGE as it is not needed for vectors anymore
Added: Store world entity accessible in library internal key `WORLD`
Added: Comment for most of the functions
Added: Inside entity position check
Added: Function `IsBeamNode` to check the last beam node
Changed: Define trace valid entity flag and class outside the loop
Removed: Local variable `refsors` as it does not add much revenue

Opdatering: 1. jan. 2022 kl. 11:06

2022-01-01 21:02:14.87

https://github.com/dvdvideo1234/LaserSTool/commit/41cb5674d397481a40dbbaa4bd74b7db7166f7e3

Reduced: Back-trace hull size for better accuracy
Optimized: Reduce dynamic tables for destination medium
Optimized: Index source and destination mediums locally
Added: Dupes for testing various beam behaviors

Opdatering: 1. jan. 2022 kl. 7:42

2022-01-01 17:37:57.99

https://github.com/dvdvideo1234/LaserSTool/commit/bb3f873195254d4fc1cfe7a3337914344a484d0f

Fixed: Table creation performance overhead when refracting
Fixed: Refraction set performance indexing overhead `refract[2]`
Removed: Condition checking when `data.TrMedium.D[1]` exists