DayZ
MuchCarKey_Expansion
Showing 1-7 of 7 entries
Update: Jul 13, 2021 @ 4:07am

This update will WIPE all cars unfortunately.
- Added lifetime maintenance
- Changed config location from MCK_CarLockPickConfig/CarLockPickConfig.json to MuchCarKey/MCK_Config.json
The config should automatically convert and delete old one.
- Added lifetime maintenance config options - You can disable this feature in config
- Added extended logging e.g. starting, getting in and out, detaching items - It can be disabled in config
- Added compatibility for UniversalApi to store CarKey information for MapLink

How does lifetime maintenance work?
In config there's 2 sets of lifetimes, MaxLifetime and MaxLifetimeWithoutAnyPlayerInteraction
For MaxLifetimeWithoutAnyPlayerInteraction you should set a lower amount. e.g. if you spawn cars with CE and there's a single car in a very obscure place, you can use this to maintain their lifetime
For MaxLifetime you should put maximum you ever want cars to be sitting around.

If a player starts a car that doesn't have a key it will set lifetime to MaxLifetimeWithoutAnyPlayerInteraction
If a player starts a car that had a key assigned, it will set the lifetime to MaxLifetime

Opening doors, interacting with the car in any other ways other than the ones below won't count towards the lifetime reset

What does reset lifetime?
- Starting a car
- Assigning a key
- Locking the car
- Unlocking the car

Do we still need lifetimes in types set correctly?
Yes you do. I'd recommend to put same amount or higher than MaxLifetime

Why would we do this?
You'd have 2 lifetimes to maintain cars in the world as cars spawned with CE will never despawn unless they are destroyed. This ensures cars will cycle spawns.

I use 5 days without key, 2 weeks with key. This will ensure active people keep their cars and new ones will come into the world.

Update: Apr 20, 2021 @ 2:44am

- Fix for 1.12 compatibility
- Added Admin Info Key. This will give the ID of the car and the key id assigned to the car. It will be printed in the chat.
- Changed it so when a key has no tag attached inventory view is more zoomed in
- Changed the inventory view of the key tag

NOTE: New key was used to sign the pbos. Make sure you copy the new one from Keys folder

Update: Feb 3, 2021 @ 3:40am

Notes:
- Preparation for 1.11
- Added new config to disable crafting of key at grinder (CanCraftKey -> 1 to enable crafting, 0 to disable crafting)
- Added new config to allow multiple items for raiding
- Changed so you can't take items from truck if locked

New config

{ "CanCraftKey": 1, "CanPickCarLocks": 1, "RaidTool": "", "RaidTools": [ "Lockpick", "Crowbar" ], "ToolDamage": 10, "ChanceToPickLock": 40.0, "TimeToPickLock": 10.0 }

Update: Nov 4, 2020 @ 5:33am

1.10 Compatibility Update

Modified:
- Now keys should work with cars (or other carscript) that have no doors e.g. trolleykart, atv

Update: Jun 30, 2020 @ 7:15am

1.08 compatibility for key holding anim

Update: Jun 5, 2020 @ 6:12am

meta.cpp

Update: Jun 5, 2020 @ 6:11am