Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. @name Cortana
  2. @inputs Active Base:entity
  3. @model models/lemongate/gibsmodel_fanmesh001.mdl
  4. @trigger Active
  5.  
  6. if (changed(Active)){
  7.  
  8. C = vec(255,255,255)
  9. M = "models/props_combine/combine_interface_disp"
  10.  
  11. holoCreate(1)
  12. holoModel(1, "models/player/group01/female_01.mdl")
  13. holoPos(1, Base:toWorld(vec(0,-0.35,1.5)))
  14. holoAng(1, Base:toWorld(ang()))
  15. holoMaterial(1,M)
  16. holoColor(1,C)
  17. holoScale(1,vec(0.35))
  18. holoAnim(1,2)
  19. holoParent(1, Base)
  20. holoAlpha(1, 255 * Active)
  21.  
  22. if(Active){
  23.  
  24. local Greeting = array("vo/eli_lab/al_allright01.wav" , "vo/episode_1/c17/al_backsosoon.wav" , "vo/episode_1/c17/al_tooksolong.wav", "vo/episode_1/c17/al_thereyouare.wav")
  25. local Shit = floor(random(1, Greeting:count()))
  26.  
  27. Base:soundPlay(1, soundDuration(Greeting[Shit,string]), Greeting[Shit,string])
  28. Base:soundPlay(2, soundDuration("acf_extra/cannons/scifi/cannon.wav"), "acf_extra/cannons/scifi/cannon.wav")
  29.  
  30. }elseif (!Active){
  31.  
  32. Base:soundPlay(3,soundDuration("vo/episode_1/c17/al_hospital_letsgo.wav"), "vo/episode_1/c17/al_hospital_letsgo.wav")
  33. Base:soundPlay(4,soundDuration("acf_extra/cannons/scifi/elitedangerousrailgun.wav"), "acf_extra/cannons/scifi/elitedangerousrailgun.wav")
  34.  
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement