PDA

View Full Version : How to add officers/standard bearers etc. to mounted units



Epistolary Richard
04-11-2005, 12:01
Modding Resource Header

Title: How To - add officers/standard bearers etc. to mounted units

Posted by: Epistolary Richard

Modding area: Units
Required programmes: Notepad (or other text editor)
Summary: Adding officers such as standard bearers and captains to a mounted unit requires a little more than adding them to foot troops. A quick one-off edit in descr_model_battle.txt is all that is needed.
__________________________________________________

How To - add officers/standard bearers etc. to mounted units

Note: Everything here was discovered by other members of the modding community. I'm just posting it here for easy reference.

In this 'how to' we're going to add a centurion and standard bearer to the Legionary Cavalry unit.

Step One: add the officer entries to the unit in export_descr_unit.txt



type roman heavy cavalry
dictionary roman_heavy_cavalry ; Legionary Cavalry
category cavalry
class heavy
voice_type Heavy_1
soldier roman_heavy_cavalry, 27, 0, 1
officer roman_centurion ;;;;;;;;; insert these two lines here
officer roman_standard
mount heavy horse
mount_effect elephant -8, camel -4
attributes sea_faring, hide_forest, hardy
formation 1.5, 4, 3, 6, 4, square, wedge
stat_health 1, 0
stat_pri 9, 9, no, 0, 0, melee, simple, piercing, spear, 25 ,1
stat_pri_attr no
stat_sec 9, 4, no, 0, 0, melee, simple, piercing, sword, 25 ,1
stat_sec_attr no
stat_pri_armour 12, 6, 4, metal
stat_sec_armour 0, 1, flesh
stat_heat 4
stat_ground 0, 0, -6, 0
stat_mental 10, disciplined, highly_trained
stat_charge_dist 40
stat_fire_delay 0
stat_food 60, 300
stat_cost 2, 790, 190, 80, 120, 790
ownership romans julii,romans brutii,romans scipii,romans senate

Step Two: add the mounted skeletons to the centurion and standard bearer models in descr_model_battle.txt NB all of these must be added even though we'll just be putting them on horses



type roman_standard
skeleton fs_standard_bearer
skeleton_horse fs_hc_swordsman ;;;;;;;;; insert these four lines here
skeleton_elephant fs_forest_elephant_rider
skeleton_chariot fs_chariot_sword
skeleton_camel fs_hc_swordsman
indiv_range 40
texture romans_julii, data/models_unit/textures/unit_roman_standard_julii.tga
texture romans_brutii, data/models_unit/textures/unit_roman_standard_brutii.tga
texture romans_scipii, data/models_unit/textures/unit_roman_standard_scipii.tga
texture romans_senate, data/models_unit/textures/unit_roman_standard_senate.tga
model_flexi_m data/models_unit/officer_roman_standard_400.cas, 8
model_flexi_m data/models_unit/officer_roman_standard_300.cas, 15
model_flexi_m data/models_unit/officer_roman_standard_200.cas, 30
model_flexi_m data/models_unit/officer_roman_standard_100.cas, 40
model_flexi data/models_unit/officer_roman_standard_70.cas, max
model_sprite romans_senate, 60.0, data/sprites/romans_senate_roman_praetorian_cohort_ii_sprite.spr
model_sprite romans_scipii, 60.0, data/sprites/romans_scipii_roman_praetorian_cohort_ii_sprite.spr
model_sprite romans_brutii, 60.0, data/sprites/romans_brutii_roman_praetorian_cohort_ii_sprite.spr
model_sprite romans_julii, 60.0, data/sprites/romans_julii_roman_praetorian_cohort_ii_sprite.spr
model_tri 400, 0.5f, 0.5f, 0.5

type roman_centurion
skeleton fs_dagger
skeleton_horse fs_hc_swordsman ;;;;;;;;; insert these four lines here
skeleton_elephant fs_forest_elephant_rider
skeleton_chariot fs_chariot_sword
skeleton_camel fs_hc_swordsman
indiv_range 40
texture romans_julii, data/models_unit/textures/officer_roman_centurion_julii.tga
texture romans_brutii, data/models_unit/textures/officer_roman_centurion_brutii.tga
texture romans_scipii, data/models_unit/textures/officer_roman_centurion_scipii.tga
texture romans_senate, data/models_unit/textures/officer_roman_centurion_senate.tga
model_flexi_m data/models_unit/officer_roman_centurion_high.cas, 15
model_flexi_m data/models_unit/officer_roman_centurion_med.cas, 30
model_flexi_m data/models_unit/officer_roman_centurion_low.cas, 40
model_flexi data/models_unit/officer_roman_centurion_lowest.cas, max
model_sprite romans_senate, 60.0, data/sprites/romans_senate_roman_praetorian_cohort_ii_sprite.spr
model_sprite romans_scipii, 60.0, data/sprites/romans_scipii_roman_praetorian_cohort_ii_sprite.spr
model_sprite romans_brutii, 60.0, data/sprites/romans_brutii_roman_praetorian_cohort_ii_sprite.spr
model_sprite romans_julii, 60.0, data/sprites/romans_julii_roman_praetorian_cohort_ii_sprite.spr
model_tri 400, 0.5f, 0.5f, 0.5


Finished
-----------------------------------------------

Limitations
It has been reported that this method does not work for the Early Standard Bearer, Greek Officer or Egyptian Officers and that they appear as 'centaurs' (ie, an infantryman standing through the horse).

You'll also notice that the standard bearer holds the standard like a spear instead of vertically upwards - currently it is believed that this can only be changed by altering the animation itself.

Marcus Furius Camillus
11-17-2007, 13:13
Really good tutorial, but I can't find the maps were all mod-tutorials are referring to, like export_descr_unit and export_descr_unit

Charge
11-17-2007, 13:37
Really good tutorial, but I can't find the maps were all mod-tutorials are referring to, like export_descr_unit and export_descr_unit
Data/export_descr_unit.txt?

crazyroman
06-27-2015, 15:37
Hey all.Nice tutorial Richard but the method works and with greek officer and early standard bearer.I dont know about the Egyptian officer because his entry in dmb is messed up.