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

Who crushes whom

From ModEnc
Revision as of 18:38, 7 March 2009 by Nighthawk200 (talk | contribs) (Update.)
Jump to navigation Jump to search

This page details how the crushing system works. The table shows whether a defender can be crushed by an attacker, depending on how the flags Template:TTL, Template:TTL, Template:TTL and Template:TTL are set, and for reference, also shows the effect of Template:TTL.

Can Defender be crushed by Attacker?
Defender
Template:TTL Template:TTL
yes no yes no
  A  
t
t
a
c
k
e
r
Template:TTL yes
no
Template:TTL yes
no
Template:TTL yes
OmniCrusher and OmniCrushResistant are only available in Yuri's Revenge.
Please see below for certain side effects of Template:TTL.

Empty cells signal that one property does not influence the other, specifically:

  • Crusher=yes checks for Crushable - it doesn't care whether the target can be crushed by OmniCrushers.
  • Just because a target is not an OmniCrusher, doesn't mean it can't crush a Crushable=yes - that's determined by Crusher.


The flags in detail:

  • Template:TTL determines if this VehicleType can crush objects.
  • Template:TTL determines if this object can be crushed by Crushers.
Only if the Attacker is Crusher=yes and the Defender is Crushable=yes, the crushing can happen.
  • Template:TTL, if enabled, allows the VehicleType to crush objects who are set Crushable=no.
  • Template:TTL, if enabled, prevents all crushing.
  • Template:TTL, if enabled, basically nullifies all of the above, and has some additional effects, as detailed below.

IsTrain

  • A unit with Template:TTL will be able to crush anything regardless of Template:TTL, Template:TTL or even Template:TTL.
  • A unit with Template:TTL will also be able to "crush" any buildings that happen to occupy the same cell as the unit. This results in such a vehicle with this flag being unable to exit the War Factory that produced it, as it will destroy the building and itself upon creation.
  • Template:TTL has no real effect when applied to InfantryTypes or AircraftTypes.
  • However, a unit with Template:TTL produces some interesting behavious when it comes into contact with walls:
    • When travelling through a single wall cell, the unit will pass through as if the wall was not there, and no damage will be done to the wall.
    • But, if it encounters another wall cell immediately after, the unit will become 'stuck' on that wall cell. The wall cannot be sold, and the unit will be unable to move. Basically, don't combine train units with walls.
    • A similar effect can happen with terrain objects such as trees and rocks. The Template:TTL unit will be able to move through these, however if it stops on them, or attempts to move through a several-cells-thick group of them, it will become stuck on said terrain object.