home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2003 June / macformat-130.iso / mac / Reviewed⁄Demos / Spearhead Demo / demota / pak1.pk3 / anim / standshock.scr < prev    next >
Encoding:
Text File  |  2002-10-21  |  904 b   |  41 lines

  1. //-------
  2. // standshock.scr
  3. //-------
  4.  
  5. Start:
  6.     //println "Entering standshock.scr"
  7.     waitexec "anim/default_inithandler.scr"
  8.  
  9.     // Initialise say manager
  10.     self waitthread anim/SayManager.scr::Init
  11.  
  12. //    println "Geez, you scared the crap out of me!"
  13.     if (self.team == "german")
  14.     {
  15.         self thread anim/SayManager.scr::SayManager ("den_morphonly_panic_" + self.voicetype) 5
  16.     }
  17.     else
  18.     {
  19.         self thread anim/SayManager.scr::SayManager ("dfr_morphonly_panic_" + self.voicetype) 5
  20.     }
  21.  
  22.     self.blendtime = 0.25
  23.  
  24.     //need to take into account current position here... will do it later...
  25.     
  26.     switch (self.weapongroup)
  27.     {
  28.         bazooka:
  29.             self setmotionanim (rifle_stand_alert_legs)
  30.             self setupperanim (bazooka_stand_alert)
  31.             self waittill upperanimdone
  32.             break
  33.  
  34.         default:
  35.             self setmotionanim (self.weapongroup + "_stand_shock")
  36.             self waittill flaggedanimdone
  37.             break
  38.     }
  39.  
  40. end
  41.