Changing Board in Online Mode

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

Changing Board in Online Mode

Postby Anteara » Mon Dec 27, 2010 10:52 pm

Hi, This is incredibly difficult for me to figure out - I want to be able to change (or add something) to the board, the reason i want to do this is because when i change from SkaterPhysics to VehiclePhysics, the model does not load.

Code: Select all

:i $deck_graphic$ = :a{
   :i :s{
      :i $desc_id$ = $segway$
      :i $frontend_desc$ = %sc(6,"Segway")
      :i $mesh$ = %s(37,"models/veh/veh_segmotor/segmotor.skin")


If in CAS menu, this will load the segway MODEL on top of the skaters board.

Code: Select all

:i $Skater$.call $AddGeom$ arguments
      $name$ = $vehicle$$model$ = %s(45,"models\SpecialItems\Chainsaw\SI_chainsaw.skin")


This will add a chainsaw to the skaters board in online mode.

So i figured this would work, but it doesn't work.

Code: Select all

:i $Skater$.call $AddGeom$ arguments
      $name$ = $vehicle$$model$ = %s(37,"models/veh/veh_segmotor/segmotor.skin")


Any idea why it doesn't work? And What i can do to make it work?
Anteara
Posts: 268
Joined: Thu Oct 14, 2010 2:55 am
Contact:

Re: Changing Board in Online Mode

Postby Anteara » Wed Jan 26, 2011 11:40 pm

Hi, This reply is on the same note as the OP, so i'll post here rather than make a new thread.

Well, I've finally been able to create the vehicle model online, with this function (Look in OP for extras)

:i function $Vehicle_Model_Create$
:i $GetCurrentSkaterProfileIndex$
:i $EditPlayerAppearance$:s{
:i $profile$ = %GLOBAL%$currentSkaterProfileIndex$
:i $target$ = $SetPart$
$targetParams$ = :s{$part$ = $deck_graphic$$desc_id$ = %GLOBAL%$Vehicle_Name$:s}
:i :s}
:i call $RefreshSkaterModel$ arguments
$profile$ = %GLOBAL%$currentSkaterProfileIndex$$skater$ = %i(0,00000000)
:i endfunction


I can successfully add the vehicle model and remove board, so it looks normal.

It's taken me around a month to figure out how to create something with $mesh$ online, so I'm happy with that, but, the only thing is that this will only work if I'm the host, If i'm not hosting, it will just crash the game.. the function is EXACTLY the same for if i'm hosting or for if i'm not hosting.

Any ideas?

Return to “THUG2 modding”

Who is online

Users browsing this forum: No registered users and 21 guests