/random_airdrops

Create Random Airdrops for Project Zomboid

Primary LanguageLuaOtherNOASSERTION

Random Airdrops

A mod for Project Zomboid creating a fully random airdrops to the server, and also fully customizable, you can change the loot tables, hours to remove, chance to spawn every hour, spawn coordinates.

The mod is compatible with dedicated servers and singleplayer

Features

  • Airdrops never spawn above each other
  • Airdrops doenst despawn if player is close
  • Message to player chat when the airdrop is spawned + area name (Only in servers, because single player doenst have chat)
  • Air plane sound when the air drop spawn
  • If the servers close, old airdrops will be deleted automatically (Configurable)
  • Fully customizable loot table (see the github wiki)
  • Fully customizable spawn coordinates (see the github wiki)

How it works?

  • The server random a chance if the chances hits ok then the airdrop coordinates is stored in "cache"
  • if the cache have airdrops then the server starting ticking every 30 ticks to check if there is a player to spawn the airdrop (vehicles cannot spawn without a chunk been loading) in that specific position, also when the airdrop is created is removed from the cache
  • if the chunk in that specific position is loaded then the airdrop will be created
  • when the timer goes below the 0 the airdrop will be removed from the world and from the cache if not created yet, unless the player is loading the chunk of the airdrop
  • when the server starts all old airdrops will be despawned when the chunk loads

For Modders

  • You can free modify and make your own modification of this mod, also this mod have a wiki framework to you undestand and make a script or modification of this mod

Changing The Loot Table

Changing Airdrop Spawn Coordinates