ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Difference between revisions of "CanBeOccupied"

From ModEnc
Jump to: navigation, search
m
m
 
(7 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
}}
 
}}
  
This flag determines whether or not a [[BuildingTypes|building]] can be garrisoned by [[InfantryTypes|infantry]] controlled by the same player. Buildings owned by the neutral [[house]] can be garrisoned by infantry controlled by ''any'' player, but never by multiple players at once.
+
This flag determines whether or not a [[BuildingTypes|building]] can be garrisoned by [[InfantryTypes|infantry]] controlled by the same player. Buildings owned by the neutral [[house]] can be garrisoned by infantry controlled by ''any'' player, but never by multiple players at once.<br>In order for this logic to work as desired, the building will also need {{f|MaxNumberOccupants|link}} set to a positive integer greater than 0.<br>[[BuildingTypes]] with the tag <b>CanBeOccupied=yes</b> will not be able to attack Even if they have weapons.
 
 
In order for this logic to work as desired, the building will also need {{f|MaxNumberOccupants|link}} set to a positive integer greater than 0.
 
  
 
==Red Alert 2==
 
==Red Alert 2==
In non-expanded {{ra2}}, {{f|CanBeOccupied}} was intended to be used for civilian structures only. If a [[BuildingTypes|building]] with {{f|CanBeOccupied|yes}} is constructed by a player, it will revert to being owned by the neutral [[house]]. If that building's {{art}} entry also has a {{f|Buildup|link}} animation, the AI of the neutral house will sell the building immediately upon construction.
+
In non-expanded {{ra2}}, {{f|CanBeOccupied}} was intended to be used for civilian structures only. If a [[BuildingTypes|building]] with {{f|CanBeOccupied|yes}} is constructed by a player, it will revert to being owned by the neutral [[house]]. If that building's {{art}} entry also has a {{f|Buildup|link}} animation, the AI of the neutral house will sell the building immediately upon construction.<br>
 
 
 
*The {{f|Unsellable|yes|Link}} tag cannot stop this behavior.
 
*The {{f|Unsellable|yes|Link}} tag cannot stop this behavior.
 
*The [[FreeUnit]] tag ;No [[VehicleTypes]] will spawn beside it This [[BuildingTypes]]
 
*The [[FreeUnit]] tag ;No [[VehicleTypes]] will spawn beside it This [[BuildingTypes]]
Line 20: Line 17:
 
*The {{f|CloakGenerator|yes|Link}} tag ;masks your visibility( be neutral).
 
*The {{f|CloakGenerator|yes|Link}} tag ;masks your visibility( be neutral).
 
<b>...tags that will give you benefits Will be completely neutral...</b>
 
<b>...tags that will give you benefits Will be completely neutral...</b>
 
([[Yuri's Revenge]]) This kind of behavior also happened to the <b>Soviet Battle Bunker</b>, If <b>Soviet Battle Bunker</b> had {{f|TechLevel|-1|Link}} and AI built it.
 
 
==Yuri's Revenge==
 
==Yuri's Revenge==
[[BuildingTypes]] with the tag <b>CanBeOccupied=yes</b> will not be able to attack Even if they have weapons.
+
<small>"In non-expanded {{ra2}}, {{f|CanBeOccupied}} was intended to be used for civilian structures only. If a [[BuildingTypes|building]] with {{f|CanBeOccupied|yes}} is constructed by a player, it will revert to being owned by the neutral [[house]]. If that building's {{art}} entry also has a {{f|Buildup|link}} animation, the AI of the neutral house will sell the building immediately upon construction."</small><br>
 +
This kind of behavior also happened to the <b>Soviet Battle Bunker</b>, If <b>Soviet Battle Bunker</b> had {{f|TechLevel|-1|Link}} and AI built it.<br>
 +
{{Bugs}}
 +
If used in conjunction with the tag {{f|AttackFriendlies|yes|link}} will produce the same results as the error. [[BuildingTypes]] that are not owned by any party({{f|Owner|none|link}})+ <b>CanBeOccupied=yes</b> but have {{f|TechLevel|more than 1|link}}
 +
The result of this error is [[InfantryTypes]] that enter buildings will become neutral + and buildings with tags <b>CanBeOccupied=yes</b> will be immediately neutral. and attacks [[TechnoTypes]] that are nearby <b>(but not neutral ones)</b>.<br>Because [[BuildingTypes]] is occupied by[[InfantryTypes]] is neutral <b>(white)</b>, so building damage images show incorrect colors.<br>[[File:McBurger Kong that correctly depicts damaged buildings.png]]<br>Picture of normal damage.<br>[[File:McBurger Kong that correctly depicts damaged buildings (2).png]]<br>Picture of normal damage.<br>[[File:McBurger Kong that incorrectly depicts a damaged building.png]]<br>Picture of abnormal damage.
  
 
==See also==
 
==See also==

Latest revision as of 02:19, 17 September 2024

Tiberian Dawn The Covert Operations Red Alert Counterstrike Aftermath Tiberian Sun Firestorm HyperPatch Red Alert 2 Yuri's Revenge Ares Generals Zero Hour Tiberium Wars Kane's Wrath
Flag: CanBeOccupied
File(s): rules(md).ini
Values: Boolean values: yes or no, true or false, 1 or 0
Default: no
Applicable to: BuildingTypes


This flag determines whether or not a building can be garrisoned by infantry controlled by the same player. Buildings owned by the neutral house can be garrisoned by infantry controlled by any player, but never by multiple players at once.
In order for this logic to work as desired, the building will also need MaxNumberOccupants set to a positive integer greater than 0.
BuildingTypes with the tag CanBeOccupied=yes will not be able to attack Even if they have weapons.

Red Alert 2

In non-expanded Red Alert 2, CanBeOccupied was intended to be used for civilian structures only. If a building with CanBeOccupied=yes is constructed by a player, it will revert to being owned by the neutral house. If that building's Art(md).ini entry also has a Buildup animation, the AI of the neutral house will sell the building immediately upon construction.

...tags that will give you benefits Will be completely neutral...

Yuri's Revenge

"In non-expanded Red Alert 2, CanBeOccupied was intended to be used for civilian structures only. If a building with CanBeOccupied=yes is constructed by a player, it will revert to being owned by the neutral house. If that building's Art(md).ini entry also has a Buildup animation, the AI of the neutral house will sell the building immediately upon construction."
This kind of behavior also happened to the Soviet Battle Bunker, If Soviet Battle Bunker had TechLevel=-1 and AI built it.

Cc alert.png Bugs/Side-Effects/Unexpected Limitations

If used in conjunction with the tag AttackFriendlies=yes will produce the same results as the error. BuildingTypes that are not owned by any party(Owner=none)+ CanBeOccupied=yes but have TechLevel=more than 1 The result of this error is InfantryTypes that enter buildings will become neutral + and buildings with tags CanBeOccupied=yes will be immediately neutral. and attacks TechnoTypes that are nearby (but not neutral ones).
Because BuildingTypes is occupied byInfantryTypes is neutral (white), so building damage images show incorrect colors.
McBurger Kong that correctly depicts damaged buildings.png
Picture of normal damage.
McBurger Kong that correctly depicts damaged buildings (2).png
Picture of normal damage.
McBurger Kong that incorrectly depicts a damaged building.png
Picture of abnormal damage.

See also