Corelib

From EventScripts Community Encyclopedia

Contents

Overview

The corelib script addon is a library created for all scripters to use. Have a look at the Category:Corelib Commands page for a list of commands supported by corelib. Not all of them are listed below, but some of them are:

Commands

noisy_on / noisy_off

This is a common use corelib as it provides better handling for the eventscripts_noisy cvar. Scripts that need this cvar can sometimes conflict when enabling/disabling "noisy". For this reason, corelib provides a way to reference count this variable:

Enable eventscripts_noisy:

// enable eventscripts_noisy if not already enabled
es_doblock corelib/noisy_on

// add a downloadable es_stringtable downloadables // make a random bot and human player say something // change cheats without informing people es_forcevalue sv_cheats 1 es_sexec event_var(userid) noclip es_forcevalue sv_cheats 0 es_createbot [variable] <bot> es_botsetvalue


Disable eventscripts_noisy:

// disable eventscripts_noisy if no script still needs it
es_doblock corelib/noisy_off

average

See the average topic.

cheatexec

See the cheatexec topic.

damage

See the damage topic.

downloadable

See the downloadable topic.

forcecase

See the forcecase topic.

foreach

See the foreach topic.

getbotname

See the getbotname topic.

getplayerinfo

See the getplayerinfo topic.

getrandplayer

See the getrandplayer topic.

gettime

See the gettime topic.

isnull

See the isnull topic.

keyfilter

See the keyfilter topic.

keygroupremove

See the keygroupremove topic.

keygroupsort

See the keygroupsort topic.

keymath

See the keymath topic.

linkedlist

See the linkedlist topic.

nearcoord

See the nearcoord topic.

playerget

See the playerget topic.

playerset

See the playerset topic.

playervar

See the playervar topic.

profile

See the profile topic.

profilecmd

See the profilecmd topic.

queue

See the queue topic.

refcount

See the refcount topic.

repeat

See the repeat topic.

score

See the score topic.

statlog

See the statlog topic.

texthandler

See the texthandler topic.

uniqueid

See the uniqueid topic.

vecmath

See the vecmath topic.

vote

See the vote topic.

while

See the while topic.

xalias

See the xalias topic.

blog comments powered by Disqus