让所有国家都可以建造坦克碉堡
- 坦克碉堡是游戏《红色警戒:尤里的复仇》中尤里军最基础的防御工事,无科技含量,可初期建造。该建筑没有自卫能力,但可将一辆战车装入,使它受到保护,拥有更强的装甲战斗力。
- 如果使其它国家(盟军和苏军)也可以建造坦克碉堡,这样就可以在坦克碉堡中放"光棱坦克"、"天启坦克"等,这样对于游戏防守会更加有利!那么应该如何实现这个需求呢?
实现步骤
注意:这里以红警2重聚未来为例。
- 下载并安装游戏
- 修改指定文件
 往游戏目录中的\Client\custom_rules_all.ini文件里添加以下内容:1 
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45; 坦克碉堡 
 [NATBNKHERO]
 UIName=Name:NATBNK
 Name=Yuri Tank Bunker
 Image=NATBNK
 BuildCat=Combat
 ; Prerequisite=YACNST
 Strength=1000
 Armor=steel
 TechLevel=3
 Adjacent=3
 Sight=6
 Bunker=yes
 Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs
 AIBasePlanningSide=1
 Cost=400
 Points=60
 Power=0
 Powered=false
 Capturable=false
 Crewed=no
 Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
 DebrisAnim=Dbris3sm,Dbris4lg,Dbris4sm,Dbris6sm,Dbris7lg,Dbris7sm,Dbris8sm,Dbris9lg,Dbris10lg,Dbris10sm
 MaxDebris=15
 MinDebris=5
 ThreatPosed=0
 DamageParticleSystems=SparkSys,SmallGreySSys,BigGreySmokeSys
 DamageSmokeOffset=220, 390, 150
 AIBuildThis=no
 ImmuneToPsionics=no
 NumberOfDocks=1
 NumberImpassableRows=0
 HasStupidGuardMode=false
 AntiInfantryValue=10
 AntiArmorValue=25
 AntiAirValue=0
 BaseNormal=no
 ; ******* Building Type List *******
 ; This lists all the buildings types in the game. Each of these
 ; types will have a specific section in this file that gives the
 ; particulars about that building type.
 [BuildingTypes]
 666=NATBNKHERO
- 运行游戏查看效果
主要参数解析
- [NATBNKHERO]:这里是重新命名一个新的坦克碉堡单位名称
- Name:脚本名
- Image:指定该单位在游戏里的图像,这里指定尤里坦克碉堡的默认图像
- Prerequisite:先决条件,指定拥有什么建筑时才能建造坦克碉堡
- Owner:指定可以建造的国家