钢管猫 Posted 2007年8月25日 13:36 Posted 2007年8月25日 13:36 接着上次的基础篇 ~ 1.开关控制 在ET下,只要参数的类型是布尔型(只有0或1)就可以设置开关,用toggle来控制,这个在ET:QW中也可以使用 语法: bind [key] "toggle [command]" 这里有些例子: bind SHIFT "toggle ui_showgun" //显示武器开关 bind F3 "toggle com_showFPS" //显示FPS值开关 ET:QW还有个扩展的语法,即可以在自定义的两个值之间设置开关,即使参数不是布尔值也可以使用开关命令。 语法: bind [key] "toggle [command] [value1] [value2]" 例如: bind del "toggle g_fov 90 107;addchatline '^2[Fov toggled]'" //调整视野为90度或107度;分号后面是在聊天区域显示文字的命令,相当于echo 2. 循环 循环命令允许玩家在一个范围内赋予某个参数特定的值 语法: bind x "cycle [参数名] [起始值] [终止值] [步进(可选)]" 例如: bind x "cycle g_fov 90 110 5" //这样连续按下x键之后,视野将依次变成90度,95度,100度,105度,110度,之后就跳回90 循环的实现还有另一种更灵活的方法,因为改变了这些值,我们往往希望能在屏幕上显示些信息告诉我这些参数确实被修改了,那就使用set命令 语法: set [scriptline(n)] "[command];bind [key] 'vstr [scriptline(n+1)]'; addchatline [comment]" set [scriptline(n+1)] "[command];bind [key] 'vstr [scriptline(n)]'; addchatline [comment]" bind [key] "vstr [scriptline(n)]" 语法可以扩展至多个值之间的循环。 给出例子: set fov1 "set g_fov 90;bind del 'vstr fov2';addchatline 'Fov 90'" set fov2 "set g_fov 107;bind del 'vstr fov1';addchatline 'Fov 107'" bind del "vstr fov1" 这是比较dirty的做法! 因为常常会导致bind的错乱,ET时代可以将+vstr命令使用在一条组合的命令中(例set fov vstr fov1) 但是et:qw的vstr命令不能这样使用了。 3. Vsays ET:QW用鼠标中键就可以打开语音菜单,从中选择语音。但也可以将一些常用的绑定到某个键,更快捷的通讯~ 例如: bind "LEFTARROW" "clientQuickChat quickchat/need/medic" "" "default" //按下左箭头,呼叫Medic 这里列出全部语音的列表 GDF: clientquickchat quickchat/global/yes clientquickchat quickchat/global/no clientquickchat quickchat/global/thanks clientquickchat quickchat/global/youwelcome clientquickchat quickchat/global/sorry clientquickchat quickchat/global/hi clientquickchat quickchat/global/bye clientquickchat quickchat/global/quiet clientquickchat quickchat/global/cheers/awesome clientquickchat quickchat/global/cheers/greatshot clientquickchat quickchat/global/cheers/freedomofearth clientquickchat quickchat/global/cheers/wellplayed clientquickchat quickchat/global/cheers/goodgame clientquickchat quickchat/global/cheers/gdf clientquickchat quickchat/global/cheers/yourock clientquickchat quickchat/global/cheers/alright clientquickchat quickchat/global/cheers/bullseye clientquickchat quickchat/global/taunts/ohdear clientquickchat quickchat/global/taunts/oops clientquickchat quickchat/global/taunts/enemyweakened clientquickchat quickchat/global/taunts/theyrunningaway clientquickchat quickchat/global/taunts/eatthatstrogg clientquickchat quickchat/global/taunts/killalienscum clientquickchat quickchat/global/taunts/denied clientquickchat quickchat/global/taunts/grr clientquickchat quickchat/global/taunts/cough clientquickchat quickchat/global/taunts/awkward clientquickchat quickchat/global/taunts/awyeahohno clientquickchat quickchat/global/taunts/awnoheyyeah clientquickchat quickchat/global/taunts/owned clientquickchat quickchat/global/taunts/thathurt clientquickchat quickchat/global/taunts/thathadtohurt clientquickchat quickchat/global/taunts/meh clientquickchat quickchat/global/taunts/ihadworse clientquickchat quickchat/responses/acknowledged clientquickchat quickchat/responses/declined clientquickchat quickchat/responses/onit clientquickchat quickchat/responses/onmyway clientquickchat quickchat/responses/sorry clientquickchat quickchat/responses/dontcare clientquickchat quickchat/responses/unabletoassist clientquickchat quickchat/responses/outofrange clientquickchat quickchat/responses/thanks clientquickchat quickchat/responses/youwelcome clientquickchat quickchat/need/medic clientquickchat quickchat/need/ammo clientquickchat quickchat/need/engineer clientquickchat quickchat/need/backup clientquickchat quickchat/need/coveringfire clientquickchat quickchat/need/firesupport clientquickchat quickchat/need/mines clientquickchat quickchat/need/team/medic clientquickchat quickchat/need/team/fieldops clientquickchat quickchat/need/team/engineer clientquickchat quickchat/need/team/covertops clientquickchat quickchat/need/team/soldier clientquickchat quickchat/need/team/radar clientquickchat quickchat/need/team/apt clientquickchat quickchat/need/team/avt clientquickchat quickchat/need/team/ait clientquickchat quickchat/need/team/snipersupport clientquickchat quickchat/vehicles/needvehicle clientquickchat quickchat/vehicles/needgunner clientquickchat quickchat/vehicles/needdriver clientquickchat quickchat/vehicles/needpilot clientquickchat quickchat/vehicles/needrepairs clientquickchat quickchat/vehicles/needpickup clientquickchat quickchat/vehicles/vehicleready clientquickchat quickchat/vehicles/holdvehicle clientquickchat quickchat/vehicles/bailout clientquickchat quickchat/vehicles/needpassenger clientquickchat quickchat/enemy/infantryspotted clientquickchat quickchat/enemy/indisguise clientquickchat quickchat/enemy/vehiclespotted clientquickchat quickchat/enemy/armorspotted clientquickchat quickchat/enemy/aircraftspotted clientquickchat quickchat/enemy/infiltratorspotted clientquickchat quickchat/enemy/minesspotted clientquickchat quickchat/enemy/incomingairstrike clientquickchat quickchat/enemy/incomingbombardment clientquickchat quickchat/enemy/deployables/aitspotted clientquickchat quickchat/enemy/deployables/firesupportspotted clientquickchat quickchat/enemy/deployables/aptspotted clientquickchat quickchat/enemy/deployables/avtspotted clientquickchat quickchat/enemy/deployables/radarspotted clientquickchat quickchat/commands/move clientquickchat quickchat/commands/letsgo clientquickchat quickchat/commands/followme clientquickchat quickchat/commands/clearmines clientquickchat quickchat/commands/hackenemybase clientquickchat quickchat/commands/captureforwardspawn clientquickchat quickchat/commands/constructguardtower clientquickchat quickchat/commands/holdfire clientquickchat quickchat/objectives/attack clientquickchat quickchat/objectives/defend clientquickchat quickchat/objectives/destroy clientquickchat quickchat/objectives/hack clientquickchat quickchat/objectives/construct clientquickchat quickchat/objectives/construct_tower clientquickchat quickchat/objectives/destroy_tower clientquickchat quickchat/objectives/take clientquickchat quickchat/objectives/return clientquickchat quickchat/objectives/disarmexplosives clientquickchat quickchat/objectives/escortmcp clientquickchat quickchat/objectives/repairmcp clientquickchat quickchat/self/imsoldier clientquickchat quickchat/self/immedic clientquickchat quickchat/self/imengineer clientquickchat quickchat/self/imcovertops clientquickchat quickchat/self/imfieldops clientquickchat quickchat/self/imattacking clientquickchat quickchat/self/imdefending clientquickchat quickchat/self/disguise/imindisguise clientquickchat quickchat/self/disguise/enemydisguisedasme clientquickchat quickchat/self/deploying/radar clientquickchat quickchat/self/deploying/apt clientquickchat quickchat/self/deploying/avt clientquickchat quickchat/self/deploying/ait clientquickchat quickchat/self/deploying/artillery clientquickchat quickchat/self/deploying/rockets clientquickchat quickchat/self/deploying/hammer clientquickchat quickchat/self/deployed/radar clientquickchat quickchat/self/deployed/apt clientquickchat quickchat/self/deployed/avt clientquickchat quickchat/self/deployed/ait clientquickchat quickchat/self/deployed/artillery clientquickchat quickchat/self/deployed/rockets clientquickchat quickchat/self/deployed/hammer clientquickchat quickchat/self/items/plantingmines clientquickchat quickchat/self/items/disarmingmines clientquickchat quickchat/self/items/suppliesdropped clientquickchat quickchat/self/items/healthpacksdropped clientquickchat quickchat/self/items/medpacksdropped clientquickchat quickchat/self/items/ammopacksdropped clientquickchat quickchat/self/repairing/radar clientquickchat quickchat/self/repairing/apt clientquickchat quickchat/self/repairing/avt clientquickchat quickchat/self/repairing/ait clientquickchat quickchat/self/repairing/artillery clientquickchat quickchat/self/repairing/rockets clientquickchat quickchat/self/repairing/hammer clientquickchat quickchat/self/repairing/mcp clientquickchat quickchat/self/repaired/radar clientquickchat quickchat/self/repaired/apt clientquickchat quickchat/self/repaired/avt clientquickchat quickchat/self/repaired/ait clientquickchat quickchat/self/repaired/artillery clientquickchat quickchat/self/repaired/rockets clientquickchat quickchat/self/repaired/hammer clientquickchat quickchat/context/hack clientquickchat quickchat/context/construct clientquickchat quickchat/context/destroy clientquickchat quickchat/context/disarmexplosives clientquickchat quickchat/context/spawnhost clientquickchat quickchat/context/spawnhost_destroy clientquickchat quickchat/context/revive clientquickchat quickchat/context/health clientquickchat quickchat/context/health_other clientquickchat quickchat/context/ammo clientquickchat quickchat/context/ammo_other clientquickchat quickchat/context/repair/vehicle clientquickchat quickchat/context/repair/vehicle_other clientquickchat quickchat/context/repair/deployable_other clientquickchat quickchat/context/attack/enemy clientquickchat quickchat/context/attack/deployable clientquickchat quickchat/context/attack/vehicle clientquickchat quickchat/context/pickup clientquickchat quickchat/context/needdriver clientquickchat quickchat/context/needgunner clientquickchat quickchat/context/needpassenger clientquickchat quickchat/context/waypoints clientquickchat quickchat/context/attack/aitspotted clientquickchat quickchat/context/attack/firesupportspotted clientquickchat quickchat/context/attack/aptspotted clientquickchat quickchat/context/attack/avtspotted clientquickchat quickchat/context/attack/radarspotted clientquickchat quickchat/context/attack/vehiclespotted clientquickchat quickchat/context/attack/armorspotted clientquickchat quickchat/context/attack/aircraftspotted clientquickchat quickchat/fireteams/waypoint/attack clientquickchat quickchat/fireteams/waypoint/defend clientquickchat quickchat/fireteams/waypoint/regroup clientquickchat botchat/generic/holdonimamedic clientquickchat botchat/generic/medicenroute clientquickchat botchat/objectives/planthecharge clientquickchat botchat/generic/needalift clientquickchat botchat/generic/needaride Strogg: clientquickchat quickchat/global/yes clientquickchat quickchat/global/no clientquickchat quickchat/global/thanks clientquickchat quickchat/global/youwelcome clientquickchat quickchat/global/sorry clientquickchat quickchat/global/hi clientquickchat quickchat/global/go clientquickchat quickchat/global/quiet clientquickchat quickchat/global/cheers/awesome clientquickchat quickchat/global/cheers/greatshot clientquickchat quickchat/global/cheers/forthemakron clientquickchat quickchat/global/cheers/wellplayed clientquickchat quickchat/global/cheers/goodgame clientquickchat quickchat/global/cheers/strogg clientquickchat quickchat/global/cheers/yourock clientquickchat quickchat/global/cheers/alright clientquickchat quickchat/global/cheers/accurate clientquickchat quickchat/global/taunts/ohdear clientquickchat quickchat/global/taunts/oops clientquickchat quickchat/global/taunts/theycrumble clientquickchat quickchat/global/taunts/theyfleeterror clientquickchat quickchat/global/taunts/eatthathuman clientquickchat quickchat/global/taunts/killhumanfood clientquickchat quickchat/global/taunts/thwarted clientquickchat quickchat/global/taunts/rrr clientquickchat quickchat/global/taunts/cough clientquickchat quickchat/global/taunts/awkward clientquickchat quickchat/global/taunts/awyeahohno clientquickchat quickchat/global/taunts/awnoheyyeah clientquickchat quickchat/global/taunts/owned clientquickchat quickchat/global/taunts/thathurt clientquickchat quickchat/global/taunts/thathadtohurt clientquickchat quickchat/global/taunts/meh clientquickchat quickchat/global/taunts/ihadworse clientquickchat quickchat/responses/acknowledged clientquickchat quickchat/responses/declined clientquickchat quickchat/responses/onit clientquickchat quickchat/responses/onmyway clientquickchat quickchat/responses/sorry clientquickchat quickchat/responses/dontcare clientquickchat quickchat/responses/unabletoassist clientquickchat quickchat/responses/outofrange clientquickchat quickchat/responses/thanks clientquickchat quickchat/responses/youwelcome clientquickchat quickchat/need/technician clientquickchat quickchat/need/stroyent clientquickchat quickchat/need/constructor clientquickchat quickchat/need/backup clientquickchat quickchat/need/coveringfire clientquickchat quickchat/need/firesupport clientquickchat quickchat/need/mines clientquickchat quickchat/need/team/technician clientquickchat quickchat/need/team/oppressor clientquickchat quickchat/need/team/constructor clientquickchat quickchat/need/team/infiltrator clientquickchat quickchat/need/team/aggressor clientquickchat quickchat/need/team/radar clientquickchat quickchat/need/team/apt clientquickchat quickchat/need/team/avt clientquickchat quickchat/need/team/ait clientquickchat quickchat/need/team/snipersupport clientquickchat quickchat/vehicles/needvehicle clientquickchat quickchat/vehicles/needgunner clientquickchat quickchat/vehicles/needdriver clientquickchat quickchat/vehicles/needpilot clientquickchat quickchat/vehicles/needrepairs clientquickchat quickchat/vehicles/needpickup clientquickchat quickchat/vehicles/vehicleready clientquickchat quickchat/vehicles/holdvehicle clientquickchat quickchat/vehicles/bailout clientquickchat quickchat/vehicles/needpassenger clientquickchat quickchat/enemy/infantryspotted clientquickchat quickchat/enemy/indisguise clientquickchat quickchat/enemy/vehiclespotted clientquickchat quickchat/enemy/armorspotted clientquickchat quickchat/enemy/aircraftspotted clientquickchat quickchat/enemy/covertopsspotted clientquickchat quickchat/enemy/minesspotted clientquickchat quickchat/enemy/incomingairstrike clientquickchat quickchat/enemy/incomingbombardment clientquickchat quickchat/enemy/deployables/aitspotted clientquickchat quickchat/enemy/deployables/firesupportspotted clientquickchat quickchat/enemy/deployables/aptspotted clientquickchat quickchat/enemy/deployables/avtspotted clientquickchat quickchat/enemy/deployables/radarspotted clientquickchat quickchat/commands/move clientquickchat quickchat/commands/letsgo clientquickchat quickchat/commands/followme clientquickchat quickchat/commands/clearmines clientquickchat quickchat/commands/hackenemybase clientquickchat quickchat/commands/captureforwardspawn clientquickchat quickchat/commands/holdfire clientquickchat quickchat/objectives/attack clientquickchat quickchat/objectives/defend clientquickchat quickchat/objectives/destroy clientquickchat quickchat/objectives/destroy_tower clientquickchat quickchat/objectives/hack clientquickchat quickchat/objectives/construct clientquickchat quickchat/objectives/construct_tower clientquickchat quickchat/objectives/take clientquickchat quickchat/objectives/return clientquickchat quickchat/objectives/disarmexplosives clientquickchat quickchat/objectives/stopmcp clientquickchat quickchat/objectives/disablemcp clientquickchat quickchat/self/imaggressor clientquickchat quickchat/self/imtechnician clientquickchat quickchat/self/imconstructor clientquickchat quickchat/self/imoppressor clientquickchat quickchat/self/iminfiltrator clientquickchat quickchat/self/imattacking clientquickchat quickchat/self/imdefending clientquickchat quickchat/self/disguise/imindisguise clientquickchat quickchat/self/disguise/enemydisguisedasme clientquickchat quickchat/self/deploying/radar clientquickchat quickchat/self/deploying/apt clientquickchat quickchat/self/deploying/avt clientquickchat quickchat/self/deploying/ait clientquickchat quickchat/self/deploying/railhowitzer clientquickchat quickchat/self/deploying/plasmamortar clientquickchat quickchat/self/deploying/dmc clientquickchat quickchat/self/deployed/radar clientquickchat quickchat/self/deployed/apt clientquickchat quickchat/self/deployed/avt clientquickchat quickchat/self/deployed/ait clientquickchat quickchat/self/deployed/railhowitzer clientquickchat quickchat/self/deployed/plasmamortar clientquickchat quickchat/self/deployed/dmc clientquickchat quickchat/self/items/plantingmines clientquickchat quickchat/self/items/disarmingmines clientquickchat quickchat/self/items/spawnhostcreated clientquickchat quickchat/self/items/stroyentdropped clientquickchat quickchat/self/items/shielddeployed clientquickchat quickchat/self/repairing/radar clientquickchat quickchat/self/repairing/apt clientquickchat quickchat/self/repairing/avt clientquickchat quickchat/self/repairing/ait clientquickchat quickchat/self/repairing/railhowitzer clientquickchat quickchat/self/repairing/plasmamortar clientquickchat quickchat/self/repairing/dmc clientquickchat quickchat/self/repaired/radar clientquickchat quickchat/self/repaired/apt clientquickchat quickchat/self/repaired/avt clientquickchat quickchat/self/repaired/ait clientquickchat quickchat/self/repaired/railhowitzer clientquickchat quickchat/self/repaired/plasmamortar clientquickchat quickchat/self/repaired/dmc clientquickchat quickchat/context/hack clientquickchat quickchat/context/construct clientquickchat quickchat/context/destroy clientquickchat quickchat/context/disarmexplosives clientquickchat quickchat/context/spawnhost clientquickchat quickchat/context/revive clientquickchat quickchat/context/stroyent clientquickchat quickchat/context/stroyent_other clientquickchat quickchat/context/ammo clientquickchat quickchat/context/repair/vehicle clientquickchat quickchat/context/repair/vehicle_other clientquickchat quickchat/context/repair/deployable_other clientquickchat quickchat/context/attack/enemy clientquickchat quickchat/context/attack/deployable clientquickchat quickchat/context/attack/vehicle clientquickchat quickchat/context/pickup clientquickchat quickchat/context/needdriver clientquickchat quickchat/context/needgunner clientquickchat quickchat/context/needpassenger clientquickchat quickchat/context/waypoints clientquickchat quickchat/context/attack/aitspotted clientquickchat quickchat/context/attack/firesupportspotted clientquickchat quickchat/context/attack/aptspotted clientquickchat quickchat/context/attack/avtspotted clientquickchat quickchat/context/attack/radarspotted clientquickchat quickchat/context/attack/vehiclespotted clientquickchat quickchat/context/attack/armorspotted clientquickchat quickchat/context/attack/aircraftspotted clientquickchat quickchat/fireteams/waypoint/attack clientquickchat quickchat/fireteams/waypoint/defend clientquickchat quickchat/fireteams/waypoint/regroup clientquickchat botchat/generic/holdonimatechnician clientquickchat botchat/generic/technicianenroute clientquickchat botchat/objectives/plantplasmacharge clientquickchat botchat/generic/needalift clientquickchat botchat/generic/needtransport 最后给出个兵种选择脚本,为尊重原作者,保持其完整性,就以附件形式给出全部cfg,里面包含了兵种选择脚本,大家可以参看一下 注意事项:beta2的cycle命令存在严重BUG,不能实现其功能,先不要使用~
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new account登录
Already have an account? Sign in here.
现在登录