Project Zomboid

Project Zomboid

468 ratings
Respawn in Car [MP/SP]
2
3
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
1.087 MB
25 Jun, 2022 @ 6:12am
26 Jan @ 6:52am
35 Change Notes ( view )

Subscribe to download
Respawn in Car [MP/SP]

In 1 collection by AuD
AuD collection pour PZ
145 items
Description

Respawn in car
With this mod, if a player disconnects inside a vehicle, he is bound to respawn in this vehicle.
if the vehicle is full (with players online or offline) : No additionnal player can enter the vehicle.

  • If you disconnect your character inside a vehicle, your character will be forced to respawn inside the same vehicle when reconnecting, even if the vehicle has moved.

  • If the vehicle is full (with players online or offline): No additional players can enter the vehicle.

  • The disconnected player inside vehicle has sort of a "Respawn ticket" for this car..

  • Context menu to check for passengers inside a vehicle, online or disconnected)

  • Context menu to kick a disconnected passenger from occupying a seat (option accessible from outside the vehicle, and the door must be open, for the boats, option accessible from inside).

  • Access to context "DEBUG" in admin level or -debug mode.

(ie: 2 seats vehicles) If 2 players have logged out inside a vehicle , no free seats remain, if a third player tries to get in he gets kicked out of the vehicle (because full :2/2 passengers even deconnected).
Originally posted by AuD:
Now, you don't have to wait for your friends for continue on your road trip!

with this mod, you can play multi-character in only one vehicle on your coop/multiplayer server if multi-characters is allowed, you can go on a road trip^^ alone but with yours characters !




Works in MP and SP
Anti-Cheat Type 2 disabled needed.
No vanilla code rewrite, this mod is effective at 4 specific times and not permanently, 4 events used: when the player enters a vehicle / when the player exits a vehicle, when the player changes places and when the player connects.

another events was added in order to remove the "OnTick" on the server: Only when the player is in the driver's seat, a loop checks the distance traveled by the vehicle in order to save its position (70m).

Some modData are stored in the getGameTime, this only corresponds to the names of the players in order to save the position of the assigned vehicle, if you have 20 players on your server, only a table of 20 will be saved in the getGameTime.

Works with an existing save, safe to remove but the settings will be saved in your data server.
If you reinstall again (second install etc...), the last settings are preserved all the time. /!\
[reinit option coming soon in DEBUG admin]

If you think this mod would be interesting for the community






Workshop ID: 2825720887
Mod ID: addForceRespawnToCar
Popular Discussions View All (4)
25
6 Feb @ 9:43pm
Bug Reports
KodeMan
5
17 Dec, 2023 @ 2:12am
does it works with rv interior?
CilginFlix
3
27 Aug, 2023 @ 5:15am
Proposed addition
AuD
249 Comments
AuD  [author] 22 Jun @ 10:20am 
your pb is SP or MP ?
AuD  [author] 22 Jun @ 10:19am 
@Annatar_BR

hi, "Respawn in Car" mod is only activated (teleportation to) during the spawn of your character on the map, during your entry into the game (if you have not moved position = no teleportation).
If "Respawn in car" mod should create a problem for you, it is not during a game, but only at the very beginning of a game (spawn on map).

Respawn in Car mod est compatible avec tout les mods je pense ..
Annatar_BR 22 Jun @ 8:00am 
Hello Aud! Great work on this mod. Does it work with RV Interiors? I've installed it and every time I enter a bus' interior and leave I get a high ping and the vehicles around me stay invisible. I'm not sure if it's related to the mod but sure was a coincidence.
AuD  [author] 16 Jun @ 6:02am 
INFO

Avatar Offiline Mod is Updated : Now is compatible in SP !!

https://steamproxy.net/sharedfiles/filedetails/?id=2915808671&tscn=1718265282
AuD  [author] 1 Jun @ 11:29pm 
if you don't see the point of this mod, I can't do anything for you
AuD  [author] 1 Jun @ 11:28pm 
everyone has their own point of view ^^ but yes everyone can kick the passenger
Milo Dack 1 Jun @ 5:37pm 
Quick question regarding the context menu for kicking a disconnected passenger from occupying a seat, can anyone do this or is it only admins or mods that can do it? Just wondering what the point of the mod is if anyone can remove you when disconnected if the whole point of the mod is to enable you to spawn with the vehicle each time you login?
Dab 14 Apr @ 2:21am 
@AuD ty and i will
AuD  [author] 13 Apr @ 8:02am 
Hi, yes,but please, change the id name.
Dab 13 Apr @ 2:32am 
@Aud can i put this into a mod pack please??