Vice City: Multiplayer

Server Development => Scripting and Server Management => Client Scripting => Topic started by: Luis_Labarca on Jun 23, 2017, 02:16 AM

Title: List Suggestions - Client - Side
Post by: Luis_Labarca on Jun 23, 2017, 02:16 AM
Player

Write functions

.SetAnim
.SetCameraPos
.SetWantedLevel
Hud.SetPos(HUD_FLAG_CASH,VectorScreen( 0,0 ) )
Hud.SetPos(HUD_FLAG_CLOCK,VectorScreen( 0,0 ) )
Hud.SetPos(HUD_FLAG_HEALTH,VectorScreen( 0,0 ) )
Hud.SetPos(HUD_FLAG_WEAPON,VectorScreen( 0,0 ) )
Hud.SetPos(HUD_FLAG_WANTED ,VectorScreen( 0,0 ) )
Hud.SetPos(HUD_FLAG_RADAR,VectorScreen( 0,0 ) )
Othes Funtions Player
Player::EnterVehicle
Player::ExitVehicle
Player::VehicleMove
Player::WeaponChange

Functions to read

.Cash
.WantedLevel
.World

Global Player

function Player::PlayerDeath( player , reason )
Object

Functions to read
World::FindObject(id)
.Model
.Pos
.Rotation
.World

Write functions
.MoveTo
.Pos
.Rotation
Title: Re: Suggestions - Client - Side
Post by: Shadow on Jun 23, 2017, 04:16 PM
Setting animations client-side is the recipe for ultimate desync. Also, why is this topic locked?
Title: Re: Suggestions - Client - Side
Post by: vito1 on Jun 23, 2017, 04:45 PM
Quote from: Shadow on Jun 23, 2017, 04:16 PMSetting animations client-side is the recipe for ultimate desync. Also, why is this topic locked?
desynced animation it's not so bad as:
Quote.World

Worlds concept is totally serverside.
Title: Re: Suggestions - Client - Side
Post by: EK.IceFlake on Jun 23, 2017, 06:34 PM
Quote from: Shadow on Jun 23, 2017, 04:16 PMSetting animations client-side is the recipe for ultimate desync. Also, why is this topic locked?
It would still be useful for reimplementing sliding.
Title: Re: Suggestions - Client - Side
Post by: Luis_Labarca on Jun 23, 2017, 07:46 PM
Quote from: Shadow on Jun 23, 2017, 04:16 PMAlso, why is this topic locked?
And what is the problem that closed it? :P
Title: Re: Suggestions - Client - Side
Post by: . on Jun 23, 2017, 08:22 PM
Quote from: Luis_Labarca on Jun 23, 2017, 02:16 AMMy Suggestions is to add the following functions to the Client - Side

Player

.SetAnim
.SetCameraPos
.SetWantedLevel
.WantedLevel
.World

Global Player

function Player::PlayerDeath( player , reason )
Object
World::FindObject(id)
.Model
.MoveTo
.Pos
.Rotation
.World

.Cash ? Is that read only or write as well? In fact. Do any of these support write? Because I can get really nasty with it in that case.
Title: Re: Suggestions - Client - Side
Post by: vito1 on Jun 23, 2017, 08:27 PM
well client-side objects would be awesome to avoid to transfer tons of data from server in some specific cases.
client-side camera for player would be good as well as client side markers and playsound, but its not so important as .Angle and well-synced .Health.
Title: Re: Suggestions - Client - Side
Post by: Luis_Labarca on Jun 23, 2017, 08:40 PM
Quote from: . on Jun 23, 2017, 08:22 PM.Cash ? Is that read only or write as well? In fact. Do any of these support write? Because I can get really nasty with it in that case.
If it would be okay just to read to see what cash etc has every player
Title: Re: Suggestions - Client - Side
Post by: Luis_Labarca on Jun 23, 2017, 08:41 PM
Quote from: vito1 on Jun 23, 2017, 08:27 PMwell client-side objects would be awesome to avoid to transfer tons of data from server in some specific cases.
client-side camera for player would be good as well as client side markers and playsound, but its not so important as .Angle and well-synced .Health.
I agree with you ;)
Title: Re: Suggestions - Client - Side
Post by: KAKAN on Jun 24, 2017, 07:08 AM
Quote from: . on Jun 23, 2017, 08:22 PM.Cash ? Is that read only or write as well? In fact. Do any of these support write? Because I can get really nasty with it in that case.
Quote from: Luis_Labarca on Jun 23, 2017, 02:16 AMMy Suggestions is to add the following functions to the Client - Side

Player

.SetAnim
.SetCameraPos
.SetWantedLevel

Write-only.
Title: Re: Suggestions - Client - Side
Post by: Milos on Jun 25, 2017, 12:24 AM
My suggestion
Player::EnterVehicle
Player::ExitVehicle
Player::VehicleMove
Player::WeaponChange
:)
Title: Re: Suggestions - Client - Side
Post by: Luis_Labarca on Jun 25, 2017, 02:54 PM
New Suggestion

Player

Hud.SetPos(HUD_FLAG_CASH,VectorScreen( 0,0 ))
Hud.SetPos(HUD_FLAG_CLOCK,VectorScreen( 0,0 ))
Hud.SetPos(HUD_FLAG_HEALTH,VectorScreen( 0,0 ))
Hud.SetPos(HUD_FLAG_WEAPON,VectorScreen( 0,0 ) )
Hud.SetPos(HUD_FLAG_WANTED ,VectorScreen( 0,0 ) )
Hud.SetPos(HUD_FLAG_RADAR,VectorScreen( 0,0 ) )
Title: Re: Suggestions - Client - Side
Post by: vito1 on Jun 25, 2017, 02:58 PM
Quote from: Luis_Labarca on Jun 25, 2017, 02:54 PMNew Suggestion
Hud.SetPos(HUD_FLAG_CASH,VectorScreen( 0,0 ))
Hud.SetPos(HUD_FLAG_CLOCK,VectorScreen( 0,0 ))
Hud.SetPos(HUD_FLAG_HEALTH,VectorScreen( 0,0 ))
Hud.SetPos(HUD_FLAG_WEAPON,VectorScreen( 0,0 ) )
Hud.SetPos(HUD_FLAG_WANTED ,VectorScreen( 0,0 ) )
Hud.SetPos(HUD_FLAG_RADAR,VectorScreen( 0,0 ) )
is it really so important? you able to make your-own elements for that (exculding radar since we unable to cut elements by mask)
Title: Re: List Suggestions - Client - Side
Post by: Luis_Labarca on Jun 25, 2017, 03:02 PM
Quote from: vito1 on Jun 25, 2017, 02:58 PM
Quote from: Luis_Labarca on Jun 25, 2017, 02:54 PMNew Suggestion
Hud.SetPos(HUD_FLAG_CASH,VectorScreen( 0,0 ))
Hud.SetPos(HUD_FLAG_CLOCK,VectorScreen( 0,0 ))
Hud.SetPos(HUD_FLAG_HEALTH,VectorScreen( 0,0 ))
Hud.SetPos(HUD_FLAG_WEAPON,VectorScreen( 0,0 ) )
Hud.SetPos(HUD_FLAG_WANTED ,VectorScreen( 0,0 ) )
Hud.SetPos(HUD_FLAG_RADAR,VectorScreen( 0,0 ) )
is it really so important? you able to make your-own elements for that (exculding radar since we unable to cut elements by mask)
The idea is to be able to move the hud good too that I think I just give my ideas
Title: Re: List Suggestions - Client - Side
Post by: vito1 on Jun 25, 2017, 03:05 PM
Yes, it's a good idea, but some stuff is really more important as clientside .Angle and .Health