Vice City: Multiplayer

VC:MP Discussion => General Discussion => Topic started by: rulk on Oct 11, 2015, 08:47 AM

Title: Traffic
Post by: rulk on Oct 11, 2015, 08:47 AM
I don't know if this is possible, or if you have the time to implement this, but having random traffic around Vice City would be a great idea, especially from a racing server owners perspective, I could create races with or without traffic then, to make it more difficult for the players.

Just a thought.

regards,

rulk
Title: Re: Traffic
Post by: DizzasTeR on Oct 11, 2015, 08:57 AM
idea is genuine and awesome but the traffic has to be sync between all the online players, on the top priority, we don't have NPCs / Peds in the first place so I guess that's kinda not going to happen currently.
Title: Re: Traffic
Post by: KAKAN on Oct 11, 2015, 09:20 AM
Great Idea!
I want NPCs for some work.
I have made some NPCs that will roam around VCMP. but Idk how to sync them with the server
Title: Re: Traffic
Post by: Xmair on Oct 11, 2015, 10:04 AM
This will lag the shit out of the server but this is an idea and can be improved.
Use custom objects/Vehicles. Use timers to move them. This can be improved.
Not sure if this works but laggy.
[spoiler=Code]
objone <- CreateObject(6000,...,...,...,..,..,..)
objtwo <- Crea......
//More.
NewTimer("anytimer",500,1)
function anytimer()
{
objone.MoveTo(Vector(123,123,123),3000...)
objtwo.Move.......
NewTimer("nexttimer",500,1)
//More shit here.
}
function nexttimer()
{
objone.MoveTo(Vector(124,124,124),3000...)
objtwo.Move........
NewTimer(".....",500,1)
//More timers, That's what will cause lag. but the last one should contain anytimer again. I mean the first timer again.
}
For custom vehicles you may need to use FindVehicle(ID).Pos=Vector(123,123,123)!
Laggy :P But this can be improved or they should implement custom npcs.
[/spoiler]
Title: Re: Traffic
Post by: KAKAN on Oct 11, 2015, 10:33 AM
I know that way.
That way is extremely bad!
Title: Re: Traffic
Post by: Xmair on Oct 11, 2015, 11:13 AM
Quote from: KAKAN on Oct 11, 2015, 10:33 AMI know that way.
That way is extremely bad!
But that's just an idea which can be improved.