Advertisement
Guest User

Untitled

a guest
Jun 25th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. #-- Feet Timers --#
  2. #-- Timer Increments --#
  3. FLST = min(FLST+STI,1)
  4. FRST = min(FRST+STI,1)
  5. RLST = min(RLST+STI,1)
  6. RRST = min(RRST+STI,1)
  7.  
  8. #-- FeetTimer --#
  9. SD = clamp(SD,600,1000)
  10. LD = clamp(LD,800,5000)
  11. if(Shift){
  12. SD -= 25
  13. LD += 50
  14. } else {
  15. SD += 12.5
  16. LD -= 25
  17. }
  18.  
  19. #-- Timers for feet --#
  20. if(clk("FL")){
  21.  
  22. FLST = 0
  23.  
  24. if(Shift){
  25. timer("FR",StepInterval/(1+E:vel():length()/(SD-E:angVelVector():length())))
  26. } else {
  27. timer("RR",StepInterval/(1+E:vel():length()/(SD-E:angVelVector():length())))
  28. }
  29. }
  30. if(clk("FR")){
  31.  
  32. FRST = 0
  33.  
  34. if(Shift){
  35. timer("RL",StepInterval/(1+E:vel():length()/(LD-E:angVelVector():length())))
  36. } else {
  37. timer("RL",StepInterval/(1+E:vel():length()/(LD-E:angVelVector():length())))
  38. }
  39. }
  40. if(clk("RL")){
  41.  
  42. RLST = 0
  43.  
  44. if(Shift){
  45. timer("RR",StepInterval/(1+E:vel():length()/(SD-E:angVelVector():length())))
  46. } else {
  47. timer("FL",StepInterval/(1+E:vel():length()/(SD-E:angVelVector():length())))
  48. }
  49. }
  50. if(clk("RR")){
  51.  
  52. RRST = 0
  53.  
  54. if(Shift){
  55. timer("FL",StepInterval/(1+E:vel():length()/(LD-E:angVelVector():length())))
  56. } else {
  57. timer("FR",StepInterval/(1+E:vel():length()/(LD-E:angVelVector():length())))
  58. }
  59. }
  60.  
  61. ik(50,50,holoEntity(1):pos(),holoEntity(4):pos(),1,2)
  62. ik(50,50,holoEntity(5):pos(),holoEntity(8):pos(),5,6)
  63. digi_ik(23, 13, 14, 15, 16, 30, 40, 30, E, holoEntity(17):pos())
  64. digi_ik(24, 18, 19, 20, 21, 30, 40, 30, E, holoEntity(22):pos())
  65. #-- Bezier HoloPos --#
  66. if(FLST != 1){
  67. holoPos(4,bezier(FLSP,(FLSP + FLR:pos())/2 + vec(0,0,clamp((FLR:pos()-FLSP):length()/2,0,90/2)),FLR:pos(),FLST))
  68. }
  69. if(FRST != 1){
  70. holoPos(8,bezier(FRSP,(FRSP + FRR:pos())/2 + vec(0,0,clamp((FRR:pos()-FRSP):length()/2,0,90/2)),FRR:pos(),FRST))
  71. }
  72. if(RLST != 1){
  73. holoPos(17,bezier(RLSP,(RLSP + RLR:pos())/2 + vec(0,0,clamp((RLR:pos()-RLSP):length()/2,0,90/2)),RLR:pos(),RLST))
  74. }
  75. if(RRST != 1){
  76. holoPos(22,bezier(RRSP,(RRSP + RRR:pos())/2 + vec(0,0,clamp((RRR:pos()-RRSP):length()/2,0,90/2)),RRR:pos(),RRST))
  77. }
  78.  
  79. if(FLST == 1){
  80. FLSP = holoEntity(4):pos()
  81. }
  82. if(FRST == 1){
  83. FRSP = holoEntity(8):pos()
  84. }
  85. if(RLST == 1){
  86. RLSP = holoEntity(17):pos()
  87. }
  88. if(RRST == 1){
  89. RRSP = holoEntity(22):pos()
  90. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement