Commit Graph

383 Commits

Author SHA1 Message Date
Redox
a7adb33ef8
Hide classarg prints behind convar (#437)
* 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>
2023-08-26 16:50:05 -04:00
Vurv
e58e15fb6d
Merge pull request #436 from wrefgtzweve/master-1
Remove unneeded newline
2023-08-06 16:51:55 -07:00
Redox
ee8074e6da
Remove unneeded newline 2023-08-07 00:48:52 +01:00
aStonedPenguin
5d7db74761
fix language strings (#434) 2023-07-27 15:09:32 -04:00
Vurv
32492a57a1
Merge pull request #433 from Vurv78/auto-workshop-deploy
Add workshop deployment action
2023-07-14 16:02:24 -07:00
Vurv
b0d3462b65 Add workshop deployment action 2023-07-13 22:02:19 -07:00
Vurv
6895075b8b
Merge pull request #430 from Vurv78/new-readme
New `README.md`
2023-06-26 13:21:35 -07:00
Vurv
f43fc8edc1 Update README.md 2023-06-26 12:58:15 -07:00
Vurv
392432070a
Remove WireLib.dummytrace dependency (#428)
* 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
2023-06-15 11:07:32 -04:00
Deyan Dobromirov
8b30c2bc5e
Fixed: Last YAW value being reset when user requests a small change (#425)
* 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
2023-06-01 10:58:44 -04:00
Vurv
2618c37624
Pass ply to GetDupeAngleOffset 2023-05-15 14:56:29 -07:00
Deyan Dobromirov
426808476a
Improved: Angle and elevation handling fail-safe (#421) 2023-05-15 10:50:46 -04:00
Redox
f1de4bf087
Make sure Constraints table exist (#418)
* Make sure Constraints table exist

* Use tab indentation

* Use AdvDupe2.CheckValidDupe instead
2023-04-24 11:32:42 -04:00
Redox
3b969bac9f
Fix possible arg count error (#417)
* 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
2023-04-18 19:52:08 -04:00
aStonedPenguin
df12047d51
check PLAYER.CPPIGetOwner instead of CPPI global (#414)
Fixes partial implementations of CPPI and is more consistent with the rest of the code base
2023-03-01 13:37:09 -05:00
thegrb93
c78decb8be
Fix ghosts not getting cleaned up (#412) 2023-01-25 17:10:25 -05:00
Deyan Dobromirov
2c12f32a85
Entity creator is not set to player spawning the dupe (#408)
* Fixed: Creator is not set correctly when dupe is pasted

* Added: Creator update after every `ents.Create`
2023-01-11 19:37:55 -05:00
thegrb93
b83f6fd028
Add a few missing error checks. Fixes: #402 2022-10-10 09:57:21 -04:00
Deyan Dobromirov
1a9972b2a1
Increase contraption paste resolution and inset (#393)
* 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
2022-04-20 15:27:10 -04:00
CoreyLee Hassell
c87e395f85
Delete .travis.yml (#392)
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.
2022-04-07 15:34:58 -04:00
thegrb93
33dfc6e034
Fix spaces not allowed in dupe name. Fixes: #379 (#381) 2022-02-02 15:38:11 -05:00
thegrb93
0877ff1bc3
No longer need nocollide sorting since they don't get added to phys_constraintsystem (#384) 2022-02-02 15:37:48 -05:00
Aspect
c95f7b65d5
Replace all usermessages with net. (#385)
* Replace all usermessages with net.

* Fix net destinations.

Oops.

* Replace Float with UInt.

* Replace more Float with UInt.
2022-02-02 15:36:09 -05:00
thegrb93
a98bad9169
Fixes undo duplicating (#378) 2021-08-07 20:38:33 -04:00
Deyan Dobromirov
41023f7e7f
Fixes #364 (#373)
* 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
2021-07-24 19:07:52 -04:00
thegrb93
e826dc5817
Add suggested boyancy modifier. Fixes: #366 (#371) 2021-07-19 14:03:56 -04:00
thegrb93
5198dfb693
Lua error fix. Fixes: #370 (#372) 2021-07-19 14:03:24 -04:00
Python1320
e4da3dc3e3
Prevent disconnected players from spawning dupes (#375)
* Prevent disconnected players from spawning dupes

* Update init.lua

Co-authored-by: thegrb93 <grbrown93@sbcglobal.net>
2021-07-19 14:02:59 -04:00
thegrb93
1d140c4a8e
Add concmds to convert/deconvert dupe files to/from json (#368) 2021-07-05 18:40:43 -04:00
Deyan Dobromirov
bf7323eea5
Fixed: AdvDupe2 Shows the name of the spawned contraption in the undo… (#367)
* 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>
2021-07-03 20:54:28 -04:00
CoreyLee Hassell
74ac8832a9
Update addon.json 2021-05-07 18:19:00 -04:00
CoreyLee Hassell
f972f8f819
Update addon.json
Added .tgas to ignore.
2021-05-07 18:17:44 -04:00
CoreyLee Hassell
c1195c7f61
Update CONTRIBUTING.md 2021-03-06 11:00:01 -05:00
CoreyLee Hassell
561d025613
Update addon.json 2021-03-06 10:48:54 -05:00
CoreyLee Hassell
7be4c37ac7
Rename readme.md to README.md 2021-03-06 10:37:37 -05:00
CoreyLee Hassell
dd4bb1584a
Rename license to LICENSE 2021-03-06 10:37:19 -05:00
thegrb93
e5040d0866
Move netstream to lua/autorun (#358) 2021-02-12 20:29:42 -05:00
Deyan Dobromirov
a928fd3206
Fixed: Typo on line 361 index by nil as wposi (#357)
* 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>
2021-02-10 16:34:14 -05:00
Deyan Dobromirov
f4690612e6
Update readme.md (#356)
* Update readme.md

* Added: WS link dor ADVdupe2
2021-02-09 17:33:15 -05:00
thegrb93
92442ff183
Fixed up and added back limit ghost feature (#353) 2021-01-30 04:16:54 -05:00
thegrb93
72dff27b04
Fix lua error and refactor table.count (#347)
* Fix lua error and refactor table.count

* Also replace deprecated table.GetFirstKey

* Add iscopyable function

* Fixed
2021-01-22 20:36:49 -05:00
thegrb93
756f7d6d5e
Fix the advdupe1 folder unnecessarily showing (#341) 2020-12-12 16:04:35 -05:00
thegrb93
d08a7c94eb
Fix self referential table encoding issue. Fixes: #280 Fixes: #305 (#342) 2020-12-12 16:03:24 -05:00
thegrb93
0a8417df81
Fix label colors (#332)
* Fix label colors

* Revert this

* Update file_browser.lua
2020-12-04 14:52:30 -05:00
thegrb93
0c0d55fed7
Made sorting case insensitive (#333)
* Made sorting case insensitive

* Update file_browser.lua

* Update file_browser.lua
2020-12-02 21:47:22 -05:00
thegrb93
1ff38f8939
Made height offset less limited (#336)
* Made height offset less limited

* Leave the slider alone
2020-12-02 21:45:14 -05:00
thegrb93
32a5cca72c
Makes nils pass into factory funcs instead of false (#335) 2020-12-02 21:41:05 -05:00
thegrb93
91dd4c236d
Update SavePositions to use physobject positions (#334)
* Update SavePositions to use physobject positions

* Update sv_misc.lua

* Update sv_misc.lua
2020-12-01 23:31:11 -05:00
thegrb93
6a510580b2
Fix whitespace bug in Hydraulic constraints (#329) 2020-11-30 23:05:30 -05:00
thegrb93
d416441c94
Better Error handling for file fail (#327) 2020-11-28 19:22:13 -05:00