III.L'arme a distance.Nous alons realiser l'arc long
Ce genre de weapon se divise en deux partie
-Le Weapon
-Le Projectile
Le weapon :
Weapon ArcLong
AttackRange = 400;la portée de l'arme.
RangeBonusMinHeight = 10
RangeBonus = 1
RangeBonusPerFoot = #MULTIPLY( ELVEN_LORIENARCHER_ARCHER_RANGE .01 );bonus selon la hauteur (foot = pied ,le pied est l'unitée de mesure dans ce jeu)
WeaponSpeed = 321 ; dist/sec
MinWeaponSpeed = 241
MaxWeaponSpeed = 481 ; dist/sec Upper limit on scaling, when attacking past nominal "max" range
FireFX = FX_RohanArcherBowWeapon
ScaleWeaponSpeed = Yes ; Used for lob weapons, scales speed proportional to range
HitPercentage = 100 ;When this weapon is used it will hit exactly 50% of the time.
ScatterRadius = 16.0 ;When this weapon misses it can randomly miss by as much as this distance.
AcceptableAimDelta = 20 ; prevent twitchy reaiming in horde on horde
DelayBetweenShots = 0
PreAttackDelay = ROHAN_ELVENWARRIOR_BOW_PREATTACKDELAY
;PreAttackRandomAmount = 200
PreAttackType = PER_POSITION
FiringDuration = 0
OverrideVoiceAttackSound = ElvenWarriorVoiceAttackBow
OverrideVoiceEnterStateAttackSound = ElvenWarriorVoiceEnterStateAttackBow
;OverrideVoiceAttackAirSound = ElvenWarriorVoiceAttackBow
;OverrideVoiceAttackStructureSound = ElvenWarriorVoiceAttackBow
;OverrideVoiceAttackMachineSound = ElvenWarriorVoiceAttackBow
ClipSize = 1
AutoReloadsClip = Yes
AutoReloadWhenIdle = 1
ClipReloadTime = Min:ROHAN_ELVENWARRIOR_BOW_RELOADTIME_MIN Max:ROHAN_ELVENWARRIOR_BOW_RELOADTIME_MAX
ContinuousFireOne = 0
ContinuousFireCoast = ROHAN_ELVENWARRIOR_BOW_RELOADTIME_MAX
AntiAirborneVehicle = Yes
AntiAirborneMonster = Yes
HitPassengerPercentage = 20%
CanBeDodged = Yes ; Will check for a DodgePercent on the target to have a second chance at failing HitPercent
ProjectileNugget ; Default arrow
ProjectileTemplateName = GoodFactionArrow
WarheadTemplateName = LorienBowWarhead
ForbiddenUpgradeNames = Upgrade_ElvenSilverthornArrows
End
End
******************************************************************************************************************
Si vous avez des questions supplémentaires à poser à propos de ce tutoriel, veuillez les poser dans la section "Discussion" qui se trouve >ICI<
******************************************************************************************************************