home *** CD-ROM | disk | FTP | other *** search
- //-------------------------------------------------------------------
- //
- // This code is copyright 2001 by G5 Software.
- // Any unauthorized usage, either in part or in whole of this code
- // is strictly prohibited. Violators WILL be prosecuted to the
- // maximum extent allowed by law.
- //
- //-------------------------------------------------------------------
-
- class CLargeAsianHouseMesh_1
- {
- string MeshFile = "Models/B_Asian_3.mesh";
- string SkinFile = "Models/B_Asian_3.skin";
- }
-
- class CLargeAsianHouseMesh_2
- {
- string MeshFile = "Models/B_Asian_4.mesh";
- string SkinFile = "Models/B_Asian_4.skin";
- }
-
- class CLargeAsianHouseMesh_3
- {
- string MeshFile = "Models/B_Asian_5.mesh";
- string SkinFile = "Models/B_Asian_5.skin";
- }
-
- class CLargeAsianHouseStateControl extends CUnitLifeControl
- {
- void CLargeAsianHouseStateControl()
- {
- CUnitLifeControl(2500.0);
- m_DestroyPause = 20.0;
- m_ExplosionId = "EXPLID_BuildingExplosion";
- }
- }
-
- // Building without ground control (for use in villages)
- class CBaseLargeAsianHouse extends CBuilding, CUnitWithStateControl
- {
- array m_MeshClassNames = array(
- "CLargeAsianHouseMesh_1",
- "CLargeAsianHouseMesh_2",
- "CLargeAsianHouseMesh_3"
- );
-
- void CBaseLargeAsianHouse()
- {
- int MeshNumber = rand_int(m_MeshClassNames.size());
- InitializeModelAsStatic(m_MeshClassNames[MeshNumber]);
- CUnitWithStateControl("CLargeAsianHouseStateControl");
- }
- }
-
- // Single game object
- class CMountedLargeAsianHouse extends CBaseLargeAsianHouse
- {
- void CMountedLargeAsianHouse()
- {
- InitializeGroundControl();
- }
- }
-
-