Project Zomboid

Project Zomboid

562 个评价
Respawn in Car [MP/SP]
3
3
2
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
1.087 MB
2022 年 6 月 25 日 上午 6:12
2024 年 1 月 26 日 上午 6:52
35 项改动说明 ( 查看 )

订阅以下载
Respawn in Car [MP/SP]

在 AuD 的 1 个合集中
AuD collection pour PZ
144 件物品
描述


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).
引用自 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
热门讨论 查看全部(4)
25
2024 年 2 月 6 日 下午 9:43
Bug Reports
KodeMan
5
2023 年 12 月 17 日 上午 2:12
does it works with rv interior?
CilginFlix
3
2023 年 8 月 27 日 上午 5:15
Proposed addition
AuD
257 条留言
WarDaddy 2 月 10 日 上午 3:27 
Okay ca marche c'est pour MP, merci de ta réponse =)
AuD  [作者] 2 月 7 日 上午 12:30 
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 2 月 6 日 下午 2:55 
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  [作者] 2024 年 12 月 31 日 上午 12:53 
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  [作者] 2024 年 12 月 31 日 上午 12:52 
hi mister
Deathhead 2024 年 12 月 30 日 上午 7:50 
Would it be alright if I add your mod to a modpack for a server I'm making?
AuD  [作者] 2024 年 11 月 10 日 上午 12:03 
lol
V2git026 2024 年 9 月 27 日 下午 6:10 
I love you
AuD  [作者] 2024 年 6 月 22 日 上午 10:20 
your pb is SP or MP ?
AuD  [作者] 2024 年 6 月 22 日 上午 10:19 
@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 ..