I recently created a way to add entities that can be used as hats / backpacks like pointshop but it gives modelers who don’t have the LUA knowledge to be able to rig it to the body. However i fear that there is a more optimized way to do it because the rotation isn’t particularly fluid when the player moves.
What is the easiest way to attach the prop to the body and then ensure that it rotates perfectly after altering the angle of the prop itself to align with the rotation of the body part.
I have tried Entity:FollowBone to attach the prop to the bone but when the player moved, the prop would rotate in strange directions that doesn’t match what the player was doing.
To get it to be somewhat usable, i used PostPlayerDraw to create clientside models, find the rotation of the player’s body part and then add whatever rotation value is in the config.
Is there a better, more refined way of doing this ?
Another question is that someone asked me to make the laser beam for a laser pointer attachment that would be enabled using body groups. Getting the attachment of the gun when the body group is active is easy but my issue is creating a realistic laser pointer, is it possible within GMOD? If not i’ll have to use a render beam and stuff right ?