@name Linear Deviation Test
@inputs 
@outputs Eye:angle EyeLast:angle Trigger Delta:angle Line:angle
@persist Pos1:vector Pos2:vector
@trigger 
#keeps track of if your looking around while walking if you are
#you are deviating from a line
runOnTick(1)
O=owner()
EyeLast=Eye
Eye=O:eyeAngles()
Delta=$Eye
Mix=Delta
Trigger=abs((Mix:yaw()+Mix:pitch())*10)>5

timer("test",1000)
if(O:vel()&clk("test")){
Pos1=Pos2
Pos2=O:pos()
Line=ang(Pos2-Pos1)

}

# By me, \n is a valid character that can be used as enter

# Expression 2 now uses the friends list of any prop protection
# installed on the server to determine if a player may interact
# with your props and read your code. To allow friends to write to your
# expressions, execute the following: wire_expression2_friendwrite 1
#
# A new operator [A ?: B] has been added, shortcut for [A ? A : B]
# Example: Output = A ?: B, Output = A ?: B ?: C
#
# Functionality for checking if inputs are connected is now available
# Example: if (->Input) { ... }
#
# Performance monitoring and restriction have been implemented.
# While-loops and for-loops now exist! (break and continue too)
# Example: while(Val < Max) { Val++, if (Val == 10) { break } }
# Example: for(I=Start, End) { ... }, for(I=Start, End, Step) { ... }
#
# Documentation and examples are available at:
# http://wiki.garrysmod.com/?title=Wire_Expression2
# The community is available at http://www.wiremod.com
