This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---@class vlazed_Player: Player Custom instance of player with extra fields | |
---@field ClientAimVector Vector Aim vector received from the client | |
---@field ShouldReceiveClientAimVector boolean Switch between the ClientAimVector or the old aim vector from GetAimVector | |
if CLIENT then | |
local sendAimConVar = CreateClientConVar("vlazed_send_aim_vector", "0", true, false, nil, 0, 1) | |
cvars.AddChangeCallback("vlazed_send_aim_vector", function (_, _, newValue) | |
local bool = isnumber(tonumber(newValue)) and tonumber(newValue) > 0 or false | |
net.Start("vlazed_ClientAimVectorToggle") | |
net.WriteBool(bool) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---@class rgmPlayer | |
---@field Bone integer | |
---@field Entity Entity | |
---@field rgmEntLocks {[Entity] : {[Entity]: {id: number, ent: Entity, poseid: number}}} | |
---@field rgmAngLocks {[Entity] : {[number]: PhysObj}} | |
---@field rgmPosLocks {[Entity] : {[number]: PhysObj}} | |
---@field rgmOffsetTable table | |
if CLIENT then | |
local THINK_INTERVAL = 0.1 |