The 3rd Age

Cobra Mod

Cobra Mod

A mod for BFME2 that removes some restrictions to recreate huge epic battles from the films.

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

Making trolls run always

Avatar of Bart

Bart

Category: Code
Level: Beginner
Created: Thursday August 2, 2007 - 2:10
Updated: Saturday June 27, 2009 - 18:22
Views: 8589
Summary: Make trolls run always, not only when attacking

Rating

Staff says

3.0

Members say

4.0

Average

3.8/5.0

5 votes

When I just started playing and modding BFME, I was seriously annoyed by the fact that trolls only run if you order them to attack, and walk slowly otherwise. Numerous trolls have been killed by retreating slowly, and I decided to do something about it.

I put this online a long time ago, but that site is lost now so I'm putting it as an article here. It's written for BFME 1 but should work in BFME 2 too.

Make the troll move faster
Open the troll's ini file (in BFME 1 this is 'evilfactionunits.ini'), and find the troll's LocomotorSet
              
Code
LocomotorSet
Locomotor = TrollLocomotor
Condition = SET_NORMAL
Speed = 33
End

Change the speed to 66 (or whatever number you'd like)

Remove the charge behaviour
We have to remove the bits that make the troll run faster when attacking, or he would get a speed of 132 (!) when attacking. Open 'locomotor.ini' and find the troll's locomotor:
              
Code
Locomotor TrollLocomotor
Surfaces = GROUND RUBBLE
TurnTime = 1000 ;4000
TurnTimeDamaged = 1000 ;4000
TurnThreshold = 3        ; small because monsters look awful rotating on the spot without playing an anim.
TurnThresholdHS = 120
EnableHighSpeedTurnModelconditions = No ; We only want turning model conditions for slow turns.

Acceleration = 100 ; 0.1 second to accelerate to full speed.

Braking = 100 ; 0.1 second to brake from full speed.
MinTurnSpeed = 0%
FastTurnRadius         = 0 ; Can turn in a 10 foot radius circle when moving.
SlowTurnRadius         = 0 ; Turns in place from a standing start.
ChargeAvailable = Yes ; Locomotor has defined charging attack values to use
ChargeSpeed = 200%
FormationPriority         = MELEE1 ;CAVALRY3

ZAxisBehavior = NO_Z_MOTIVE_FORCE
Appearance = HUGE_TWO_LEGS
StickToGround = Yes ; walking guys aren't allowed to catch huge (or even small) air.
End

Change 'ChargeAvailable' to 'No'

Editing animations
Now all that's left is to fix the troll's animations. Go back to it's ini and go the drawing settings at the top. Here you will see a lot animation state blocks:
              
Code
AnimationState = BLABLABLA
; stuff here
End

First, find the state 'MOVING WEAPONSTATE_ONE ATTACKING', copy it's contents and paste it inside the states 'MOVING WEAPONSTATE_ONE DAMAGED' and 'MOVING WEAPONSTATE_ONE'. Now delete the state 'MOVING WEAPONSTATE_ONE ATTACKING'.
Do the same for weapon state 2 and the ones without a weapon state.

There, now you have a lovely running troll. Don't get him too tired though.

Comments

Display order: Newest first

Tartarsauce - Wednesday August 19, 2020 - 20:50

Hi I know I am very late, and chances are no one will see this and reply. But I cant seem to make it work, ive followed the steps, but I get confused on the part where it says "do the same for weapon state 2 and the ones without a weapon state" Ive tried many different ways, and no matter what my troll is just walking at 66 speed, not running.

Spartan184 - Friday July 3, 2009 - 20:05

aralegim - Thursday January 3, 2008 - 8:59

what do you mean withe the ones without a weapon state

Bart (Administrator) - Tuesday August 7, 2007 - 2:07

erm...yes..that's exactly what the tutorial describes... :-/

Guess Who - Saturday August 4, 2007 - 5:28

this is not that hard to do just remove the run thing when they are attacking and raise the speed.

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."

 
3:26:27