config相關檔案閒聊 - Steam

Table of Contents

alias 跟 bind 我想我就不多說了,應該很多人知道在幹嘛的。

透過alias 跟 bind 可以達到例如單鍵買滿 HE Grenade、Smoke Grenade、Flashbang等。


或者章魚腳?解彈會radio 廣播?拿C4會大鵬展翅?這些。。。。

==

在cstrike 資料夾裡面,使用者設定相關檔案有四個,分別是config.cfg、

userconfig.cfg、autobuy.txt以及rebuy.txt 等檔案。

如果你是乾淨、初安裝的steam 你應該會發現,你沒有userconfig.cfg,

但是在config.cfg裡面,你會看到

unbindall (第一行)
(省略,預設的bind)
.
.
.
exec userconfig.cfg (最後一行)

這代表什麼意思? 意思就是說

(1)先清空你所有鍵盤上面的bind
(2)載入counter strike 預設的bind
(3)透過userconfig.cfg 載入使用者自定義的設定

userconfig.cfg是可以自行創立的,如果你有自定義指令的需求的話(通常alias

都是在這邊寫入)。

所以通常如果不喜歡別人變更你的config有兩種做法。

<1>
不動config.cfg,自訂義userconfig.cfg

設定流程會是這樣:

(1)每次進出遊戲,載入config.cfg,先unbindall

(2)載入counter strike 系統預設bind

(3)載入userconfig.cfg 自定義bind

(4)伺服器幫你綁定的alias 跟 bind (最GY的地方)

這種設定有好有壞,好處是你進入特殊伺服器,他幫你綁定按鍵,

你離開伺服器就失效了,因為下次進入其他伺服器,

系統會自動unbind->載入預設->載入自定義 ,壞處就是伺服器還是會覆蓋你的config

,這時候你只要在console 鍵入 exec userconfig.cfg,就會又覆蓋回來了。

<2>將config.cfg設定唯讀,不理會userconfig.cfg

這方式就是不讓任何人寫入你的config,也是有好有壞,

好處當然就是你的config自主權在你XD,壞處就是你進入kz?還是zombie?之類的伺服器

如果有特殊指令,伺服器要幫你綁定,就會失效。

==
PS:我自己是採用方式<1>,console 常用,使用console對我而言沒有造成麻煩:D
==

再來,還有兩個文件,autobuy.txt跟rebuy.txt,你可以看到預設的config.cfg

有寫入

bind "F1" "autobuy"

bind "F2" "rebuy"

autobuy這個指令的設定就在autobuy.txt裡面,這檔案很有趣,

看一下他自己的說明:


// This list of "buy aliases" is used by the AutoBuy system.
// The system begins with the first alias in the list, and attempts to
// purchase it.
// If a primary weapon is successfully purchased, all later primary weapon
// aliases are skipped.
// Similarly, secondary weapon buy alias are skipped once a seconary weapon
// has been purchased.
// You can customize this file to reflect your weapon and equipment
// preferences and priorities.
//
// The console command for autobuy is "autobuy"


這說明了"autobuy"是系統預設定的alias,至於武器名字,我就不key出來了,

請自行查閱autobuy.txt

這功能,有些人有在用,有些人沒有在用,但她可以變化成單鍵購買所有手雷XD

例如:你在autobuy.txt寫入

primammo
secammo
flash
flash
hegren
sgren

這樣按F1你就買滿手雷+子彈了 (以前沒有這檔案,好像是要透過alias+bind達到單鍵

購買)

變化性剖大,如果不喜歡F1,自己在userconfig.cfg在寫入 bind "X" "autobuy"

就ok了:D

rebuy部份我就不多談了,就偵測你上一場購買的東西再買一次。

一些cstrike內的基礎文件,其實做點小變化,好像也滿好用的A_A

一些可能很多人早就知道的東西,閒聊一下XD


--
強烈建議各位版友把所有的按鍵通通設定,就算沒設定也要設定成

bind "" "" (就是空的)

看是要採用方式1還是方式2都可,要不然每次進出其他伺服器都會狂買

降落傘之類的是什麼鬼-_-"

請還給我乾淨的鍵盤!

--
[=DLC=]咕咕的奇幻世界 - 渾沌後裔團隊
cs 1.6 ogcserver.no-ip.org:27015
half life: ogcserver.no-ip.org:27017
渾沌後裔論壇http://ogcpower.no-ip.org/bbs/
渾沌後裔Psystats3資訊http://ogcpower.no-ip.org/stats (請多註冊:D)
※ 編輯: aarons 來自: 114.47.9.10 (05/10 14:29)
free50280:推咕咕~ 05/10 14:29
pp10086:推一下 05/10 14:36
killu3000:用心推 05/10 14:41
p633:推一個 05/10 15:01
Linslilyoyo:可以把config 右鍵唯讀~ 05/10 15:24
ohmygodha:咕大文章必為好文阿 推!!!!!!!!!!!!! 05/10 17:05
Hateson:推 05/10 18:19
elitebby:我也是用<1> 不過把檔名改短了 這樣exec更方便 05/10 23:59
AsakuRacing:推! 05/11 03:14
Leet:alias還可以用嗎? XD 05/14 23:38
dxok0820:把要改的東西打在userconfig.cfg裡面也比較好整理吧 05/15 14:37
fpsprorex:推咕咕!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 06/10 16:37

All Comments

Eden avatarEden2011-05-13
推咕咕~
Bennie avatarBennie2011-05-16
推一下
Brianna avatarBrianna2011-05-17
用心推
Rebecca avatarRebecca2011-05-21
推一個
Heather avatarHeather2011-05-25
可以把config 右鍵唯讀~
Mason avatarMason2011-05-30
咕大文章必為好文阿 推!!!!!!!!!!!!!
Frederica avatarFrederica2011-06-03
Kelly avatarKelly2011-06-04
我也是用<1> 不過把檔名改短了 這樣exec更方便
Isla avatarIsla2011-06-09
推!
Damian avatarDamian2011-06-11
alias還可以用嗎? XD
Kama avatarKama2011-06-11
把要改的東西打在userconfig.cfg裡面也比較好整理吧
Skylar Davis avatarSkylar Davis2011-06-12
推咕咕!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!