Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
S
 sayCmdCheck
 sayCmds
 serialize
 setGroupCanTarget, ucl
 setGroupInheritance, ucl
 Shared UCL
 slap
 slapSounds
 spawn
 splitArgs
 splitPort
 StringArg:complete, cmds.StringArg.cmds
 StringArg:parseAndValidate, cmds.StringArg.cmds
 StringArg:processRestrictions, cmds.StringArg.cmds
 StringArg:usage, cmds.StringArg.cmds
 stringTimeToSeconds
 stripComments
 stripQuotes
T
 Tables
 takeRestOfLine, cmds
 throwBadArg
 toBool
 TranslateCommand:addParam, cmds.TranslateCommand.cmds
 TranslateCommand:call, cmds.TranslateCommand.cmds
 TranslateCommand:defaultAccess, cmds.TranslateCommand.cmds
 TranslateCommand:getUsage, cmds.TranslateCommand.cmds
 TranslateCommand:instantiate, cmds.TranslateCommand.cmds
 TranslateCommand:setOpposite, cmds.TranslateCommand.cmds
 translatedCmds, cmds.StringArg.cmds
 tsay
 tsayColor
 tsayError
U
 ucl
 UCL
 UCL Helpers
 UCLAuthed
 UCLChanged
 ULib Readme
 ULibCommandCalled
 ULibLocalPlayerReady
 ULibPlayerNameChanged
 ULibPlayerTarget
 ULibPlayerTargets
 ULibPostTranslatedCommand
 ULibReplicatedCvarChanged
 Umsg Helpers
 umsgRcv
 umsgSend
 unban
 unescapeBackslash
 Upgrade
 Usage
 userAllow, ucl
 Utilities
V
 Variables
local function sayCmdCheck(ply,
strText,
bPublic)
Say callback which will check to see if there’s a say command being used.
This table holds our say commands.
function ULib.serialize(v)
Serializes a variable.
function ucl.setGroupCanTarget(group,
can_target)
Sets what a group is allowed to target in the UCL.
function ucl.setGroupInheritance(group,
inherit_from)
Sets a group’s inheritance in the UCL.
Shared UCL stuff.
function ULib.slap(ent,
damage,
power,
nosound)
Slaps an entity, can be a user or any entity.
These are the sounds used for slaps.
function ULib.spawn(player,
bool)
Enhanced spawn player.
function ULib.splitArgs(args,
start_token,
end_token)
This is similar to string.Explode( “ “, str ) except that it will also obey quotation marks.
function ULib.splitPort(ipAndPort)
function cmds.StringArg:complete(ply,
arg,
cmdInfo,
plyRestrictions)
See cmds.BaseArg:complete
function cmds.StringArg:parseAndValidate(ply,
arg,
cmdInfo,
plyRestrictions)
See cmds.BaseArg:parseAndValidate
function cmds.StringArg:processRestrictions(cmdRestrictions,
plyRestrictions)
A helper function to help us figure out restrictions on this command.
function cmds.StringArg:usage(cmdInfo,
plyRestrictions)
See cmds.BaseArg:usage
function ULib.stringTimeToSeconds(str)
Converts a string containing time information to seconds.
function ULib.stripComments(str,
comment,
blockcommentbeg,
blockcommentend)
Strips comments from a string
function ULib.stripQuotes(s)
Trims leading and tailing quotes from a string
Some table helpers.
cmds.takeRestOfLine
This is used when specyfing a string argument to flag that this argument should use up any remaining args, whether quoted as one arg or not.
function ULib.throwBadArg(argnum,
fnName,
expected,
data,
throwLevel)
Throws an error similar to the lua “bad argument #x to fn_name (type expected, got type).
function ULib.toBool(x)
Converts a bool, nil, string, or number to a bool
function cmds.TranslateCommand:addParam(t)
Add an argument to this command.
function cmds.TranslateCommand:call(isOpposite,
...)
This is just a pass-through function for calling the function callback.
function cmds.TranslateCommand:defaultAccess(access)
function cmds.TranslateCommand:getUsage(ply)
function cmds.TranslateCommand:instantiate(cmd,
fn,
say_cmd,
hide_say,
no_space_in_say)
function cmds.TranslateCommand:setOpposite(cmd,
args,
say_cmd,
hide_say,
no_space_in_say)
Set the command opposite for this command.
Holds all the commands that are set up through the translator.
function ULib.tsay(ply,
msg,
wait,
wasValid)
Prints a message in talk say as well as in the user’s consoles.
function ULib.tsayColor(ply,
wait,
...)
Prints a tsay message in color!
function ULib.tsayError(ply,
msg,
wait)
Just like tsay, but prints the string in red
Holds all of the ucl variables and functions
ULib’s Access Control List
These defines are server-only, to help with UCL.
Called on both server and client when a player has been (re)authenticated by UCL.
Called on both server and client when anything in ULib.ucl.users, ULib.ucl.authed, or ULib.ucl.groups changes.
ULib v2.42 (released 01/01/12)
Called on server whenever a ULib command is run, return false to override and not allow, true to stop executing callbacks and allow.
Called on both client and server when a player entity is created.
Called within one second of a player changing their name.
Called whenever one player is about to target another player.
Called whenever one player is about to target another set of players.
Server hook.
Called on both client and server when a replicated cvar changes or is created.
These are ids for the ULib umsg functions, so the client knows what they’re getting.
function ULib.umsgRcv(um,
control)
Receive a umsg sent by ULib.umsgSend
function ULib.umsgSend(v,
queue)
Makes sending umsgs a blast.
function ULib.unban(steamid)
Unbans the given steamid.
function ULib.unescapeBackslash(s)
Converts ‘\\’ to ‘\’
This is the file where we’ll dump any upgrade scripts.
Server admins do not “use” ULib, they simply enjoy the benefits it has to offer.
function ucl.userAllow(id,
access,
revoke,
deny)
Adds or removes an access tag in the allows or denies for a user.
Some client-side utilties
Close