Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #-- Feet Timers --#
- #-- Timer Increments --#
- FLST = min(FLST+STI,1)
- FRST = min(FRST+STI,1)
- RLST = min(RLST+STI,1)
- RRST = min(RRST+STI,1)
- #-- FeetTimer --#
- SD = clamp(SD,600,1000)
- LD = clamp(LD,800,5000)
- if(Shift){
- SD -= 25
- LD += 50
- } else {
- SD += 12.5
- LD -= 25
- }
- #-- Timers for feet --#
- if(clk("FL")){
- FLST = 0
- if(Shift){
- timer("FR",StepInterval/(1+E:vel():length()/(SD-E:angVelVector():length())))
- } else {
- timer("RR",StepInterval/(1+E:vel():length()/(SD-E:angVelVector():length())))
- }
- }
- if(clk("FR")){
- FRST = 0
- if(Shift){
- timer("RL",StepInterval/(1+E:vel():length()/(LD-E:angVelVector():length())))
- } else {
- timer("RL",StepInterval/(1+E:vel():length()/(LD-E:angVelVector():length())))
- }
- }
- if(clk("RL")){
- RLST = 0
- if(Shift){
- timer("RR",StepInterval/(1+E:vel():length()/(SD-E:angVelVector():length())))
- } else {
- timer("FL",StepInterval/(1+E:vel():length()/(SD-E:angVelVector():length())))
- }
- }
- if(clk("RR")){
- RRST = 0
- if(Shift){
- timer("FL",StepInterval/(1+E:vel():length()/(LD-E:angVelVector():length())))
- } else {
- timer("FR",StepInterval/(1+E:vel():length()/(LD-E:angVelVector():length())))
- }
- }
- ik(50,50,holoEntity(1):pos(),holoEntity(4):pos(),1,2)
- ik(50,50,holoEntity(5):pos(),holoEntity(8):pos(),5,6)
- digi_ik(23, 13, 14, 15, 16, 30, 40, 30, E, holoEntity(17):pos())
- digi_ik(24, 18, 19, 20, 21, 30, 40, 30, E, holoEntity(22):pos())
- #-- Bezier HoloPos --#
- if(FLST != 1){
- holoPos(4,bezier(FLSP,(FLSP + FLR:pos())/2 + vec(0,0,clamp((FLR:pos()-FLSP):length()/2,0,90/2)),FLR:pos(),FLST))
- }
- if(FRST != 1){
- holoPos(8,bezier(FRSP,(FRSP + FRR:pos())/2 + vec(0,0,clamp((FRR:pos()-FRSP):length()/2,0,90/2)),FRR:pos(),FRST))
- }
- if(RLST != 1){
- holoPos(17,bezier(RLSP,(RLSP + RLR:pos())/2 + vec(0,0,clamp((RLR:pos()-RLSP):length()/2,0,90/2)),RLR:pos(),RLST))
- }
- if(RRST != 1){
- holoPos(22,bezier(RRSP,(RRSP + RRR:pos())/2 + vec(0,0,clamp((RRR:pos()-RRSP):length()/2,0,90/2)),RRR:pos(),RRST))
- }
- if(FLST == 1){
- FLSP = holoEntity(4):pos()
- }
- if(FRST == 1){
- FRSP = holoEntity(8):pos()
- }
- if(RLST == 1){
- RLSP = holoEntity(17):pos()
- }
- if(RRST == 1){
- RRSP = holoEntity(22):pos()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement