Script Docs


Home
Collapse All
Expand All


libcod

Bots
setWalkDir
setLean
setStance
throwNade
fireWeapon
meleeWeapon
reloadWeapon
adsAim
switchToWeaponId
Entity
setAlive
setBounds
Exec
exec
exec_async_checkdone
exec_async_create
exec_async_create_nosave
Level
getnumberofstaticmodels
getstaticmodelname
getstaticmodelorigin
Memory
memory_malloc
memory_free
memory_int_get
memory_int_set
memory_memset
MySQL
mysql_affected_rows
mysql_async_create_query
mysql_async_create_query_nosave
mysql_async_getdone_list
mysql_async_getresult_and_free
mysql_async_initializer
mysql_close
mysql_errno
mysql_error
mysql_fetch_field
mysql_fetch_row
mysql_field_seek
mysql_free_result
mysql_init
mysql_num_rows
mysql_num_fields
mysql_query
mysql_real_connect
mysql_real_escape_string
mysql_reuse_connection
mysql_store_result
Player
aimButtonPressed
leftButtonPressed
rightButtonPressed
forwardButtonPressed
backButtonPressed
leanleftButtonPressed
leanrightButtonPressed
jumpButtonPressed
reloadButtonPressed
fragButtonPressed
smokeButtonPressed
addVelocity
getVelocity
setVelocity
clientUserInfoChanged
get_userinfo
set_userinfo
isBot
isMantling
isOnLadder
clientHasClientMuted
getAddressType
getClientState
getCookTime
getFps
getIP
getLastConnectTime
getLastGamestateSize
getLastMSG
getPing
getSpectatorClient
getStance
setg_gravity
setg_speed
setGuid
ClientCommand
connectionlessPacket
disableItemPickup
enableItemPickup
kick2
printOutOfBand
renameClient
resetNextReliableTime
Utils
float
sqrt
sqrtInv
getAscii
getLastTestClientNumber
getLocalTime
getServerStartTime
getSysMilliseconds
getSystemTime
getType
printf
sprintf
file_exists
file_link
file_unlink
FS_LoadDir
sendGameServerCommand
Cmd_ExecuteString
system
rundll
Weapons
getLoadedWeapons
getWeaponClipSize
setWeaponClipSize
getWeaponCookable
setWeaponCookable
getWeaponDamage
setWeaponDamage
getWeaponDamageMelee
setWeaponDamageMelee
getWeaponFireTime
setWeaponFireTime
getWeaponHitLocMultiplier
setWeaponHitLocMultiplier
getWeaponMaxAmmo
setWeaponMaxAmmo
getWeaponMeleeTime
setWeaponMeleeTime
getWeaponReloadEmptyTime
setWeaponReloadEmptyTime
getWeaponReloadTime
setWeaponReloadTime

Stock

AI
aimatpos
allowedstances
animcustom
animmode
beginprediction
canattackenemynode
cansee
canshoot
canuseturret
checkgrenadethrow
checkgrenadethrowpos
checkprone
clearenemy
clearpotentialthreat
connectpaths
disconnectpaths
dropweapon
dumphistory
endprediction
enterprone
exitprone
findbestcovernode
findcovernode
findreacquiredirectpath
findreacquirenode
findreacquireproximatepath
flagenemyunattackable
getcovernode
getgoalvolume
getgroundenttype
gethitenttype
gethityaw
getmotionangle
getnegotiationendnode
getnegotiationstartnode
getreacquirenode
getturret
isdeflected
isingoal
isnodeoccupied
ispathdirect
isstanceallowed
issuppressed
isturretactive
lerpposition
makefakeai
maymovetopoint
melee
nearnode
orientmode
pickupgrenade
predictoriginandangles
pushplayer
reacquiremove
reacquirestep
setaimanims
setfriendlychain
setgoalentity
setgoalnode
setgoalpos
setgoalvolume
setlookat
setlookatanimnodes
setlookatyawlimits
setnodepriority
setpotentialthreat
setproneanimnodes
setturretanim
setturretnode
shoot
startscriptedanim
stoplookat
stopuseturret
teleport
throwgrenade
trackscriptstate
traversemode
trimpathtoattack
unsetturretnode
updateprone
usecovernode
usereacquirenode
useturret
withinapproxpathdist
Animation
animhasnotetrack
animscripted
clearanim
dumpanims
getangledelta
getanimlength
getanimtime
getcycleoriginoffset
getmovedelta
getnumparts
getpartname
getstartangles
getstartorigin
gettagangles
gettagorigin
setanim
setanimknob
setanimknoball
setanimknoballrestart
setanimknobrestart
setanimrestart
setflaggedanim
setflaggedanimknob
setflaggedanimknoball
setflaggedanimknoballrestart
setflaggedanimknobrestart
setflaggedanimrestart
stopanimscripted
stopuseanimtree
useanimtree
BadPlaces
badplace_arc
badplace_cylinder
badplace_delete
Clans
getclandescription
getclanid
getclanmotto
getclanname
getclanurl
Client
allclientsprint
allowspectateteam
announcement
ban
clientannouncement
clientprint
cloneplayer
disableweapon
dropitem
enableweapon
getviewmodel
isplayernumber
istalking
kick
makecvarserverinfo
sayall
sayteam
setspawnweapon
setteamfortrigger
showscoreboard
suicide
updatescores
Control
getcommandfromkey
getkeybinding
Damage
finishplayerdamage
radiusdamage
setcandamage
setplayerignoreradiusdamage
Debug
addtestclient
assert
assertex
assertmsg
getdebugeye
iprintln
iprintlnbold
line
print
print3d
println
setdebugangles
setdebugorigin
Dvars
getcvar
getcvarfloat
getcvarint
setcvar
Effects
getfxvisibility
loadfx
playfx
playfxontag
playloopedfx
setblur
setcullfog
setexpfog
Entity
attach
delete
detach
detachall
disableaimassist
dodamage
dontinterpolate
enableaimassist
enablelinkto
getattachignorecollision
getattachmodelname
getattachsize
getattachtagname
getent
getentarray
getentbynum
getentitynumber
getentnum
getnormalhealth
getorigin
hide
istouching
launch
linkto
localtoworldcoords
locklightvis
setcontents
setcursorhint
sethintstring
setlookattext
setmodel
setnormalhealth
setshadowhint
setstablemissile
show
showtoplayer
unlink
unlocklightvis
useby
File
closefile
fgetarg
fprintln
freadln
openfile
HUD
cleartargetent
destroy
fadeovertime
moveovertime
newclienthudelem
newhudelem
newteamhudelem
obituary
reset
scaleovertime
setclock
setclockup
setgametypestring
setmapnamestring
setplayernamestring
setshader
settargetent
settenthstimer
settenthstimerup
settext
settimer
settimerup
setvalue
setwaypoint
Level
changelevel
cinematic
drawcompassfriendlies
earthquake
exitlevel
getallnodes
getallvehiclenodes
getarraykeys
getbrushmodelcenter
getnode
getnodearray
getnorthyaw
getnumvehicles
getstarttime
gettime
getvehiclenode
getvehiclenodearray
issplitscreen
isvalidgametype
map
map_restart
mapexists
missionfailed
missionsuccess
setclientnamemode
setculldist
setvotenocount
setvotestring
setvotetime
setvoteyescount
setwinningplayer
setwinningteam
updateclientnames
worldentnumber
Math
acos
asin
atan
cos
int
randomfloat
randomfloatrange
randomint
randomintrange
sin
tan
Menus
Motion
movegravity
moveto
movex
movey
movez
notsolid
rotatepitch
rotateroll
rotateto
rotatevelocity
rotateyaw
solid
vibrate
Objective
objective_add
objective_additionalcurrent
objective_additionalposition
objective_current
objective_delete
objective_icon
objective_onentity
objective_position
objective_ring
objective_state
objective_string
objective_string_nomessage
objective_team
pingplayer
Player
attackbuttonpressed
buttonpressed
deactivatechannelvolumes
deactivatereverb
enablehealthshield
freezecontrols
getcurrentoffhand
getcurrentweapon
getfractionmaxammo
getfractionstartammo
getguid
getnormalizedmovement
getplayerangles
getstance
getweaponslotammo
getweaponslotclipammo
getweaponslotweapon
givemaxammo
givestartammo
giveweapon
hasweapon
isfiring
islookingat
ismeleeing
isonground
isthrowinggrenade
meleebuttonpressed
playerads
playerlinkto
playerlinktoabsolute
playerlinktodelta
playlocalsound
setautopickup
setchannelvolumes
setclientcvar
setentertime
setorigin
setplayerangles
setreverb
setviewmodel
setweaponclipammo
setweaponslotammo
setweaponslotclipammo
setweaponslotweapon
shellshock
stoplocalsound
stopshellshock
switchtooffhand
switchtoweapon
takeallweapons
takeweapon
usebuttonpressed
viewkick
Precache
precacheheadicon
precacheitem
precachemenu
precachemodel
precacherumble
precacheshader
precacheshellshock
precachestatusicon
precachestring
precacheturret
precachevehicle
Rumble
playlooprumble
playlooprumbleonpos
playrumble
playrumbleonpos
stopallrumbles
stoprumble
Save
commitsave
issaverecentlyloaded
issavesuccessful
savegame
savegamenocommit
Sentient
getaiarray
getclosestenemysqdist
getenemysqdist
geteye
isai
isalive
isplayer
issentient
Sound
ambientplay
ambientstop
iswaitingonsound
musicplay
musicstop
playloopsound
playsound
playsoundasmaster
setsoundblend
soundexists
soundfade
stoploopsound
Spawn
dospawn
getspawnerarray
getspawnerteamarray
placespawnpoint
positionwouldtelefrag
setspawnerteam
spawn
spawnstruct
spawnturret
spawnvehicle
stalingradspawn
String
getsubstr
issubstr
strtok
tolower
System
logprint
resettimeout
setarchive
Teams
getteamplayersalive
getteamscore
setteamscore
Trace
bullettrace
bullettracepassed
physicstrace
sighttracepassed
Triggers
clientclaimtrigger
clientreleasetrigger
releaseclaimedtrigger
Turret
cleartargetentity
getturretowner
getturrettarget
isfiringturret
maketurretunusable
maketurretusable
restoredefaultdroppitch
setaispread
setbottomarc
setconvergencetime
setdefaultdroppitch
setleftarc
setmode
setplayerspread
setrightarc
setsuppressiontime
settargetentity
settoparc
setturretignoregoals
setturretteam
shootturret
startfiring
stopfiring
Variables
isdefined
isstring
Vector
anglestoforward
anglestoright
anglestoup
closer
distance
distancesquared
length
lengthsquared
vectordot
vectornormalize
vectortoangles
Vehicles
addvehicletocompass
attachpath
clearturrettarget
fireturret
freevehicle
getspeed
getvehicleowner
getwheelsurface
isturretready
joltbody
makevehicleunusable
makevehicleusable
removevehiclefromcompass
resumespeed
setspeed
setswitchnode
setturrettargetent
setturrettargetvec
setvehiclelookattext
setvehicleteam
setwaitnode
setwaitspeed
startenginesound
startpath
stopenginesound
Weapons
disablegrenadebounce
disablegrenadetouchdamage
enablegrenadebounce
enablegrenadetouchdamage
getammocount
getweaponmodel