Garry's Mod

Garry's Mod

Long Use Entity Base
正在显示第 1 - 10 项,共 15 项条目
< 1  2 >
更新于:4 月 8 日 下午 10:28
作者:SweptThr.one

remove default UseText

更新于:3 月 30 日 下午 4:35
作者:SweptThr.one

add GetUseText support

更新于:2023 年 4 月 16 日 下午 3:44

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

更新于:2022 年 6 月 27 日 下午 6:39

base_gmodentity -> base_anim

更新于:2021 年 3 月 18 日 下午 7:31

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.

更新于:2021 年 3 月 18 日 下午 6:55

pro coder forgets an and

更新于:2021 年 3 月 18 日 下午 6:49

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

更新于:2021 年 3 月 18 日 下午 6:40

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

更新于:2021 年 1 月 18 日 下午 6:21

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

更新于:2021 年 1 月 18 日 下午 5:03

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