home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 58 / pcpp58b_TRIBES.iso / Tribes / base / scripts.vol / med.cs < prev    next >
Encoding:
Text File  |  1998-12-16  |  2.2 KB  |  77 lines

  1. // check which version should be loaded..
  2. if( $ME::Loaded == "true" )
  3. {
  4.     newObject( editCamera, EditCamera, "editor.sae" );
  5.  
  6.     ME::Create( MainWindow );
  7.  
  8.     // add the types... 
  9.     $ME::SimDefaultObject            = 1 << 0;
  10.     $ME::SimTerrain                    = 1 << 1;
  11.     $ME::SimInteriorObject            = 1 << 2;
  12.     $ME::SimCameraObject            = 1 << 3;
  13.     $ME::SimMissionObject            = 1 << 4;
  14.     $ME::SimShapeObject                = 1 << 5;
  15.     $ME::SimContainerObject            = 1 << 6;
  16.     $ME::SimPlayerObjectType        = 1 << 7;
  17.     $ME::SimProjectileObject        = 1 << 8;
  18.     $ME::SimVehicleObjectType         = 1 << 9;
  19.  
  20.     // fear specific
  21.     $ME::FearItemObjectType            = 1 << 31;
  22.     $ME::FearPlayerObjectType        = 1 << 30;
  23.     $ME::FearTeleportObjectType      = 1 << 29;
  24.     $ME::FearCorpseObjectType        = 1 << 28;
  25.     $ME::StationObjectType           = 1 << 27;
  26.     $ME::FearMineObjectType          = 1 << 26;
  27.     $ME::FearMoveableObjectType      = 1 << 25;
  28.     $ME::FearVehicleObjectType       = 1 << 24;
  29.     $ME::StaticObjectType            = 1 << 23;
  30.     $ME::MoveableBaseObjectType      = 1 << 22;
  31.     $ME::ItemObjectType              = 1 << 21;
  32.     $ME::MarkerObjectType            = 1 << 20;
  33.     $ME::AIObjectType                = 1 << 19;
  34.  
  35.     // all but SimTerrain and SimContainerObject and SimDefaultObject
  36.     ME::SetGrabMask( ~( $ME::SimTerrain | $ME::SimContainerObject | $ME::SimDefaultObject ) );
  37.  
  38.     // place masks
  39.     ME::SetDefaultPlaceMask( $ME::SimTerrain | $ME::SimInteriorObject );
  40.  
  41.     $ME::camera = editCamera;
  42.  
  43.     // modifiers
  44.     $ME::Mod1 = false;        // control
  45.     $ME::Mod2 = false;        // shift
  46.     $ME::Mod3 = false;        // alt
  47.  
  48.     // sensitivity
  49.     $ME::MoveSensitivity     = 0.2;
  50.     $ME::RotateSensitivity     = 0.02;
  51. }
  52. else
  53. {
  54.     $_Me = ME;
  55.     $_MeCanvas = strcat( $_Me, Canvas );
  56.     $_MeCamera = strcat( $_Me, MoveObj );
  57.     
  58.     exec( "move.cs" );
  59.     move();
  60.     
  61.     newMissionObject( editCamera, FlyingCamera, "gui\\edit.gui", "move.sae" );
  62.     MissionEditor( MainWindow );
  63.     $MED::camera = editCamera;
  64.     
  65.     $MED::mouseRotateSens = 50.0;
  66.     $MED::mouseMoveSens = 1.0;
  67.     $MED::useOldMovementMethod = true;
  68.     winMouse();
  69.     
  70.     missionSetAutoSaveInterval(0);
  71.     missionSetAutoSaveName( "AUTO." @ $missionName @ ".mis" );
  72.     
  73.     $_Me = "";
  74.     $_MeCanvas = "";
  75.     $_MeCamera = "";
  76. }
  77.