All pastes #337748 Raw Edit

Stuff

public text v1 · immutable
·published 2007-02-02 23:27 UTC
rendered paste body
#Global Hooks

$Simulation:
[

	boundryV = 500
	boundryH = 500
	maxPitch = 0.5236
	maxBank = 0.0873
	maxHead = 0.5236
		
	me = hv.Player
	
	if me:isValid() then
	
	myOrientation = me.Orientation
			
	if myOrientation["h"] > maxHead then
		myOrientation["h"] = maxHead
	elseif myOrientation["h"] < -maxHead then
		myOrientation["h"] = -maxHead
	end
	
	if myOrientation["p"] > maxPitch then
		myOrientation["p"] = maxPitch
	elseif myOrientation["p"] < -maxPitch then
		myOrientation["p"] = -maxPitch
	end
	
	if myOrientation["b"] > maxBank then
		myOrientation["b"] = maxBank
	elseif myOrientation["b"] < -maxBank then
		myOrientation["b"] = -maxBank
	end

	me.Orientation = myOrientation
	
	end
	
]

$HUD:
[

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

]

#End