Log in

View Full Version : how can i change archer to infantry



e_lizard
07-27-2010, 19:50
Hi guys this is my first post, I hope some help:help::help::help::help::help::help::help:, i played Turks and many were archers and i always lose battles against any army has infantry or cavalry so i tried to change some files

battle_model.modeldb

16 ottoman_infantry
1 3
70 unit_models/_Units/ME_Light_Mail_Heavy_Mail/ottoman_infantry_lod0.mesh 121
70 unit_models/_Units/ME_Light_Mail_Heavy_Mail/ottoman_infantry_lod1.mesh 1225
70 unit_models/_Units/ME_Light_Mail_Heavy_Mail/ottoman_infantry_lod2.mesh 6400
1
5 turks
85 unit_models/_Units/ME_Light_Mail_Heavy_Mail/textures/mtw2_ME_light_mail_turks.texture
86 unit_models/_Units/ME_Light_Mail_Heavy_Mail/textures/mtw2_ME_light_mail_normal.texture
46 unit_sprites/turks_Ottoman_Infantry_sprite.spr
1
5 turks
60 unit_models/AttachmentSets/Final ME Heavy_turks_diff.texture
60 unit_models/AttachmentSets/Final ME Heavy_turks_norm.texture 0
1
4 None
14 MTW2_Swordsman
14 fs_test_shield 2
18 MTW2_Sword_Primary
14 fs_test_shield
16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002

result the units stop fighting at all

I reduced amount of ammo---------->so act as infantry
export_descr_unit

type Ottoman Infantry
dictionary Ottoman_Infantry ; Ottoman Infantry
category infantry
class heavy
voice_type Heavy
banner faction main_infantry
banner holy crusade
soldier Ottoman_Infantry, 48, 0, 1
attributes sea_faring, hide_forest, can_withdraw
formation 1.2, 1.2, 2.4, 2.4, 3, square
stat_health 1, 0
stat_pri 9, 2, arrow, 160, 0, missile, missile_mechanical, piercing, none, 25, 1
;stat_pri_ex 0, 0, 0
stat_pri_attr no
stat_sec 11, 2, no, 0, 0, melee, melee_blade, piercing, sword, 25, 1
;stat_sec_ex 0, 0, 0
stat_sec_attr no
stat_pri_armour 5, 6, 6, metal
;stat_armour_ex 5, 7, 0, 0, 6, 6, 6, metal
stat_sec_armour 0, 0, flesh
stat_heat 1
stat_ground 1, 1, 0, -1
stat_mental 5, normal, trained
stat_charge_dist 30
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 670, 150, 75, 55, 670, 4, 160
armour_ug_levels 2, 3
armour_ug_models Ottoman_Infantry, Ottoman_Infantry_ug1
ownership turks
era 1 turks
era 2 turks
;unit_info 11, 9, 17

result games crashed

so i made red zero --------->2
AND GAME WORKED \
BUT still were useless especially during siege when they must fire to finish ammo and act as infantry but the get killed or route:oops:

SO what in name of ALLAH I could do..................help pleeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeez :help::help::help::help::help::help::help::help::help::help::help::help::help::help::help::help::hel p::help::help::help::help::help::help::help::help::help::help::help::help::help::help::help::help::h elp::help::help::help::help::help:

Cute Wolf
07-30-2010, 18:58
don't even try to mess up with codings.. alll you need is press alt + click, and voila, they will enggage in melee without looking for their bows

Trve Leveller
11-25-2010, 10:22
or change

stat_pri_attr no

to

stat_pri_attr prec

They will fire one shot before engaging in melee, like rtw legionaries.


But dont change the battles_model data! Modding this requires some experience and you would have to make a new model with milkshape if you want to remove their bows...
And give them at least some arrows.