home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2006 February / Gamestar_81_2006-02_dvd.iso / Red Shark / Common / GermanTent.script < prev    next >
Encoding:
Text File  |  2001-09-27  |  1.2 KB  |  47 lines

  1. //-------------------------------------------------------------------
  2. //
  3. //  This code is copyright 2001 by G5 Software.
  4. //  Any unauthorized usage, either in part or in whole of this code
  5. //  is strictly prohibited. Violators WILL be prosecuted to the
  6. //  maximum extent allowed by law.
  7. //
  8. //-------------------------------------------------------------------
  9.  
  10. class CGermanTentMesh
  11. {
  12.   string MeshFile = "Models/B_Tent_German.mesh";
  13.   string SkinFile = "Models/B_Tent_German.skin";
  14. }
  15.  
  16. class CGermanTentStateControl extends CUnitLifeControl
  17. {
  18.   void CGermanTentStateControl()
  19.   {
  20.     CUnitLifeControl(500.0);
  21.     m_DestroyPause = 7.5;
  22.     m_ExplosionId  = "EXPLID_ItemExplosion";
  23.   }
  24. }
  25.  
  26. // Building without ground control (for use in villages)
  27. class CBaseGermanTent extends CBuilding, CUnitWithStateControl
  28. {
  29.   void CBaseGermanTent()
  30.   {
  31.     InitializeModelAsStatic("CGermanTentMesh");
  32.     CUnitWithStateControl("CGermanTentStateControl");
  33.     Core_AddClassificator("German");
  34.     Core_AddClassificator("Tent"); // for cockpit identification
  35.   }
  36. }
  37.  
  38. // Single game object
  39. class CMountedGermanTent extends CBaseGermanTent
  40. {
  41.   void CMountedGermanTent()
  42.   {
  43.     InitializeGroundControl();
  44.   }
  45. }
  46.  
  47.