The 3rd Age

BFME I: Anorien Estel

BFME I: Anorien Estel

New great addition to BFME I - something like a new part of BFME...

Button for The 3rd AgeButton for The Dwarf HoldsButton for The Elven AllianceButton for Helm's Deep Last HopeButton for GothmogtheOrcButton for BFME+Button for The Four AgesButton for HDR HeadquartersButton for Middle Earth CenterButton for Project Perfect Mod

Become an affiliate!

   

Quick Lists

Top Rated Popular New Updated Last Comments Users

Register and log in to move these advertisements down

Horde Blademaster / Deadeye / Knifefighter

Avatar of JUS_SAURON

JUS_SAURON

Category: Code
Level: Beginner
Created: Saturday July 31, 2010 - 6:02
Updated: Friday August 27, 2010 - 19:27
Views: 6128
Summary: giving hordes Hero Mode weapons

Rating

Staff says

3.5

Members say

4.7

Average

4.2/5.0

5 votes

Page 1 2 3 4 5 6 7 8 9
the Weapon :
the SpecialWeapon in HeroMode is a Modified version of the one in Normal mode
The best way to get the new weapon is to copy the OLD one ,rename it and then add the
special stuff like damage , Knockback effect , even a new Hit FX
This it to ensure reload times are in sync with the anims for the unit

For now I will add only more Damage and a Knockback Effect

As this New Horde is based off the old one it uses a new WeaponSet
This Weaponset is for the UNIT object Only !
It allows for the specialpower to trigger the Secondary Weapon which is the Super Attack

              
Code

//// WEAPON SETS ////
WeaponSet
        Conditions = None
        Weapon                = PRIMARY    GondorSword
        Weapon                = SECONDARY    GondorSwordUpgraded_SUPER
     AutoChooseSources    = SECONDARY NONE
    End

The new weapon : in weapon.ini
the NEW stuff is indicated in the nuggets
you can probably decrease the GONDOR_SOLDIER_SWORD_DELAYBETWEENSHOTS for a faster swing
You can go as complex as you want ..but that's advanced weapons coding

              
Code

;------------------------------------------------------------------------------
Weapon GondorSwordUpgraded_SUPER
LeechRangeWeapon = Yes
AttackRange = STANDARD_MELEE_ATTACK_RANGE
MeleeWeapon = Yes
DelayBetweenShots = GONDOR_SOLDIER_SWORD_DELAYBETWEENSHOTS
PreAttackDelay = GONDOR_SOLDIER_SWORD_PREATTACKDELAY
PreAttackType = PER_SHOT ; Do the delay each time we attack a new target
FireFX = FX_GondorSwordHit
FireFlankFX        = FX_Flanking
FiringDuration = GONDOR_SOLDIER_SWORD_FIRINGDURATION ; Duration of the sword swing

DamageNugget ; A basic Nugget that just does damage
Damage = GONDOR_SOLDIER_SWORD_UPGRADE
DamageScalar = 300% ANY +INFANTRY -HERO ; ; NEW
DamageScalar = 500% ANY +HERO ; ; NEW
Radius = 5.0
DelayTime = 0
DamageType = SLASH
DamageFXType = SWORD_SLASH
DeathType = NORMAL
FlankingBonus = 50%
End

MetaImpactNugget ; NEW A Nugget that throws things back with force
HeroResist            = .75
ShockWaveAmount        = 15.0
ShockWaveRadius        = 5
ShockWaveArc        = 120
ShockWaveTaperOff = 1
End
End


Notice the Nuggets are different from the original

Comments

Display order: Newest first

BouncyKnight - Wednesday April 26, 2017 - 15:50

Thank you sir! This is a really helpful and working way on how to toggle secondary weapon!

Rob38 (Team Chamber Member) - Friday August 27, 2010 - 18:59

Nice solid tutorial.

Lauri (Team Chamber Member) - Saturday July 31, 2010 - 15:25

It's just as in the forums..
without the two * just enter [*code]All code in here[*/code]

And what I meant by explaining is that you didn't really explain what different things did.. Like, why do you have to have this code here, or this here, stuff like that

JUS_SAURON - Saturday July 31, 2010 - 9:11

Sorry , Its my very First Tutorial ..
Not sure how to use the Codebox in this page setup
I will try to explain and redo

Lauri (Team Chamber Member) - Saturday July 31, 2010 - 9:02

You don't explain much, only show the code..
And if possible could you update it to use the

              
Code
code wrappings?

Spartan184 - Saturday July 31, 2010 - 8:28

Very good tutorial.

Go to top

 

"One site to rule them all, one site to find them,
one site to host them all, and on the network bind them."

 
15:40:42