Commit f588e002 authored by Jean Miraak's avatar Jean Miraak 💬

Angmar Hillman Inn unit rework

parent 967dff9f
......@@ -17393,7 +17393,7 @@ CommandButton Command_ConstructInnAngmarHillmen ;,; Command_ConstructInnAngmarHi
Object = AngmarWildmanHordeInn ;,; AngmarThrallMasterInn
Options = CANCELABLE
TextLabel = CONTROLBAR:ConstructAngmarWildmanHorde
ButtonImage = BCInn_WildmenofDunland
ButtonImage = HISummonHillmenIcon ;,; BCInn_WildmenofDunland
ButtonBorderType = BUILD
DescriptLabel = CONTROLBAR:ToolTipBuildAngmarWildmanHorde
Radial = Yes
......
......@@ -317,9 +317,9 @@ CommandSet AngmarWildmanHordeCommandSet
1 = Command_ToggleStance
2 = Command_SpecialAbilityWildmanPillage
3 = Command_PurchaseUpgradeIsengardTorches
4 = Command_PurchaseUpgradeAngmarDarkIronArmorTier1 ;,;Command_PurchaseUpgradeAngmarDarkIronArmor
;,;4 = Command_PurchaseUpgradeAngmarDarkIronArmorTier1 ;,;Command_PurchaseUpgradeAngmarDarkIronArmor
;,; 5 = Command_PurchaseUpgradeAngmarBasicTraining
5 = Command_PurchaseUpgradeAngmarBasicTraining ;,; Added in v5.1
;,;5 = Command_PurchaseUpgradeAngmarBasicTraining ;,; Added in v5.1
12 = Command_CaptureBuilding
13 = Command_AttackMove
14 = Command_Stop
......
......@@ -980,6 +980,7 @@ End
;------------------------------------------------------------------------------ ;,; New unique horde for Angmar's inn units to allow proper banner carrier type in 2.02
ChildObject AngmarWildmanHordeInn IsengardWildmanHorde
ButtonImage = HISummonHillmenIcon ;,;
BuildCost = INN_UNIT_BUILDCOST_ANGMAR ;,; ISENGARD_WILDMAN_BUILDCOST ;;.;; INN_UNIT_BUILDCOST_ANGMAR
BuildTime = INN_UNIT_BUILDTIME_ANGMAR ;,; ISENGARD_WILDMAN_BUILDTIME ;;.;; INN_UNIT_BUILDTIME_ANGMAR
CommandSet = AngmarWildmanHordeCommandSet
......@@ -999,11 +1000,11 @@ ChildObject AngmarWildmanHordeInn IsengardWildmanHorde
End
// Banner Carrier info
BannerCarriersAllowed = AngmarInfantryBanner ;,; AngmarThrallMasterHillmenBanner // types of units that are allowed as banner carriers
BannerCarrierPosition = UnitType:AngmarWildman Pos:X:50.0 Y:0.0 ;,; Pos:X:-35.0 Y:0.0 // (DEFAULT) position of banner carrier
;,; BannerCarrierMinLevel = 0
;,; BannerCarrierDestroyHordeOnDeath = Yes
;,; BannerCarrierHordeDeathType = +NORMAL ;NORMAL, NONE, CRUSHED, BURNED, EXPLODED, POISONED, TOPPLED, FLOODED, SUICIDED, LASERED, DETONATED, SPLATTED, POISONED_BETA, EXTRA_2, EXTRA_3, EXTRA_4, EXTRA_5, EXTRA_6, EXTRA_7, EXTRA_8, KNOCKBACK, SUPERNATURAL, FADED, SLAUGHTERED
BannerCarriersAllowed = AngmarThrallMasterHillmenBanner ;,; AngmarInfantryBanner ;,; AngmarThrallMasterHillmenBanner // types of units that are allowed as banner carriers
BannerCarrierPosition = UnitType:AngmarWildman Pos:X:-35.0 Y:0.0 ;,; Pos:X:50.0 Y:0.0 ;,; Pos:X:-35.0 Y:0.0 // (DEFAULT) position of banner carrier
BannerCarrierMinLevel = 0
BannerCarrierDestroyHordeOnDeath = Yes
BannerCarrierHordeDeathType = +NORMAL ;NORMAL, NONE, CRUSHED, BURNED, EXPLODED, POISONED, TOPPLED, FLOODED, SUICIDED, LASERED, DETONATED, SPLATTED, POISONED_BETA, EXTRA_2, EXTRA_3, EXTRA_4, EXTRA_5, EXTRA_6, EXTRA_7, EXTRA_8, KNOCKBACK, SUPERNATURAL, FADED, SLAUGHTERED
;,; RankInfo = RankNumber:1 UnitType:AngmarWildman Position:X:27 Y:-9 Position:X:30 Y:8 Position:X:28 Y:-31 Position:X:30 Y:28
;,; RankInfo = RankNumber:2 UnitType:AngmarWildman Position:X:9 Y:-8 Position:X:8 Y:9 Position:X:10 Y:-32 Position:X:11 Y:29
......
......@@ -286,6 +286,11 @@
<!-- This contains events specific to the Isengard Wildmen-->
<EventHandler EventName="OnCreated" ScriptFunctionName="OnIsengardWildmanCreated" DebugSingleStep="false"/>
</EventList>
<EventList Name="AngmarHillmanFunctions" Inherit="CavalryFunctions"> <!-- ;,; -->
<!-- This contains events specific to the Angmar Hillmen-->
<EventHandler EventName="OnCreated" ScriptFunctionName="OnAngmarHillmanCreated" DebugSingleStep="false"/>
</EventList>
<EventList Name="GondorCavalryFunctions" Inherit="CavalryFunctions">
<EventHandler EventName="OnCreated" ScriptFunctionName="OnGondorCavalryCreated" DebugSingleStep="false"/>
......
......@@ -510,6 +510,23 @@ function OnIsengardWildmanCreated(self)
ObjectHideSubObjectPermanently( self, "FireArowTip", true )
end
function OnAngmarHillmanCreated(self) --;,;
ObjectHideSubObjectPermanently( self, "FireArowTip", true )
ObjectHideSubObjectPermanently( self, "WEAPON01", true )
ObjectHideSubObjectPermanently( self, "WEAPON02", true )
ObjectHideSubObjectPermanently( self, "WEAPON03", true )
local WEAPON = GetRandomNumber()
if WEAPON <= 0.33 then
ObjectHideSubObjectPermanently( self, "WEAPON01", false )
elseif WEAPON <= 0.66 then
ObjectHideSubObjectPermanently( self, "WEAPON02", false )
else
ObjectHideSubObjectPermanently( self, "WEAPON03", false )
end
end
function OnWildSpiderRiderCreated(self)
ObjectHideSubObjectPermanently( self, "Forged_Blade", true )
ObjectHideSubObjectPermanently( self, "FIREAROWTIP", true )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment