Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Gulk2 on October 9th, 2019, 02:33 AM

Title: Tracking/Panning the Spawnscreen
Post by: Gulk2 on October 9th, 2019, 02:33 AM
.. to different locations, can it be done? Just tested setting:

SetSpawnCameraPos
SetSpawnCameraLook

both switching with different skin IDs and the camera just instantly teleports instead of travelling.

thanks in advanced for any input.
Title: Re: Tracking/Panning the Spawnscreen
Post by: D4rkR420R on October 9th, 2019, 03:22 AM
I mean, that would require lots of function calls to achieve the smoothness, thus it wouldn't be ideal.
Title: Re: Tracking/Panning the Spawnscreen
Post by: Sebastian on October 9th, 2019, 07:51 AM
Unfortunately, there is no such function like "MoveCamera"...
Title: Re: Tracking/Panning the Spawnscreen
Post by: Gulk2 on October 9th, 2019, 01:07 PM
I think its do-able guys, with a script like this, described...

1. Force player to spawn
2. Freeze player
3. Set players skindID to first skin wanted (for first spawnloc)
4. Read players skinID and sets SetCameraPos( [Vector] position, [Vector] look ); accordingly < New spawnlocs based on SkinID
 (note player needs to be teleported close by spawnscreen location for game to load textures/world correctly.
5. Set player skidID from onkeypress left & right arrows, just like original spawnscreen. and set Return key or shoot/rmb to spawn.

This technique seems to work in another VC program. But I'm unskilled at scripting.
Title: Re: Tracking/Panning the Spawnscreen
Post by: Sebastian on October 10th, 2019, 11:08 AM
I assume your already figured it out, in this post(https://forum.vc-mp.org/?topic=7136.0)
Title: Re: Tracking/Panning the Spawnscreen
Post by: Gulk2 on October 10th, 2019, 01:35 PM
Quote from Sebastian on October 10th, 2019, 11:08 AM
I assume your already figured it out, in this post(https://forum.vc-mp.org/?topic=7136.0)
Not yet. Bu it todo, wil share if succes :D