Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Case "goal"
- ; Update progress bar
- Game_Stage_UpdateProgressBar("Loading object n."+j+": Goal Ring", Float#(j)/Float#(xmlNodeChildCount(RootChildNode)))
- positionX# = 0
- positionY# = 0
- positionZ# = 0
- rotationX# = 0
- rotationY# = 0
- rotationZ# = 0
- normalDest$ = xmlNodeAttributeValueGet(SceneChildNode, "dest")
- ; Setup position, rotation and scale.
- ScenePosition = xmlNodeFind("position", SceneChildNode)
- If (ScenePosition<>0) Then
- positionX# = Float(xmlNodeAttributeValueGet(ScenePosition, "x"))
- positionY# = Float(xmlNodeAttributeValueGet(ScenePosition, "y"))
- positionZ# = Float(xmlNodeAttributeValueGet(ScenePosition, "z"))
- End If
- SceneRotation = xmlNodeFind("rotation", SceneChildNode)
- If (SceneRotation<>0) Then
- rotationX# = Float(xmlNodeAttributeValueGet(SceneRotation, "pitch"))
- rotationY# = Float(xmlNodeAttributeValueGet(SceneRotation, "yaw"))
- rotationZ# = Float(xmlNodeAttributeValueGet(SceneRotation, "roll"))
- End If
- obj.tObject = Object_Goal_Create(positionX#, positionY#, positionZ#,rotationX#,rotationy#,rotationZ#,"")
- Case "goalinvis"
- ; Update progress bar
- Game_Stage_UpdateProgressBar("Loading object n."+j+": Stage Gate", Float#(j)/Float#(xmlNodeChildCount(RootChildNode)))
- positionX# = 0
- positionY# = 0
- positionZ# = 0
- rotationX# = 0
- rotationY# = 0
- rotationZ# = 0
- scaleX# = 5
- scaleY# = 5
- scaleZ# = 5
- testDest$ = xmlNodeAttributeValueGet(SceneChildNode, "dest")
- ; Setup position, rotation and scale.
- ScenePosition = xmlNodeFind("position", SceneChildNode)
- If (ScenePosition<>0) Then
- positionX# = Float(xmlNodeAttributeValueGet(ScenePosition, "x"))
- positionY# = Float(xmlNodeAttributeValueGet(ScenePosition, "y"))
- positionZ# = Float(xmlNodeAttributeValueGet(ScenePosition, "z"))
- End If
- SceneRotation = xmlNodeFind("rotation", SceneChildNode)
- If (SceneRotation<>0) Then
- rotationX# = Float(xmlNodeAttributeValueGet(SceneRotation, "pitch"))
- rotationY# = Float(xmlNodeAttributeValueGet(SceneRotation, "yaw"))
- rotationZ# = Float(xmlNodeAttributeValueGet(SceneRotation, "roll"))
- End If
- SceneScale = xmlNodeFind("scale", SceneChildNode)
- If (SceneScale<>0) Then
- scaleX# = Float(xmlNodeAttributeValueGet(SceneScale, "x"))
- scaleY# = Float(xmlNodeAttributeValueGet(SceneScale, "y"))
- scaleZ# = Float(xmlNodeAttributeValueGet(SceneScale, "z"))
- End If
- Object_GoalInvis_Create.tObject(x#, y#, z#,rx#=0, ry#=0, rz#=0,dest$,sx#,sy#,sz#,"")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement