* Hide classarg prints behind convar
* Tabs instead of spaces
* Group defines and move includes to be done last
* Cleanup spawnrate code
---------
Co-authored-by: thegrb93 <grbrown93@sbcglobal.net>
* Remove `WireLib.dummytrace` dependency
Think returning just `{ Entity = ent }` is fine.
Doubt it would cause errors, I don't think servers with only advdupe2 and not wiremod are uncommon.
* Copy code from wiremod
* Fixed: Last YAW value being reset when user requests a small change
Fixed: Progress bar pixel-perfect aliment
Fixed: Tool screen HUD use boolean state instead of a number
Updated: Pitch-roll dupe control via MouseMiddle
Updated: Tool screen shows P,Y,R and height
Added: E+Shift+MouseMiddle resets offsets
Removed: Heuristics for proper angle handling
Optimized: Tool screen avoid creating color objects every frame
* Added: Local variable for player and fail-save conversion values
* Fixed: P/R offests relative to player's aim vector
* Fixed: Sign of P/R usage according to the axis used
* Removed Base world angle
* Account for YAW value when calculation P/R
* Don't spawn entity if arg counts don't match up
* Style
* Use tab indentation
* Delete last created entity instead
* Use SafeRemoveEntity instead
* Move remove down
* Support multiple created entities
* Style fix
* Fix print grammar
* Apply feedback
* Fixed: Allow adv dupe 2 to have height inset just like the offset
Fixed: Increase adv dupe contraption paste resolution
Added: Default value for offsets triggered by know mouse 3
* Improved: Tooltips for the offset controls
We aren't using travis anymore, mainly since their free tier is gone now.
I'll have to convert this to github actions, as I'd like to also get it working once more to auto-upload to workshop.
* Fixes #364
* Fixed: May use invalid physobj for `localtoworld` conversion
Added: Performance optimizations
Updated: Use non-deprecated convar extractors
Updated: Utilize table.column instead of table["column"]
Updated: Improved readability
Utilize: Lua multiple assignment
* Added: Faster way to check for `*.mdl`
Utilized: Multiple assignment and scoping
Fixed: Ghosted contraption entries not moved to mouse cursor
* Added: Validation recheck for all entities in the dupe
* Update files according to code review
* Fixed: Sentences and punctuation
* Forgot to change according to first review
* Resolves rest of the conversations
* Update requests according to the last code review
* Fixed: Convars used for `UpdateGhosts` are read correctly
Fixed: Ghosted contraption does not go upwards when the game is paused
* Removed: Use of `SetUnpacked` for older Gmod versions
* Renamed: The desired local variables
* Fixed: AdvDupe2 Shows the name of the spawned contraption in the undo list
* Update sv_clipboard.lua
* Updated: Use `finish` argument instead of calling custom undo text
* Cleaner
Co-authored-by: thegrb93 <grbrown93@sbcglobal.net>
* Fixed: Typo on line `361` index by `nil` as `wposi`
https://github.com/wiremod/advdupe2/pull/316/files
* Added: Brackets around `undo.Create` works same as `printf "test-string"`
* Use multiple assigment here as well
* Replace `error` with `err` local variable
Dev can call `error` in the scope of replacement. Besides, it is cleaner this way
* Convert protected call variables to locals
* Revert idx
Co-authored-by: thegrb93 <grbrown93@sbcglobal.net>