The 3rd Age

BFME+

BFME+

A mod that intends to bring back the fun to BFME1

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

Easy way to toggle model and mix hordes

Tutorial for Battle for Middle-earth BFME, Battle for Middle-earth II BFME 2, Battle for Middle-earth II: Rise of the Witch-king ROTWK

Avatar of kazenokoeki

kazenokoeki

Category: Code
Level: Intermediate
Created: Tuesday March 13, 2012 - 5:43
Updated: Monday March 7, 2022 - 16:39
Views: 6492
Summary: a way to make weapon toggle and other toggles easily

Rating

Staff says

3.0

Members say

-

Average

3.0/5.0

2 votes

Page 1 2
As the title say, this is a very easy way to toggle units model,it dosen't have to share a skeleton or anything, and its made through the model condition.

First of all, take the main unit, lets say gondor fighter, and the unit you want it to be, for example mordor easterling. Well you have to copy the section called "Draw" and change the module tag:

              
Code

Draw = W3DHordeModelDraw ModuleTag_Togglemodel;01
    OkToChangeModelColor = Yes
    StaticModelLODMode = Yes
    ;(....)
    DefaultModelConditionState
    Model = MUEstrlg_SKN
    ;(....)
End


the unit draw, this is were the model is, now, you don't want to gondor fighter look creppy with a easterling just in the same place, so, give it no model, and add another model condition state, called "WEAPONSET_TOGGLE_1":

              
Code

Draw = W3DHordeModelDraw ModuleTag_Togglemodel;01
    OkToChangeModelColor = Yes
    StaticModelLODMode = Yes
    ;(....)
    DefaultModelConditionState
        Model = None;MUEstrlg_SKN (now it won't be see)
    End
    ModelConditionState WEAPONSET_TOGGLE_1
        Model = MUEstrlg_SKN
    End
    ;(....)


By this the easterling model wont be see if the unit is in default model condition, and will be shown when you make it toggle weapon, but again, you dont want doble model, so go to gondor fighter draw and add somthing like...:

              
Code

Draw = W3DHordeModelDraw ModuleTag_01
    OkToChangeModelColor = Yes    
    StaticModelLODMode = Yes
    ;(....)
    DefaultModelConditionState
        Model = GUMAArms_SKN
        Skeleton = GUMAArms_SKL
    End

;---------- THIS ***
    ModelConditionState WEAPONSET_TOGGLE_1
        Model = None
    End
;----------
    ;(....)


Now, you can add the horde command set a button like "Command_ToggleFaramirWeapon" or anithing and will change your units. Now, do you wander why i use WEAPONSET_TOGGLE_1?
see the next page

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

 
6:34:19