Lua Hook
always
assist
attack
attack2
bombdefuse
bombexplode
bombplant
break
build
buildattempt
buy
clientdata
collect
die
dominate
drop
endround
flagcapture
flagtake
flashlight
hit
hitzone
hostagerescue
httpdata
join
key
kill
leave
log
mapchange
menu
minute
move
movetile
ms100
name
objectdamage
objectkill
objectupgrade
parse
projectile
radio
rcon
reload
say
sayteam
second
select
serveraction
shieldhit
shutdown
spawn
specswitch
spray
startround
startround_prespawn
suicide
team
trigger
triggerentity
turretscan
use
usebutton
vipescape
vote
walkover
Lua 命令
addbind
addhook
ai_aim
ai_attack
ai_build
ai_buy
ai_debug
ai_drop
ai_findtarget
ai_freeline
ai_goto
ai_iattack
ai_move
ai_radio
ai_reload
ai_respawn
ai_rotate
ai_say
ai_sayteam
ai_selectweapon
ai_spray
ai_use
checksumfile
checksumstring
closehostage
closeitems
closeobjects
entity
entitylist
freehook
freeimage
freetimer
funcs
game
hostage
image
imagealpha
imageblend
imagecolor
imageframe
imagehitzone
imagepos
imagescale
inentityzone
item
itemtype
map
menu
msg
msg2
object
objectat
objecttype
parse
player
playerammo
playerweapons
print
projectile
projectilelist
randomentity
randomhostage
reqcld
reqhttp
setentityaistate
sethookstate
stats
steamstats
tile
timer
tween_alpha
tween_animate
tween_color
tween_frame
tween_move
tween_rotate
tween_rotateconstantly
tween_scale
vars

game

分类

游戏

参数

    value : 值

说明

version:字符串,当前游戏版本
dedicated:布鲁值,如果服务器是托管的服务器,则为true,否则为false
phase:数字,游戏阶段,0表示冻结时间,1表示实际游戏的时间
round:数字,当前回合
timeleft:数字,剩余的时间,以秒为单位
maptimeleft:数字,地图上的剩余时间(以秒为单位)(可以是小数),1000000(如果无限制)
score_t:数字,恐怖分子得分(赢得的回合数)
score_ct:数字,反恐精英得分(赢得的回合数)
winrow_t:数字,恐怖分子连续获胜
winrow_ct:数字,反恐精英连续获胜
nextmap:字符串,下一个地图(sys / mapcycle.cfg中决定)
ticks:数字,服务器ticks(每秒刷新率/循环次数)
port:字符串,服务器使用的UDP端口(如果打开端口失败,则为“no socke”)
bombplanted:布鲁值,如果当前放置炸弹并且在计时则为true,否则为false
sysfolder:字符串,系统文件夹/路径(默认情况下为“sys”,如果通过命令行指定,则为自定义值)

修改词条 删除词条