This is an awesome addon, however I have noticed that it's conflicted with something in the Spacebuild Enhancement Project addon. It disables the thirdperson there (in case people still have that problem as well using it.)
But having played about an hour with the addon in SP, I'm hooked enough to request a bug fix for that from either side. It's too much of a loss to lose SBEP, but I love RagMorph enough that I'd like to keep it full-time.
Beyond that, it's amazing and I hope it's utilized by the Machinima folk out there to make amazing movies without having to worry about moving ragdolls any more.
The CalcView problem appears to be in Entities/lua/autorun/client/vehviewhook.lua. You shouldn't return the Gamemode CalcView, it breaks other calcview hooks. This should fix it, but bear in mind it's untested.
Code:
--AddCSLuaFile( "Wobble3RdPerson.lua" ) --Silly me :P
--include("wobble3rdperson.lua")
hook.Add("CalcView", "WobbleMan CalcView", function(ply, position, angles, fov)
if !ply:Alive() then return end
if GetViewEntity() ~= ply then return end
local useSpecialView = ply:GetNetworkedBool("HasWobbleMan")
if useSpecialView then
local RagdollIsSleeping = ply:GetNetworkedBool("WobbleManThirdPerson")
if !RagdollIsSleeping then
local aimVec = ply:GetAimVector()
local oldPos = position
local pos = oldPos + (aimVec * -200)
local ignoreEnt = ply:GetNetworkedEntity( "WobbleManEnt" ) --Ignoring the ragdoll in the trace line
local Trace = {}
Trace.start = oldPos
Trace.endpos = pos
Trace.filter = {ply, ignoreEnt}
local tr = util.TraceLine(Trace)
if tr.Hit then
pos = tr.HitPos
end
local view = {}
view.pos = pos
view.angles = angles
view.fov = fov
return view
end
end
end)