Skip to content
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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

ENTITY: New Use workflow #1458

wants to merge 9 commits into from

Conversation

ZenBre4ker
Copy link
Contributor

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.

@ZenBre4ker ZenBre4ker added type/enhancement Enhancement or simple change to existing functionality type/rework Big changes or overhaul of an existing feature labels Mar 6, 2024
@ZenBre4ker ZenBre4ker self-assigned this Mar 6, 2024
Comment on lines +63 to +64
local client = LocalPlayer()
if not IsValid(client) or not client:IsTerror() or not self.pickupWeaponClass then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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")
Copy link
Member

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?

Comment on lines +208 to +209
local client = LocalPlayer()
if not IsValid(client) or not client:IsPlayer() or not client:IsActive() then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

@Histalek Histalek added this to the v0.14.0b milestone Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Enhancement or simple change to existing functionality type/rework Big changes or overhaul of an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants