FRain
July 31st, 2009, 12:02 AM
I have ODST Pods. For a while I just used physics to drop them and the players in them. I then custom animated them to look a little cleaner. The script, which runs at startup, spawns the character inside of the pod, as well as the other two pods which have spartans in them. After this, the custom animation plays. However, the custom animation ingame basically just animates the odst pods 3x faster than it was animated, then snaps to the ground where i placed it. (the animation is of it dropping to its origin position, and then set as JMM). You then wait for what would be the duration of the rest of the animation, sitting on the ground, before the script ejects you.
Also, if I climb back into the odst pod and trigger the custom animation AFTER the script is done, it works fine. If I trigger the custom anim while I'm still sitting in the pod, it fucks up as described above.
Here's the script itself:
(script startup insertion
(vehicle_load_magic insertion2 "w-driver" (unit (list_get (players) 0)))
(sound_looping_start "somethingteam\levels\music\level_a\level_a_intro" none 1 )
(ai_attach sierra-259 spartan259)
(ai_attach sierra-258 spartan259)
(unit_enter_vehicle sierra-259 insertion3 "w-driver")
(unit_enter_vehicle sierra-258 insertion4 "w-driver")
(player_enable_input false )
(unit_custom_animation_at_frame insertion2 somethingteam\cinematic\odst_pod\level1\level1 "stand fixed idle" 0 1 )
(unit_custom_animation_at_frame insertion3 somethingteam\cinematic\odst_pod\level1\level1 "stand fixed idle" 0 1 )
(unit_custom_animation_at_frame insertion4 somethingteam\cinematic\odst_pod\level1\level1 "stand fixed idle" 0 1 )
)
[ I also tried custom_animation command as well. Same results ]
(sleep 349)
(vehicle_unload insertion3 "w-driver" )
(unit_exit_vehicle (unit (list_get (players) 0)))
(vehicle_unload insertion3 "w-driver" )
(player_enable_input true )
(vehicle_unload insertion4 "w-driver" )
(sleep 1800 )
(ai_attach sierra-259 spartans_move_here)
(ai_attach sierra-258 spartans_move_here)
halp
Also, if I climb back into the odst pod and trigger the custom animation AFTER the script is done, it works fine. If I trigger the custom anim while I'm still sitting in the pod, it fucks up as described above.
Here's the script itself:
(script startup insertion
(vehicle_load_magic insertion2 "w-driver" (unit (list_get (players) 0)))
(sound_looping_start "somethingteam\levels\music\level_a\level_a_intro" none 1 )
(ai_attach sierra-259 spartan259)
(ai_attach sierra-258 spartan259)
(unit_enter_vehicle sierra-259 insertion3 "w-driver")
(unit_enter_vehicle sierra-258 insertion4 "w-driver")
(player_enable_input false )
(unit_custom_animation_at_frame insertion2 somethingteam\cinematic\odst_pod\level1\level1 "stand fixed idle" 0 1 )
(unit_custom_animation_at_frame insertion3 somethingteam\cinematic\odst_pod\level1\level1 "stand fixed idle" 0 1 )
(unit_custom_animation_at_frame insertion4 somethingteam\cinematic\odst_pod\level1\level1 "stand fixed idle" 0 1 )
)
[ I also tried custom_animation command as well. Same results ]
(sleep 349)
(vehicle_unload insertion3 "w-driver" )
(unit_exit_vehicle (unit (list_get (players) 0)))
(vehicle_unload insertion3 "w-driver" )
(player_enable_input true )
(vehicle_unload insertion4 "w-driver" )
(sleep 1800 )
(ai_attach sierra-259 spartans_move_here)
(ai_attach sierra-258 spartans_move_here)
halp