Gobe Posted December 13, 2009 Share Posted December 13, 2009 Hey, As far as I know, it isn't possible yet to have ped driving vehicles server side, and i'd like to know if it will be possible somedays and if it will be possible to make them follow realistic path (roads, highways) etc realisticly as they do in the real game, make them turn corners realisticly, stop at traffic light, driving at a given speed (50kmh for example, well I think it could be done with setElementVelocity repeated many times or something like that). Link to comment
Dark Dragon Posted December 13, 2009 Share Posted December 13, 2009 it is possible but it uses setPedControlState, not velocity, that would look silly Link to comment
Gobe Posted December 13, 2009 Author Share Posted December 13, 2009 it is possible but it uses setPedControlState, not velocity, that would look silly I meant using setCarVelocity for limiting the car speed we don't want to see them driving @ 250kmh in a downtown street... Link to comment
Dark Dragon Posted December 14, 2009 Share Posted December 14, 2009 oh come on, you can do it in a proper way, it wouldn't look good that way. Link to comment
subenji99 Posted December 14, 2009 Share Posted December 14, 2009 Thinking about this brought up an idea: Would there be a good demand for a setPedAnalogControlState (or modify the current setPedControlState) function? Anyone that's seen a "cruise control" script can probably see the reasoning. With analog control over "accelerate", we can eliminate the acceleration-jerking around the desired speed with a simple enough algorithm. I'm sure there would be other uses as well, for the other analog inputs. Link to comment
eAi Posted December 14, 2009 Share Posted December 14, 2009 Yes, there should be a way to set analogue states - it'd make this kind of behavior much easier to implement. Link to comment
DiSaMe Posted December 15, 2009 Share Posted December 15, 2009 it is possible but it uses setPedControlState, not velocity, that would look silly I meant using setCarVelocity for limiting the car speed we don't want to see them driving @ 250kmh in a downtown street... You can toggle control state depending on the velocity. Link to comment
Gobe Posted December 16, 2009 Author Share Posted December 16, 2009 Well good idea for the setPedAnalogControlState also, it would be cool having peds drivings cars and vehicles serverside and, and, it would be cool being able to tell peds to enter vehicles without having to "warp" them into vehicles, just make them enter a vehicle as a player do (opening door etc). Link to comment
Dark Dragon Posted December 17, 2009 Share Posted December 17, 2009 you woul'dnt really benefit from having setPedControlState serverside. it would not improve the sync at all. the main problem is that rockstar didn't manage to make the frames per second not affecting the gameplay. the server can't tell that much about peds and much other stuff thats happening. it needs the clients to keep track of what's going on. the server doesn't say "hey this vehicle is now over there insted of there" instead the server asks the syncer (drivers are syncer of their own car, other vehicles or peds are usually synced by the best source which usually is the closest) and lets the other client know what it has just been told. in best case the server would be running the game as well, everything streamed in at once so it could just decide what to tell the clients itself, however this is not possible or at least no one knows how it could be done if it actually is possible. the missing enter_exit control state for peds as well as the peds being not jackable are both known issues which will hopefully be solved some time, but they are not on a high priority right now. Link to comment
eAi Posted December 18, 2009 Share Posted December 18, 2009 It would be possible, but it'd require many more man hours than we have. Link to comment
Deixell Posted December 23, 2009 Share Posted December 23, 2009 There is another problem. If you knock ped out of the road or carjack it they will just stop in one place and do nothing. Link to comment
Recommended Posts