1.  
  2. // this is called by loadLevelScript()
  3. function activateLevelTick()
  4. {
  5.    echo("+ + activateLevelTick + +");  
  6.      
  7.    // starts all the checks
  8.    schedule(1000,0,"survivalCheck");
  9.    
  10.    // start logging time of day to console
  11.    schedule(1000,0,"logTimeofDay");    
  12.  
  13.    // give player some idea what to do  
  14.    clientCmdCenterPrint("Your buggy broke down and lost a wheel ... try to make it back to the road alive.",  5, 1);    
  15. }
  16.  
  17. // MAIN ---
  18.    echo("+ + running desert.cs + +");
  19.  
  20.    // return to FPS camera
  21.    setFirstPerson();
  22.  
  23.    // place a bunch of edible plants  
  24.    seedResource("cactusData", 22, 512);
  25.               // shapeBase   count  level size  
  26.  
  27.    // set meters
  28.    Heat.SetValue(0.5);
  29.    Hunger.SetValue(0.09);
  30.    Thirst.SetValue(0.09);
  31.    
  32.    $SUNRISE = 0.05;
  33.    $MIDDAY = 0.25;
  34.    $SUNSET = 0.5;  
  35.    
  36.    $HEAT = 0.003; // see if this value works ok
  37.    //$Result = SFXPlay("art/sound/st_ambient/DesertWinds_RRGTS.ogg");
  38.    //echo(" ++ SFXPlay results = " @ $Result @ " ++");
  39. // --- MAIN