Project Zomboid

Project Zomboid

474 ratings
TchernoLib
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
178.874 KB
22 Dec, 2024 @ 9:44am
1 Change Note ( view )

Subscribe to download
TchernoLib

In 1 collection by Tchernobill
B42
22 items
Description
Features and tools with high reuse potential.


Global Object
  • Simple interface to add your own Global Objects to the game.
  • Details here.
see Portal Gun mod for example.


Spawn
  • Spawn a specific item in a specific container.
  • Spawn a specific item from a right click + action on a specific square.
  • Details here.
see Portal Gun mod for example.


Sandbox Options
see Portal Gun and Battle Royale mods for examples.


Player Variables
  • Simple interface for spreading player variables in multiplayer.
  • Adds IsoPlayer Flags to player variables.
  • Player variables are (mainly) used for animations.
  • Adds isCmdReady(). A function to know when sendClientCommand can be safely used in MP.
see Infected Player mod for example.


Movement control
  • Simple interface for movement control.
  • Simple interface for teleport.
  • Vanilla movement speed recomputed with lua.
  • Tuning options for movement speed.
see No Limping mod for example.


World Chat
see NPC Baelin The Fisherman mod for example.


UI
  • Simple interface for adding a new tab to Character Info window.
  • Adds Player ModData Debug to Debug Dev menu (below Global Mod Data Debug).
  • Draw circles on world (better than vanilla).
  • Draw lines (better than vanilla). [Not always displayed]
  • Shows modded icon in Item List. Thx to Notloc.
see Battle Royale mod for drawing example.


Geometry
  • Detects point inclusion in triangle.
  • Detects point inclusion in rectangle.
  • Detects intersecting point of two segments.
see Battle Royale mod for example.


Targeting
  • Adds getPlayerMouseSquare(player,goThroughWindow). Detects the square under the mouse, including lower levels.
see Portal Gun mod for example.


luautils
  • Deep lua table copy.
  • Transform square to table for data storage.
  • Formatting table, square, player for easy debug.
see Portal Gun and Battle Royale mods for examples.


FAQ
  • Safe to add midgame.
  • Safe to remove midgame (items may be lost).
  • Works for B42 and further versions.
  • Use this other mod for B41 and previous versions.
  • Works in solo and multiplayer.
  • Untested for splitscreen.
  • Untested for joypad.
  • Interface for keybinds has been removed with B42 use Vanilla interface instead.
  • If you still have questions, ask on Official PZ Discord: mod_support channel[discord.gg].


On Lockdown[theindiestone.com]
This mod cannot be modified by anyone else, for anything else, at all, ever. Even if the user disappears, he or she would much rather you didn't touch the fruits of their hard labour.

If you wanna support, kind words are very welcome.
If you don't have any, you can still give constructive criticism.

Workshop ID: 3389605231
Mod ID: TchernoLib
5 Comments
Illtor 20 Jan @ 4:05pm 
Had to go into my joypad config file due to no longer being able to use the d-pad to navigate context menus to commit actions.
Helios 5 Jan @ 5:10am 
i was looking into movement control yesterday for the no limping mod, i did not manage to get it to work and looking into it today i think b42 may have bricked that part of this mod, tuning options don't seem to do anything.
Maples9909 22 Dec, 2024 @ 7:53pm 
no controller support yet?:riddle:
luisbotassim4424 22 Dec, 2024 @ 10:38am 
I was waiting for TchernoLibs mods, will we still have True Craw, Climbwall, etc ?
For me, these are extremely necessary mods !
Tchernobill  [author] 22 Dec, 2024 @ 9:49am 
Keybind interface was removed: use Vanilla keybind instead.
See Jump mod (B42) if you need an exemple.