Hi All,
I have recently wanted to start looking into making an animated entity/prop.
So as a test i wanted to attempt to recreate the Thumper.
I spawned the prop and found that it has a Sequence using:
PrintTable(self:GetSequenceList())
This returned
0 = idle
So, on
ENT:Use
i did
self:ResetSequence(0)
And it didn't do anything, it made the movable parts jitter but didn't actually do anything.
So i added
ENT.AutomaticFrameAdvance = true
And it actually F'ing moved hahaha! And even made a weird noise when it started going down, didnt create the dust or slamming noise or anything yet.. but cool nonetheless!
But here's my weird issue, when it's placed exactly next to the default HL2 Thumper available in the entities menu, its REALLY jittery when going up/down compared to the default one.. It moves like chunks at a time compared to the original one which moves really smooth...
Is it because the animation is only updating every frame or something like that? I can't actually find the original Thumper lua code so have run out of ideas!
Any thoughts on fixing the odd jitter? Thanks all!
ENT Structure see the description of AutomaticFrameAdvance, I just updated it to tell what else needs doing.
You're a machine!!! Thanks Rubat.
Added
function ENT:Think()
self:NextThink( CurTime() )
return true
end
Into my init.lua file for my entity, and it is SOOOOOO MUCH SMOOTHER now... I love this community haha.
Sorry, you need to Log In to post a reply to this thread.