@name Time Warp By Freezebug.
@inputs M1 M2 Ent:entity Alt
@outputs Ops
@persist R Angles:array Position:array R2
@trigger 
Ops=ops()
runOnTick(1)
if (changed(M1) & M1==1)  {
Ent:soundPlay(2,4,"vo/engineer_yes03.wav")
Angles:clear()
Position:clear()
}
if (M1==1) {
Angles:pushAngle(Ent:angles())
Position:pushVector(Ent:pos())
}
if (changed(M2) * M2==1) {R=0
Ent:soundPlay(3,3,"vo/engineer_yes01.wav")}
if (M2==1) { 
R++
Ent:setAng(Angles:angle(R))
Ent:setPos(Position:vector(R))
}
if (changed(Alt) & Alt==1) {
R=Angles:count()
R2=Position:count()
Ent:soundPlay(1,3,"vo/engineer_no01.wav")
}
if (Alt==1) {
R--
R2--
Ent:setAng(Angles:angle(R))
Ent:setPos(Position:vector(R2))
}
