MOW1.11.3装甲武器可维修的方法
2009-05-16 13:17
在2.pat中找出相应的文件3个
1。propertiestank_unarmed.ext
2。setinteraction_entitytank_sp.inc
3。setinteraction_entitytank_general_scripts_defines.inc
tank_unarmed.ext 文件
找到如下代码:
(define "components_tank"
{component "body"
(mod "mp"
{RepairTime (* %repair 100)}
)
{tags "mover" "noDestroyedView"}
}
改成如下
(define "components_tank"
{component "body"
(mod "mp"
{RepairTime (* %repair 100)}
)
{RepairTime (* %repair 30)} 添加项
{tags "mover" "noDestroyedView"}
}
tank_sp.inc和tank_general_scripts_defines.inc文件
找到如下代码:
{on "mp_destroy"
{if not tagged "destroyed"
.........
{tags add "destroyed"} 改成 ;{tags add "destroyed"}
.........
{able select 0} 改成 {able select 1}
{able repaired 0} 改成 {able repaired 1}
另外tank_unarmed.ext增加弹药库的装甲厚度也可以减少殉爆:
{volume "inventory"
{tags "explosive"}
{thickness 20}
; {able {NoWoundDecal}}
}
tank_unarmed.ext增加修理箱、油桶、炸药:
{extender "inventory"
{box
{Size 6 10}
{Weight 15000}
(mod "mp"
{item "repair_kit" 1 {cell 0 0}}
{item "repair_kit" 1 {cell 2 0}}
{item "dynamite"}
{item "barrel"}
)
(mod not "mp"
{item "repair_kit" 1 {cell 0 0}}
{item "dynamite"}
{item "barrel"}
)
}
}