《堡垒》Repeater的参数利用方法

来源:网络时间:2011-09-05 14:02:55

  游戏的一些参数使用xml明文定义,位置在:Bastion\Content\Game\

  简述一下Bastion\Content\Game\Weapons中远程武器文件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"

  >

  后面还有弹药的参数(穿透射击在这里面),以及升级的参数等等,大家可以自行尝试修改

文章内容来源于网络,不代表本站立场,若侵犯到您的权益,可联系我们删除。(本站为非盈利性质网站) 联系邮箱:rjfawu@163.com