All pastes #344300 Raw Edit

Something

public text v1 · immutable
·published 2007-02-07 17:46 UTC
rendered paste body
#Global Hooks

$Simulation:
[

		
	me = hv.Player
		
	if me:isValid() then
	
		if lastOri == nil then
			lastOri = me.Orientation
		end
	
		currentOri = me.Orientation
	
		if math.sqrt(math.pow(currentOri["p"],2) + math.pow(currentOri["h"],2)) > 0.524 then
			currentOri = lastOri
		end
	
		me.Orientation = currentOri
		lastOri = me.Orientation	

	end
	
]

$HUD:
[

gr.setColor(255,255,255)
gr.drawString(currentOri["h"], 100,100)
gr.drawString(currentOri["p"], 100,110)
gr.drawString(currentOri["b"], 100,120)

]

#End