Garry's Mod

Garry's Mod

Long Use Entity Base
Showing 1-10 of 15 entries
< 1  2 >
Update: 8 Apr @ 10:28pm

remove default UseText

Update: 30 Mar @ 4:35pm

add GetUseText support

Update: 16 Apr, 2023 @ 3:44pm

progress goes clockwise instead of counter-clockwise (i always wanted it this way)

Update: 27 Jun, 2022 @ 6:39pm

base_gmodentity -> base_anim

Update: 18 Mar, 2021 @ 7:31pm

tested (still thanks datae)

ENT.PartialUses should now be a chronological table of tables with values prog and func like so:
ENT.PartialUses = {
{ prog = 25, func = function( ent ) ent:EmitSound( "beep.wav" ) end },
{ prog = 50, func = function( ent ) ent:EmitSound( "boop.wav" ) end }
}
These must be in chronological order and are SHARED, so you must use SERVER/CLIENT checks if you want to use an exclusive function.

Long Use entities now have a new server-side function available: ENT:CancelUse, which will reset the usable's progress and owner.

Update: 18 Mar, 2021 @ 6:55pm

pro coder forgets an and

Update: 18 Mar, 2021 @ 6:49pm

Made the whole thing work under ALL tickrates and more, thanks datae.

Update: 18 Mar, 2021 @ 6:40pm

Made the whole thing work under ALL tickrates and more, thanks datae.

Update: 18 Jan, 2021 @ 6:21pm

Added ENT.PartialUses table and ENT:OnUseCancel( ply )

Update: 18 Jan, 2021 @ 5:03pm

Networked ENT.DrawKeyPrompt and ENT.DrawProgress to ENT:SetDrawKeyPrompt() and ENT:SetDrawProgress()