New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENTITY: New Use workflow #1458
base: master
Are you sure you want to change the base?
ENTITY: New Use workflow #1458
Conversation
local client = LocalPlayer() | ||
if not IsValid(client) or not client:IsTerror() or not self.pickupWeaponClass then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
local client = LocalPlayer() | |
if not IsValid(client) or not client:IsTerror() or not self.pickupWeaponClass then | |
local client = LocalPlayer() | |
if not IsValid(client) or not client:IsTerror() or not self.pickupWeaponClass then |
end | ||
|
||
tData:SetKeyBinding("+use") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now everbody can see the keybinding, could you please change it back so that only people that are able to pick it up see the binding?
local client = LocalPlayer() | ||
if not IsValid(client) or not client:IsPlayer() or not client:IsActive() then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
local client = LocalPlayer() | |
if not IsValid(client) or not client:IsPlayer() or not client:IsActive() then | |
local client = LocalPlayer() | |
if not IsValid(client) or not client:IsPlayer() or not client:IsActive() then |
This is implementing the new use workflow and gets rid of UseOverride.
Also C4 is now the first to properly use ClientUse to display a UI without routing it over the server.
As sidenote I fixed the Visualizer so that it can be picked up by the originator. This was only a problem if a non policing role should be able to buy it. Thats more in line with our general shop setup possibilities.