################
# > Anti-Gravity: Disable gravity on all of your props.
# > How to use: Spawn it.
################

@name Anti-Gravity System
@outputs Pos:vector

interval(10)

findIncludePlayerProps(owner())
findByClass("prop_physics")
Props=findToArray()

for(Index=1, Props:count()) {
    
Prop=Props[Index,entity]

    Pos = Prop:pos()
    Prop:applyForce(((Pos+vec(0,0,0.9014)-Pos)*10-Prop:vel())*Prop:mass())
}
