Commit Graph

316 Commits

Author SHA1 Message Date
penolakushari
3c52cd4473 Adjusted angle snapping to be somewhat more precise and made world alignment work for nonphysical bone positioning gizmo 2023-10-26 23:04:03 +03:00
penolakushari
1647561c33 Fixed issue with positioning gizmos being weird due to always rotating 2023-09-11 20:58:00 +03:00
penolakushari
e398693150 Fixed issue with parameters in text entry boxes of nonphysical bone manipulation tab not being rounded when manipulating those bones with gizmos 2023-08-29 18:52:45 +03:00
penolakushari
77e657e71f Optimized the shift-ray entity ignore list to be only created once, added locked constrained entities into it as well 2023-08-27 00:01:45 +03:00
penolakushari
b3ac6e19f7 Fixed ragdoll mover breaking when using constrained entity locking. Prop ragdolls now will be ignored by the shift-trace 2023-08-26 14:01:03 +03:00
penolakushari
a763364332 Fixed issue with using gizmo offset breaking bone resetting, made it so gizmo offsets will now work properly on root bone of parented entities 2023-08-25 15:02:54 +03:00
penolakushari
131bc2bc08 Fixed weird rotations when manipulating nonphysical bones with rotation gizmos 2023-08-23 15:39:38 +03:00
penolakushari
d46e41f017 Now angle gizmos will represent euler rotations on nonphysical bones properly, fixed side parts of gizmos not moving nonphysical bones as expected, nonphysical bone manipulation tab will now hide positioning and angle sliders on physical bones from any entity rather than just ragdolls 2023-08-23 12:49:05 +03:00
penolakushari
f5df721cf8 Removed useless leftover variables 2023-08-21 16:29:46 +03:00
penolakushari
4997ad57e8 Added ability to set offsets to props in a prop ragdoll, made IK tool shoot on foot assign and added text entry boxes to nonphysical bone manipulation tab for easier copypasting of parameters 2023-08-21 16:14:49 +03:00
penolakushari
a19d103949 Added localization resource and notifications to prop ragdoll tool, removed some checks from ragdoll mover as a test whether gmod crashes now without them 2023-08-19 21:02:48 +03:00
penolakushari
630d23955d Basic use for Prop ragdoll tool now works as was intended, using secondary fire will make it select all constrained entities that player aimed at, which would allow to set a custom skeleton for prop ragdoll through drag and drop feature. Pressing reload on entities with Prop Ragdoll data will dissolve the prop ragdoll. Removing one of the entities that make up a prop ragdoll will dissolve it too. Constrained entities tab in ragdoll mover will now ignore props that are parented to something. IK Chains creator tool now supports saving prop ragdoll IKs 2023-08-17 20:20:39 +03:00
penolakushari
1263e56dea Fixed small mistake I've overlooked 2023-08-10 00:38:03 +03:00
penolakushari
dee4970846 Added experimental concept for prop ragdoll tool which currently will create ragdoll chain out of 4 physics props, reworked ragdoll mover and ik tool to cooperate with prop ragdoll, optimized net messages to use less bits 2023-08-10 00:28:14 +03:00
penolakushari
9ebe61d929
Merge pull request #20 from penolakushari/movement_upgrade
Movement upgrade
2023-08-10 00:23:40 +03:00
penolakushari
675f4be5f4 Added 'omni' part to positioning gizmo of ragdoll mover, that allows plane movement of selected entity relative to player's view, and also allow to snap the gizmo to physical objects when holding sprint key, shift by default 2023-07-17 19:28:25 +03:00
penolakushari
71fdee9b70 IK Chain creator tool will now show physical skeleton of a ragdoll, and also show on HUD bones that were selected for current IK chain. Added IK chain saving and loading, IK chains will be saved in the data/rgmik folder 2023-07-17 03:39:49 +03:00
penolakushari
5ae5c0ba84 Added ability to enable/disable additional IK chains in ragdoll mover, as well as reworked the way binder buttons behave when resizing tool's menu 2023-07-10 23:56:56 +03:00
penolakushari
10bbfc3a21 IK adjustments, IK chain creator UI overhaul, added 6 more additional IK chain slots to creator that ragdoll mover can't work with yet, + made it so knee bone for IK would have to be manually selected, which allows to make IKs for limbs with more than 3 bones, although it stil only uses 3 IK bones 2023-07-05 00:00:54 +03:00
penolakushari
ae12b41655 Added snapping options to the resource file + formatting 2023-07-03 10:13:12 +03:00
penolakushari
4bb8ab741e Added angle snapping feature 2023-07-03 09:42:09 +03:00
penolakushari
3ac58f813a Fixed issue with entities that consisted of 1 physics object not being possible to move after resetting to root bone, and issue with unfreeze bones setting creating errors when trying to unfreeze not existing locked constrained entities 2023-06-21 23:35:14 +03:00
penolakushari
24e42b400c Made it so pressing R will select physical root bone of a ragdoll, in case if it had nonphysical bone with index 0 for some reason 2023-05-17 18:04:49 +03:00
penolakushari
72f78be6a2 Reverted GetClientBool to GetClientValue as 64 gmod branch doesn't seem to have these functions. Also fixed issue with bone sorting not showing all physical bones as apparently procedural bones can be physical, whereas I assumed that bones can be either procedural or physical, not both 2023-04-30 16:22:59 +03:00
penolakushari
b0c5444fcb Now it should be properly fixed 2023-04-28 23:23:01 +03:00
penolakushari
672cf62dbb Fixed issue related to icons for bone locking or constrained entities staying enabled when they shouldn't 2023-04-28 23:15:01 +03:00
penolakushari
647779f97e A quickfix for the entity tree, as I've forgot to set an offset for it as to leave a bit of space to the right of the text 2023-04-26 22:27:12 +03:00
penolakushari
e52bd95956 Fixed issues related to bone tree either having too much empty space when working with too many bones that are parented to each other, and the slider not behaving correctly when resizing the tool's menu 2023-04-26 22:06:03 +03:00
penolakushari
747dca7a2b Made bone list horizontal scrollbar adaptable, so depending on the size of the list it'll change its size correctly rather than being statically set to 600 all time 2023-04-25 19:27:34 +03:00
penolakushari
be3519a138 Quality of life stuff - bone locking and constrained entity locking will now play a sound and change icon of the bone that will have another bone locked to it, or entity that will be locked to some bone, and added tips for them. Added buttons to select all IKs in IK tab, and button to reset all bones in bone manipulation tab 2023-04-24 03:41:03 +03:00
penolakushari
0d9101f5bf Added an option to disable entity selection to prevent accidental entity selection, which would result in resetting ragdoll mover locks. Also did a bit of cleanup in the script 2023-04-22 15:16:46 +03:00
penolakushari
f39a63830d Fixed an issue with gizmo offset not getting reset properly as vector_origin constant was getting the same value as the gizmo offset for some reason? no idea why that was happening, neither does anything inside of ragdoll mover overwrite vector_origin 2023-04-10 21:22:56 +03:00
penolakushari
1acbde0c62 Optimization - moved Vector, Angle and Color functions with static values outside of the looping parts to save performance and made them use a variable instead 2023-04-04 20:45:23 +03:00
penolakushari
ea064cc14b Added ability to lock constrained entities to selected entity to move them together, adjusted ragdoll mover messages, added horizontal bar to parented entities bonetree considering it can expand horizontally now with being able to see children of children 2023-03-21 00:49:17 +03:00
penolakushari
8245a6dfa8 Fixed issue with locking IK bones, although the whole fix was making the tool calculate IKs twice. There is probably a better way to do this 2023-03-15 01:32:25 +03:00
penolakushari
e5c98b9948 Forgot to use rgm. in front of one BoneToPhysbone function to make it use function from ragdoll mover module and not one from smh 2023-03-13 18:37:11 +03:00
penolakushari
6622d9e221 Fixed an issue with trying to bone children on entities that have no bones, and fixed issue with some ragdolls being weird with position/rotation locking due to weird ragdoll structure and TranslateBoneToPhysbone not cooperating 2023-03-13 18:29:48 +03:00
penolakushari
dced6edaf1 Added ability to lock bones of a ragdoll to each other, and moved around dermamenu panels for bones so All is the topmost panel rather than the bottom one 2023-03-12 23:50:37 +03:00
penolakushari
0dd10124f1
Merge pull request #19 from penolakushari/small_enhance
Small enhancements
2023-03-12 23:45:10 +03:00
penolakushari
726dd558b8 Fixed an error related to trying to get position of ragdoll's physobject on client. Seems like clients can't work with ragdoll physics at all 2023-03-11 20:06:13 +03:00
penolakushari
4e94db8c01 Added functionality to draw lines towards child and parent bones of currently hovered bone, hovering over entity names in child entity list will also show origin position of hovered entity, added an option to show all bones of currently selected entity 2023-03-11 19:17:48 +03:00
penolakushari
1946e6cea9 Added options to only show physical or nonphysical bones in the bonetree, or make it show all bones as it did before (default behavior). Cleaned up some useless code as doesn't seem like clients can tell how many physobjects ragdolls have 2023-03-11 01:43:44 +03:00
penolakushari
3aeeb9e578 Added option to scale all children bones of the selected bone, children entities tab will now show children of children and nest them, added SetLocalPos and SetLocalAngles to move parented props 2023-03-10 00:38:41 +03:00
penolakushari
46fb32d6ac Removed buttons for bone manipulation commands and physbone locking, instead put them into the bonetree menu where they are called by right clicking on the bone that is to be manipulated. added options to apply nonphys bone resetting or scale to zero to all children bones 2023-03-08 04:01:54 +03:00
penolakushari
d707ce85ff Fixed issue with nonphysical bones rotating to 180 degrees when being selected from bonetree, bone manipulation sliders will now update when letting go of the gizmos, pressing R or calling ragdollmover_resetroot console command will switch between root bone and the last selected bone 2023-03-04 00:44:51 +03:00
penolakushari
a1caf7b6b4
Merge pull request #18 from penolakushari/gizmo_improvement
Gizmo improvement
2023-03-04 00:41:18 +03:00
penolakushari
92404b381a Added gizmo offset tab, changed tool info section for UI, fixed issue with bone scale not working when selecting physics prop without moving it 2023-02-18 22:19:38 +03:00
penolakushari
6e89fa50b1 Made gizmo arrows rotate relative to player's view, so it would be possible to grab more angles, and deleted redundant net message 2023-02-14 23:58:52 +03:00
penolakushari
985a583ce1
Merge pull request #17 from penolakushari/nonphys_fix
Nonphysbone rotation fix
2023-02-14 23:50:19 +03:00
penolakushari
c3b872ff8f Added a failsafe for physbone unfreezing in cases of manipulating nonphysical bones 2023-01-03 14:14:12 +03:00