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

itemtype

分类

武器

参数

    type : 类型
    value : 值

说明

返回武器类型的值:

name:武器名称,如果没有此类型的武器,则为空字符串(“”)
dmg:此武器造成的伤害
dmg_z1:缩放等级1 /次要攻击模式造成的伤害
dmg_z2:缩放级别2造成的损坏
rate:射击率
reload:换弹持续时间
ammo:武器可以携带的弹药量
ammoin:可放入武器的弹药量
price:武器价格
range:武器射程
dispersion:武器分散
slot:HUD项目插槽
recoil:武器后坐力


注意:不要将地图上的武器实例的ID(请参阅item命令)与武器类型ID混淆!那是两件事。每个武器都有一个唯一的ID,但多个武器可以具有相同的类型ID!

修改词条 删除词条