《堡垒》武器数据修改
游戏的一些参数使用xml明文定义,位置在:BastionContentGame
简述一下BastionContentGameWeapons中远程武器文件RangedWeapons.xml里面的东西,以Repeater的主参数为例(修改后直接进入存档就可以生效哦):
改完的真正bt效果(爆炸箭我就懒得说了,大家可以参考大炮的数据得到)
<Weapon
Name="Repeater"
InheritFrom="1_BaseWeapon"
Cost="25"
Type="GUN"
SlotType="PRIMARY"
Icon="GUI\Icons\Icon_Repeater_02"
AmmoIcon="Projectiles\RepeaterBullet_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"
>
后面还有弹药的参数(穿透射击在这里面),以及升级的参数等等,大家可以自行尝试修改
抛砖引玉,大家多多摸索哈