It spawns a carepackage above the player that floats down around the player. It can be filled with whatever you want. By default the carepackage costs two brief cases to buy.
Using http://epochservers.com/viewtopic.php?f=14&t=13 add this to your extra_rc.hpp
class ItemBriefcase100oz {
class carepackage {
text = "Call carepackage";
script = "execVM 'scripts\carepackage.sqf'";
};
};
change the filepath as necessary.
Now find the hacker check in your server_functions.sqf and replace
if(vehicle _x != _x && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle)) then {
with
if(vehicle _x != _x && (vehicle _x getVariable ["Mission",0] != 1) && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle)) then {
save and repack.
Download link - contains all three versions. for any of the map click versions you will need to make the extra_rc point to the clickpackage.sqf
You can change the _cost (how many briefs it requires), you can change the _distance until the box is deleted, you can change the _smoke color, you can change the items and weapon types also. You can change the way the box is arranged on the chute, but I wouldn't touch it as it can mess with the chute or make the box float above the ground. You can also change the height that the carepackage spawns at, on line 23
_position = [_getPos select 0, _getPos select 1, 25];
change the 25 at the end.
EDIT: You may have to whitelist a few things in the createvehicle.txt like
!="USVehicleBox_EP1"
!="ParachuteMediumEast"
!="SmokeShellBlue"
I don't use BE personally so I can't really help any more than that.
and
If you are running infistar antihack remove:
onMapSingleClick '';
from AH.sqf
Enjoy.
To view a video of this system click HERE
If you like the script, please consider donating below.
Credits : Infistar, he helped majorly with weapon mag selection.
I want to add the corresponding color smoke to my Epoch Events (Military Crate, Supply Crate, Construction Crate, Treasure Crate). This way those loot boxes will become more of a PVP battle over it instead of two people searching the dot in different areas only to never come across each other..
What lines of code would I have to add to the four .sqf files?