Project Zomboid

Project Zomboid

Avatar offline [MP/SP]
This topic has been locked
AuD  [developer] 9 Feb, 2023 @ 9:58am
[EN] To know for administrators
  • Now for server owners you can add as many avatars as you want which will be visible in the avatar choice menu

  • I created two parts in order to declare the avatars, "Vanilla" and "Server", the "vanilla" part is reserved for me, in order to enrich this part over the updates, the "server" part " is reserved for you to add your personal avatars, knowing that I will never add an avatar in this "server" category.

  • It is always possible to declare an account name and associate your own personalized avatar with it.

  • If you want to add your own avatars, use the files named "Example.txt.BAK" visible in the mod directly, in the media/scripts folder, in order to use them as a model, you will have to strictly follow the names of the items /icons/textures/models and follow the numbers in order from 1 to as many as you want, look at the scripted files and follow this same logic, a video tutorial will be made available later; the "Example.txt" files are in .BAK and are not read by the mod.(he does not have to use the safehouse or faction options)

  • An admin menu is present, depending on your Vars sandbox settings, you can White list the players so that it is possible to rotate 3D avatars (cardboard) when setting it up, this WL is present because non-Fair Play players could place their avatars in a way that makes it invisible, so you can completely disallow rotation on avatars if you wish.

  • In this same admin menu, you can force all players except admins to leave the game leaving their avatars on their position, this option launches a global command, it is possible to place this command (this code) or you want, in an automatic restart code for example. it's a .lua function

  • Use this command/code anywhere you want, server side or client side, the result will be the same, it will force all players to exit the server automatically. Command: AvatarFUNC.ForcePlayersToExitGame()
    If you are using the udderly uptodate mod you will not need this command, the auto kick of the udderly mod will spawn the avatar of the players on his position in world, I recommend this : https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2844315442&searchtext=udderly+uptodate+

  • Several sandbox options are present, you can restrict several things according to your desires.

  • A print() named ... AvatarMOD ... is generated on the server side each time: the position of an avatar is saved, if there are problems with the avatars.
    On each print(), you will have the name of the manipulated avatar, the name of the player performing the manipulation, and possibly the associated vehicle.

  • Don't forget to take a look in the discussion topics
Last edited by AuD; 23 Sep, 2023 @ 7:49am