Jump to content

[1.6 Harvestable hemp, smoking weed, pot farms]


juandayz

Recommended Posts

  On 3/22/2017 at 9:43 AM, Cherdenko said:

Update for deploy anything if you don´t like macca or just not using the extra_rc script:

// be sure to have a komma on the lines that come before  
	["ItemKnife","Harvest the weed","execVM 'drugs\cuthemp.sqf';","true"],
    ["ItemKiloHemp","Smoke that shit","execVM 'drugs\smoke.sqf';","true"],
	["ItemMachete","Harvest the weed","execVM 'drugs\cuthemp.sqf';","true"] // no komma after last line

@juandayz it should work, have yet to have tested it though

Expand  

Is what I use and works perfect.

Link to comment
Share on other sites

  • 2 months later...

Would anyone be able to help me get this working?

The weed farms spawn really well on the server which is nice to see but I can't seem to get my right click actions working with the All in 1 deploy. I have tried different ways of executing this script through the config but I cannot seem to get it to work? I think its got something to do with this config seeing as I cannot get options on my Machete or Hemp.

Thanks in advance.

Deploy config

  Reveal hidden contents

Screenshots in game

  Reveal hidden contents

 

Link to comment
Share on other sites

  On 7/7/2017 at 8:36 AM, jjsnacks77 said:

Would anyone be able to help me get this working?

The weed farms spawn really well on the server which is nice to see but I can't seem to get my right click actions working with the All in 1 deploy. I have tried different ways of executing this script through the config but I cannot seem to get it to work? I think its got something to do with this config seeing as I cannot get options on my Machete or Hemp.

Thanks in advance.

Deploy config

  Reveal hidden contents

Screenshots in game

  Reveal hidden contents

 

Expand  

You did not understand correctly

Add need to another file

 

DZE_CLICK_ACTIONS = [
    ["ItemGPS","Scan Nearby","if(isNil 'DZE_CLICK_ACTIONS_GPS_RANGE') then {DZE_CLICK_ACTIONS_GPS_RANGE = 1500;};DZE_CLICK_ACTIONS_ZOMBIE_COUNT = count ((position player) nearEntities ['zZombie_Base',DZE_CLICK_ACTIONS_GPS_RANGE]); DZE_CLICK_ACTIONS_MAN_COUNT = count ((position player) nearEntities ['CAManBase',DZE_CLICK_ACTIONS_GPS_RANGE]);cutText[format['Within %1 Meters: %2 AI/players, %3 zombies, %4 vehicles',DZE_CLICK_ACTIONS_GPS_RANGE,DZE_CLICK_ACTIONS_MAN_COUNT - DZE_CLICK_ACTIONS_ZOMBIE_COUNT,count ((position player) nearEntities ['zZombie_Base',DZE_CLICK_ACTIONS_GPS_RANGE]),count ((position player) nearEntities ['allVehicles',DZE_CLICK_ACTIONS_GPS_RANGE]) - DZE_CLICK_ACTIONS_MAN_COUNT],'PLAIN DOWN'];","true"],
    ["ItemGPS","Range Up"   ,"if(isNil 'DZE_CLICK_ACTIONS_GPS_RANGE') then {DZE_CLICK_ACTIONS_GPS_RANGE = 1500;};DZE_CLICK_ACTIONS_GPS_RANGE = (DZE_CLICK_ACTIONS_GPS_RANGE + 100) min 2500; cutText[format['GPS RANGE: %1',DZE_CLICK_ACTIONS_GPS_RANGE],'PLAIN DOWN'];","true"],
    ["ItemGPS","Range Down" ,"if(isNil 'DZE_CLICK_ACTIONS_GPS_RANGE') then {DZE_CLICK_ACTIONS_GPS_RANGE = 1500;};DZE_CLICK_ACTIONS_GPS_RANGE = (DZE_CLICK_ACTIONS_GPS_RANGE - 100) max 1000;  cutText[format['GPS RANGE: %1',DZE_CLICK_ACTIONS_GPS_RANGE],'PLAIN DOWN'];","true"],
	["ItemToolbox","Меню крафта","closeDialog 0;createDialog ""ZCraft"";","true"],
	["Binocular","View Distance 500m","setViewDistance 500;","true"],
    ["Binocular","View Distance 1000m","setViewDistance 1000;","true"],
    ["Binocular","View Distance 1500m","setViewDistance 1500;","true"],
    ["Binocular","View Distance 2000m","setViewDistance 2000;","true"],
    ["Binocular","View Distance 2500m","setViewDistance 2500;","true"],
    ["Binocular","View Distance 3000m","setViewDistance 3000;","true"],
    ["Binocular","View Distance 4000m","setViewDistance 4000;","true"],
    ["Binocular","View Distance 5000m","setViewDistance 5000;","true"],
    ["Binocular_Vector","View Distance 500m","setViewDistance 500;","true"],
    ["Binocular_Vector","View Distance 1000m","setViewDistance 1000;","true"],
    ["Binocular_Vector","View Distance 1500m","setViewDistance 1500;","true"],
    ["Binocular_Vector","View Distance 2000m","setViewDistance 2000;","true"],
    ["Binocular_Vector","View Distance 2500m","setViewDistance 2500;","true"],
    ["Binocular_Vector","View Distance 3000m","setViewDistance 3000;","true"],
    ["Binocular_Vector","View Distance 4000m","setViewDistance 4000;","true"],
    ["Binocular_Vector","View Distance 5000m","setViewDistance 5000;","true"],
	["ItemKnife","Harvest the weed","execVM 'scripts\cuthemp.sqf';","true"],
    ["ItemKiloHemp","Smoke that shit","execVM 'scripts\smoke.sqf';","true"],
	["ItemMachete","Harvest the weed","execVM 'scripts\cuthemp.sqf';","true"]
];

This file is in the overwrites\click_actions\config.sqf

Link to comment
Share on other sites

  • 1 month later...
  On 1/12/2017 at 6:58 PM, juandayz said:

DRUGS

Before star... you should add this items into your traders menus.

  Reveal hidden contents

1.Create this path: mpmissions\your instance\scripts\drugs\

2-Create the sqfs into the new path.

  Reveal hidden contents

3.Now you need extra_rc.hpp or deploy anything mod.

  Reveal hidden contents

 

4.Now we gonna create an epoch event to spawn weed fields.

  Reveal hidden contents

Now this is optional... since i do not use road blocks for anything... i just change it by weed plants.. so if u wanna do the same:

1-Open spawn_roadblocks.sqf located in dayz_server\compile\

then change this line:

_spawnveh = DZE_isWreck call BIS_fnc_selectRandom;

by:

_spawnveh = "Fiberplant";

2-open your init.sqf find this line to manage the amount of fiber plants spawned.

MaxDynamicDebris = 20; // was changed by juandayz to spawn fiberplants

 

Optional too. Create a police Drugs check point. (if player cross that check point with drugs police gonna remove it)

You will need create the map addon.. i just give you the code for remove drugs.

  Reveal hidden contents

 

Expand  
class Item Your item Value Here   [hello, what do you have to enter here?
Link to comment
Share on other sites

  • 1 month later...

Make sure that when you create the .sqf files, to change the name to: cuthemp.sqf not: cutehemp.sqf :)) Nice script, I just got it working on my server and that was the only error I found in the instructions. Thank you for posting. Can anybody give some advice about how to add a few ai to guard the weed plants? I'd like to make it a little bit more of a challenge to retrieve the goods. 

Link to comment
Share on other sites

  • 4 weeks later...

Upon Installing the script it marks on the map where the weed farms are. But it also generates a lot of random farms that aren't marked. As well as for me it only marks the location with a arrow marker. It doesn't have text telling any player what it is. Here is a example. 

https://gyazo.com/a359437af4af2a77cf8dceffe891403d

 

Any Idea on how to fix the marker text?

Link to comment
Share on other sites

  • 1 year later...

I wanted to add a little something else to this to make it a little more fun for my players...So here it is! This adds a green smoke grenade to the player and plays a sound file (Whatever you want to add)

The sound can be heard by players in the area within 100m (Tested and working) :)

Remove your old smoke.sqf and replace with this one if you want the smoke and sound.

 

smoke.sqf

/*
 rewritten by juandayz for epoch 1.6

modified by Reaper5150 //Added smoke and sound

credits to ZeroK00L...
*/
[] spawn {;
player removeMagazine 'ItemKiloHemp';
Remove_Drug_effects =
{
{
ppEffectDestroy _x;
} forEach (_this select 0);
ppEffectDestroy ppe2;
ppEffectDestroy ppe3;
setaperture 0;
};
_grenade = "SmokeShellGreen" createVehicle position player;
_grenade attachto [player, [0, 0.15, 0], "neck"];
_time = time;
_effects = [];
player playMoveNow "ActsPercMstpSnonWpstDnon_sceneBardak01";
[nil, player, rSAY, "YOURSOUNDNAME", 100] call RE;  //Add your own sound name here
while {true} do
{
ppe2 = ppEffectCreate ["chromAberration", 1555];
_effects = _effects + [ppe2];
ppe2 ppEffectAdjust [random 0.25,random 0.25,true];
ppe2 ppEffectCommit 1;
ppe2 ppEffectEnable true;
ppe3 = ppEffectCreate ["radialBlur", 1555];
_effects = _effects + [ppe3];
ppe3 ppEffectEnable true;
ppe3 ppEffectAdjust [random 0.02,random 0.02,0.15,0.15];
ppe3 ppEffectCommit 1;
sleep random(1);
[nil, player, rSAY, "YOURSOUNDNAME", 100] call RE; //And again here
uiSleep 10;
if (_time + 10 < time) exitWith {[_effects] call Remove_Drug_effects;};
};
};

To add sound: In your description.ext add under class CfgSounds {

 class YOURFILENAME{
       name="YOURFILENAME";
       sound[]={Sounds\YOURFILENAME.ogg,0.9,1};
       titles[] = {};
       };
};

Grab a sound you like from wherever and use Audacity to convert to a .ogg file

Add that .ogg to wherever you keep your sounds at or just make a new folder named Sounds and drop it in your mission root.

There you go, Thanks juandayz and ZeroK00L for this cool script :)

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...