《堡壘》武器資料修改
遊戲的一些引數使用xml明文定義,位置在:BastionContentGame
簡述一下BastionContentGameWeapons中遠端武器檔案裡面的東西,以Repeater的主引數為例(修改後直接進入存檔就可以生效哦):
改完的真正bt效果(爆炸箭我就懶得說了,大家可以參考大炮的資料得到)
<Weapon
Name="Repeater"
InheritFrom="1_BaseWeapon"
Cost="25"
Type="GUN"
SlotType="PRIMARY"
Icon="GUIIconsIcon_Repeater_02"
AmmoIcon="ProjectilesRepeaterBullet_Vertical"
AmmIconPipsPerRow="12"
AmmoIconSpacing="22"
Graphic="PlayerRepeaterFire"
IdleGraphic="PlayerRepeaterIdle"
FireGraphic="RepeaterMuzzleFlash"
FireFxB="RepeaterMuzzleSmoke"
FireSound="RepeaterFire"
BarrelLength="60"
Projectile="Repeater"
NumProjectiles="1" 射彈數量,多重箭效果
Cooldown="0.15" 射擊頻率
ChargeTime="0" 蓄力引數
ChargeGraphic="PlayerRepeaterCharge"
OnlyChargeOnce="true"
ClipSize="8" 彈夾大小
ReloadTime="1.3" 換彈時間
ReloadOnRelease="false"
ReloadGraphic="PlayerRepeaterReload"
Spread="0"
DisableOwnerForDuration="0.0"
RequiresTarget="false"
RootOwnerWhileFiring="true" 射擊時是否需要站住不動
RootOwnerWhileFiringDuration="0.15" 如果射擊時可以移動,那可以把這行刪掉
TriggerTapIgnoresCooldown="false"
CriticalFireChance="0.0"
CriticalFireWeapon="null"
NoAmmoSound="WeaponSwitch"
AutoLock="true"
AutoLockRange="675"
AutoLockDuration="0.20"
ReloadSound="RepeaterReload"
CancelMovement="true"
MouseApproachRange="999"
>
後面還有彈藥的引數(穿透射擊在這裡面),以及升級的引數等等,大家可以自行嘗試修改
拋磚引玉,大家多多摸索哈