Looking for an alternative function to view models

Discuss thug2 modding, post your own, share your ideas, ask questions.
Anteara
Posts: 268
Joined: Thu Oct 14, 2010 2:55 am
Contact:

Looking for an alternative function to view models

Postby Anteara » Fri Feb 04, 2011 3:09 pm

Hi, I haven't had much time to do any modding the past week, so now i'll try a bit more this weekend. I'm looking for an alternate function to show models in the pause menu, currently, with what i'm using, if I load more than 6 models the game will crash. It doesn't matter what 6 models I load.

Code: Select all

:i function call $anteara_show_custom$ arguments
      $active_viewport$ = %i(0,00000000)$parent$ = $root_window$
   :i if NOT call $ScreenElementExists$ arguments
         $id$ = %GLOBAL%$parent$
      :i $printf$%s(49,"WARNING: menu3d_show_sign couldn't find parent %s")$s$ = %GLOBAL%$parent$
      :i return
      
   :i endif
   :i call $SetScreenElementLock$ arguments
      $id$ = %GLOBAL%$parent$$off$
   :i $GetPausePosByResolution$
   :i $CreateScreenElement$:s{
      :i $parent$ = %GLOBAL%$parent$
      :i $type$ = $Element3d$
      :i $id$ = $anteara_custom$
      :i $Model$ = %s(29,"veh\veh_custom\veh_custom.mdl")
      :i $SkeletonName$ = $car$
      :i $Class$ = $Vehicle$
      :i $pos$ = %vec2(150.000000,280.000000)
      :i $CameraZ$ = %i(4294967290,fffffffa)
      :i $scale$ = %f(0.020000)
      :i $PivotPoint$ = %vec3(0.000000,4.120000,0.000000)
      :i $active_viewport$ = %GLOBAL%$active_viewport$
      :i $AngleOrderXYZ$
      :i $anglex$ = %f(-1.570000)
      :i $angley$ = %i(0,00000000)
      :i $anglez$ = %f(0.000000)
      :i $just$ = :a{call $Left$ arguments
            $center$:a}
   :i :s}
   :i call $spawnscript$ arguments
      $rotate_pause_deck2$%GLOBAL%$no_slide$
:i endfunction


As you can see.. this is almost exact to what the game uses by default to add things to the pause menu (which is add_3d_bg)..

I'm not looking for a handout here, just some insight as to why it's not working so well, I might look through the park editor scripts also if I get the time.

Cheers

Return to “THUG2 modding”

Who is online

Users browsing this forum: No registered users and 13 guests