Advertisement
nevrdid

Speedo

Jan 22nd, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. @persist HoloIndex
  2.  
  3. if(first()){
  4. function void createHolo(ModelHolo:string,HoloEntity:entity,PosHolo:vector,AngHolo:angle,ParentHolo:entity,ScaleHolo:vector,HoloAlpha:number,HoloMaterial:string,HoloColor:vector){
  5.  
  6. holoCreate(HoloIndex)
  7. holoModel(HoloIndex,ModelHolo)
  8. holoPos(HoloIndex,HoloEntity:toWorld(PosHolo))
  9. holoAng(HoloIndex,HoloEntity:toWorld(AngHolo))
  10. holoScaleUnits(HoloIndex,ScaleHolo)
  11. holoParent(HoloIndex,ParentHolo)
  12. holoAlpha(HoloIndex,HoloAlpha)
  13. holoMaterial(HoloIndex,HoloMaterial)
  14. holoColor(HoloIndex,HoloColor)
  15.  
  16. HoloIndex++
  17. }
  18.  
  19. HoloIndex=1
  20. createHolo("models/sprops/misc/alphanum/alphanum_0.mdl",E,vec(7.5,20,20),ang(0,180,30),E,vec(4,1,4),255,"",vec(255))
  21. createHolo("models/sprops/misc/alphanum/alphanum_0.mdl",E,vec(10,20,20),ang(0,180,30),E,vec(4,1,4),255,"",vec(255))
  22. createHolo("models/sprops/misc/alphanum/alphanum_0.mdl",E,vec(12,20,20),ang(0,180,30),E,vec(4,1,4),255,"",vec(255))
  23.  
  24.  
  25.  
  26. }
  27.  
  28.  
  29.  
  30.  
  31. Speed=toString(floor(convertUnit("u/s","km/h",E:vel():length())))
  32.  
  33.  
  34. if(Speed:length()==1){Speed="0"+Speed}
  35. if(Speed:length()==2){Speed="0"+Speed}
  36. holoModel(1,"models/sprops/misc/alphanum/alphanum_"+Speed:index(1)+".mdl")
  37. holoModel(2,"models/sprops/misc/alphanum/alphanum_"+Speed:index(2)+".mdl")
  38. holoModel(3,"models/sprops/misc/alphanum/alphanum_"+Speed:index(3)+".mdl")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement