教你如何修改火箭筒
发表:2012-05-25 00:00:00
来源:互联网
作者:互联网
编辑:互联网
浏览:
{weapon_bullet
{filling "ammo bazooka" 1} 装填bazooka弹药,一枚
{fillingVisible "rpg7rocket"} 装填外部可视的rpg7火箭 ???(这项不能放进去,可能跟模型有关)
{tag "rocketlauncher to_hand ap cannot_lie nokeep"}
{preloaded} 不可连发
{mass 6}
{entity "bazooka"} 表明是巴祖卡这玩意儿
{fireSound "reactive/launch02"} 发射时的声音,可以到sound.pak/sound/weapon/shot/reactive里选
; {ammoLocked} 弹药锁定(只能发射巴祖卡火箭弹,不喜欢的话可去之)
{reactive 0} 后坐力
{spreading 1}
{calibre 40}
{inventory
{size 5 2}
{link_bone "gun_back"}
{weight 100}
{fsm "smg"}
}
{states
{reload "reload-bazooka"}
{unload "unload-bazooka"}
{fire "fire-bazooka" }
{aim "aim-bazooka" } {can_aim "can-aim-bazooka"} }
{DisableRicochet} {foresight "Foresight3"} {gravity 0} {rechargeTime 12} {projectileDamage 400} {speed 130} {AimingTolerance 2} {cursor "cannon_on"} {cursorReloading "cannon_reload"} {spreading 1 {SpreadXYRatio 1} ; {SpreadYadjust 0.2} {radiusFunction 火箭筒威力MOD里的数据... 0.0 0 0.25 0.1 0.5 0.3 0.7 0.5 1.0 1.0 1.5 3.0 3.0 10.0 } } {maxRange 120} {aimRange 120} ; == maxRange (mod "mp" {aimRange 35} {maxRange 35} ) }
其中我去掉了{curve "cumulative"}这项,衰减小了许多,可能是用了默认衰减度(有关各种衰减度的文件是game.pak/set/ballistics.set,有能力的人可以深究)
|
四. 弹药的修改,仍然以巴祖卡为例。打开2.PAT下的bazooka.ammo文件
{from "pattern rpg_ammo" {entity "bazooka_ammo"} {tag "panzershreck" "pierce"} ; this ammo can be used with panzershreck pierce是穿甲能力 {view "bazooka_ammo" {tail "bazooka_tail" "tail"} 发射轨迹/尾烟,这里是巴祖卡的 } {damage blastwave {energy 1} {area 2 8} } }
同样下面给出一个.ammo文件(威力未作修改)
{from "pattern rpg_ammo" {entity "bazooka_ammo"} {tag "panzershreck" "pierce"} ; this ammo can be used with panzershreck {view "bazooka_ammo" {tail "bazooka_tail" "tail"} } {damage blastwave {energy 1} {area 2 8} } {cumulative 0}
|