Project Zomboid

Project Zomboid

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

Subscribe to download
Respawn in Car [MP/SP]

In 1 collection by AuD
AuD collection pour PZ
144 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






[theindiestone.com]


Workshop ID: 2825720887
Mod ID: addForceRespawnToCar
Popular Discussions View All (4)
25
Feb 6, 2024 @ 9:43pm
Bug Reports
KodeMan
5
Dec 17, 2023 @ 2:12am
does it works with rv interior?
CilginFlix
3
Aug 27, 2023 @ 5:15am
Proposed addition
AuD
257 Comments
WarDaddy Feb 10 @ 3:27am 
Okay ca marche c'est pour MP, merci de ta réponse =)
AuD  [author] Feb 7 @ 12:30am 
Salut, essayes sans voir, mais normalement il est opti, il boufe pas plus que rv interior, mais les deux cumulé peut être ... c'est MP ou SP ?
WarDaddy Feb 6 @ 2:55pm 
Salut Aud, super mod! (comme toujours) est ce que tu sais cependant si ce mod peut créer des lags ou des desynch car j'ai l'impression que c'est le cas?
AuD  [author] Dec 31, 2024 @ 12:53am 
ok, you can add my mod to your mod pack, but only if it is for a server and not a mod that groups mods to share them again... And something else important, rename the mod id (name of the mod/folder containing the mod) with another name, do not leave my id name, it can create problems..
AuD  [author] Dec 31, 2024 @ 12:52am 
hi mister
Deathhead Dec 30, 2024 @ 7:50am 
Would it be alright if I add your mod to a modpack for a server I'm making?
AuD  [author] Nov 10, 2024 @ 12:03am 
lol
V2git026 Sep 27, 2024 @ 6:10pm 
I love you
AuD  [author] Jun 22, 2024 @ 10:20am 
your pb is SP or MP ?
AuD  [author] Jun 22, 2024 @ 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 ..