Skip to content
This repository has been archived by the owner on Jan 6, 2021. It is now read-only.

cratedrop v2.0

Latest
Compare
Choose a tag to compare
@Vechro Vechro released this 20 Jun 17:51
· 18 commits to master since this release

The long awaited v2.0

New: command has changed to /cratedrop, only the weapon is required as an argument, but accepts /cratedrop minigun 50 true 1000 where 50 is ammo, true is for roofCheck and 1000 is planeSpawnDistance

New: got rid of weaponTable entirely for interpreting commands, for example, pistol gets converted to pickup_weapon_pistol automatically along with weapon_pistol. This means all weapons are supported

New: plane spawn location is now RNG at the given distance (400 metres by default)

New: CrateDrop is now an exported function (no error correction, so use it right) for developers with parameters such as weapon (must use exact name of pickup), ammo, planeSpawnDistance (how far away to spawn plane), dropCoords(expects a dictionary table with x, y, z values).

Improved: "crateDrop" is an event (does error checking and correction) with parameters such as weapon (expects for example smg or weapon_smg or pickup_weapon_smg, but only works with weapons, doesn't accept other pickups, use the function to bypass this), ammo, roofCheck (bool, if true then checks if plane is capable of dropping a crate to specified coordinates), planeSpawnDistance, dropCoords.

New: when the resource gets stopped, the resource cleans up after itself, removing objects, pickups, planes

New: if the crate is dropped and picked up early enough by a player so the flare isn't deployed yet, the flare gets deleted. I was unable to find a way to get rid of it after it deployed.