Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Gulk2 on Oct 09, 2019, 01:33 AM

Title: Tracking/Panning the Spawnscreen
Post by: Gulk2 on Oct 09, 2019, 01: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 Oct 09, 2019, 02: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 Oct 09, 2019, 06:51 AM
Unfortunately, there is no such function like "MoveCamera"...
Title: Re: Tracking/Panning the Spawnscreen
Post by: Gulk2 on Oct 09, 2019, 12: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 Oct 10, 2019, 10: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 Oct 10, 2019, 12:35 PM
Quote from: Sebastian on Oct 10, 2019, 10:08 AMI 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