AdrianeMapMaker
8 years ago
How to add a unit with a 2d texture underneath of him?

Like In the china's infantry - triggered by nationalism?
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb 

UserPostedImage




Sponsor
acidbrain
8 years ago

; --- Object code ---
HordeUpdate
;module is hardcoded to apply the following textures to objects that are affected by this module: EXHorde, EXHorde_UP, EXHordeB, EXHordeB_UP
  UpdateRate = integer, milliseconds
  RubOffRadius = integer
  AlliesOnly = Yes/No
  ExactMatch = Yes/No
  Action = WeaponBonus name
  FlagSubObjectNames = sub object name
  Radius = integer
  KindOf = KindOfs
  Count = integer
  AllowedNationalism = Yes/No
End

; ----------------------------
; --- GameData.ini ---
;HORDE and NATIONALISM are cumulative bonuses for the China Redguard,
  ;and only apply when they are in a horde. NATIONALISM does not replace HORDE!

  ;ENTHUSIASTIC and SUBLIMINAL are cumulative bonuses for the China Redguard,
  ;and only apply when they are in a horde. SUBLIMINAL does not replace ENTHUSIASTIC!

  WeaponBonus =       HORDE  RATE_OF_FIRE  150%  ;Horded troops fire their weapons 25% faster
  WeaponBonus = NATIONALISM  RATE_OF_FIRE  125%  ;Horded troops with nationalism fire their weapon an additional 25% faster
  WeaponBonus = ENTHUSIASTIC RATE_OF_FIRE  125%  ;In range of a speaker tower, gaining enthusiasm
  WeaponBonus = SUBLIMINAL   RATE_OF_FIRE  125%  ;In range of an upgraded speaker tower, gaining even more enthusiasm

Take a close look at this line:

module is hardcoded to apply the following textures to objects that are affected by this module: EXHorde, EXHorde_UP, EXHordeB, EXHordeB_UP

So if you want a texture underneath an infantry model use the HordeUpdate module...

Upgrade Nationalism: +25% to Horde bonus for Red Guard, Tank Hunter and Battlemaster

Cheers
Panem et kirkinses