Author Topic: Any one now how to put custom car models for vehicles and teleports?  (Read 2458 times)

WheatleyGAMING

  • Newbie
  • *
  • Posts: 21
  • Karma: +3/-3
    • View Profile
Hi,I remember one time I was on a server a long time ago and the banshee was a Lamborghini. I really wanna use custom models. Also how do you create teleports? Much would be appreiciated.

Motley

  • Full Member
  • ***
  • Posts: 253
  • Karma: +32/-34
    • View Profile
Re: Any one now how to put custom car models for vehicles and teleports?
« Reply #1 on: January 27, 2016, 06:30:43 am »
Example of a sphere on my server..

Before function onscriptload

//Camera Matrix For GunShop
A_SPickupPos <- Vector( 347.0, -713.3, 26.4 );
//Camera Matrix For GunShop

-onScriptLoad   

Code: [Select]
        local pSphere = CreateSphere( Vector( 352.0, -710.7, 26.2 ), 1.0, Colour( 0, 0, 0 ) );
if ( pSphere ) pSphere.Type = MARKER_TYPE_PLAYER;

local pSphere = CreateSphere( Vector( 351.4, -712.9, 26.4 ), 1.0, Colour( 0, 0, 0 ) );
if ( pSphere ) pSphere.Type = MARKER_TYPE_PLAYER;


after Unload

Code: [Select]
function onPlayerEnterSphere( player, sphere )
{
   Message ( "" + sphere.ID + "" );
   ClearMessages(player);
   if ( sphere.ID == 0 )
   {
      local newpos = Vector( 351.7, -714.8, 26.4 );
  player.Pos = newpos;
  SetCameraMatrix( player, Vector( 341.1, -720.6, 28.1 ), A_SPickupPos );
   }
   else if ( sphere.ID == 1 )
   {
      RestoreCamera( player );
  local newpos = Vector( 349.8, -710.5, 26.2 );
      player.Pos = newpos;
   }
  return 1;
}
---------------------------------------------------------
and this is from mess about.. sorry lazyness xD

Code: [Select]
else if ( szCommand == "airport" )
{
MessagePlayer( "Sending you to the airport...", pPlayer );
pPlayer.Pos = Vector( -1507.09, -909.92, 11.09 );
}


thats as simple as it gets... Camera matrix is complicating so i figure i will show you that along with new locations on spheres

as of the other server no clue.. :P

WheatleyGAMING

  • Newbie
  • *
  • Posts: 21
  • Karma: +3/-3
    • View Profile
Re: Any one now how to put custom car models for vehicles and teleports?
« Reply #2 on: January 27, 2016, 05:44:42 pm »
Example of a sphere on my server..

Before function onscriptload

//Camera Matrix For GunShop
A_SPickupPos <- Vector( 347.0, -713.3, 26.4 );
//Camera Matrix For GunShop

-onScriptLoad   

Code: [Select]
        local pSphere = CreateSphere( Vector( 352.0, -710.7, 26.2 ), 1.0, Colour( 0, 0, 0 ) );
if ( pSphere ) pSphere.Type = MARKER_TYPE_PLAYER;

local pSphere = CreateSphere( Vector( 351.4, -712.9, 26.4 ), 1.0, Colour( 0, 0, 0 ) );
if ( pSphere ) pSphere.Type = MARKER_TYPE_PLAYER;


after Unload

Code: [Select]
function onPlayerEnterSphere( player, sphere )
{
   Message ( "" + sphere.ID + "" );
   ClearMessages(player);
   if ( sphere.ID == 0 )
   {
      local newpos = Vector( 351.7, -714.8, 26.4 );
  player.Pos = newpos;
  SetCameraMatrix( player, Vector( 341.1, -720.6, 28.1 ), A_SPickupPos );
   }
   else if ( sphere.ID == 1 )
   {
      RestoreCamera( player );
  local newpos = Vector( 349.8, -710.5, 26.2 );
      player.Pos = newpos;
   }
  return 1;
}
---------------------------------------------------------
and this is from mess about.. sorry lazyness xD

Code: [Select]
else if ( szCommand == "airport" )
{
MessagePlayer( "Sending you to the airport...", pPlayer );
pPlayer.Pos = Vector( -1507.09, -909.92, 11.09 );
}


thats as simple as it gets... Camera matrix is complicating so i figure i will show you that along with new locations on spheres

as of the other server no clue.. :P

Thanks ^_^ But it wont work but i think its because of the way I put the files or something,any chance you can make a folder with the scripts you used and the script.xml? It would be great if you did :D

Motley

  • Full Member
  • ***
  • Posts: 253
  • Karma: +32/-34
    • View Profile
Re: Any one now how to put custom car models for vehicles and teleports?
« Reply #3 on: January 28, 2016, 08:09:03 pm »
I will attempt to. I am at work at the moment. so maybe tomorrow if i have time,i should have time.

The camera matrix is a good way to play with spawn screen as well.

I sent you a PM with a Link  :P
« Last Edit: January 29, 2016, 05:06:02 pm by Motley »

WheatleyGAMING

  • Newbie
  • *
  • Posts: 21
  • Karma: +3/-3
    • View Profile
Re: Any one now how to put custom car models for vehicles and teleports?
« Reply #4 on: January 29, 2016, 11:44:21 pm »
Awesome!Thank you so much ^-^

 

© Liberty Unleashed Team.