The functions in the expression gate for self-aware angular velocities are wrong. extangp() returns roll velocity, extangr() returns yaw velocity, extangy() returns pitch velocity. It is a typo in the code by someone who looks like they were in a hurry. Here is the code:
Code:
ENT._extangvelp_0 = function (self) return self:GetPhysicsObject():GetAngleVelocity().x end
ENT._extangvely_0 = function (self) return self:GetPhysicsObject():GetAngleVelocity().y end
ENT._extangvelr_0 = function (self) return self:GetPhysicsObject():GetAngleVelocity().z end
The typo is that pitch should be y, roll should be y, and yaw should be z. Corrected version:
Code:
ENT._extangvelr_0 = function (self) return self:GetPhysicsObject():GetAngleVelocity().x end
ENT._extangvelp_0 = function (self) return self:GetPhysicsObject():GetAngleVelocity().y end
ENT._extangvely_0 = function (self) return self:GetPhysicsObject():GetAngleVelocity().z end
Bookmarks