Jump to content
  • 0

Making a CFG file to add hemp into cherno!


Graver

Question

Okay so we are working on adding hemp plants into cherno for our server.  So we have our weed.pbo with a config reading...

class CfgPatches {

	class p_fiberPlant_EP1 {
		units[] = {"p_fiberPlant_EP1"};
		weapons[] = {};
		requiredVersion = 0.1;
		requiredAddons[] = {};
	};
};
class CfgVehicles {
	class House;
	class Weed_Plant: House {
		model = "\Expansion\Addons\plants_e\Plant\p_fiberPlant_EP1.p3d";
		scope = 2;
		displayName = "Weed_Plant";
		accuracy = 0.1;
		vehicleClass = "p_fiberPlant_EP1";
		simulation = "house";
		cost = 0;
		armor = 300;
		placement = "slope";
	};
}; 

and it works great in the editor and single player.  But we just cant seem to figure out how to get it over to a server.  Any help would be super appreciated!

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

we are wondering also if this needs to be it's own PBO or would we put it in the mission or server pbo...  basically we have hit a wall haha...  We currently have it set up in its own .pbo but that does not seem to be getting called by the server...  Maybe we need a script somewhere to tell the server to take action on the new .pbo?

 

/thinking out loud

 

ALSO: 

Sorry this should have been an edit not a new post!

Link to comment
Share on other sites

  • 0

I dont know about plants...if they are 'vehicles' or anything else...BUT....if they are vehicles....and you want to custom spawn them, my guess is that this should work:

 

 

put your weed.pbo file here  \@DayZ_Epoch_Server\addons\weed.pbo

should be right next to the dayz_server.pbo.

 

Then in your \MPMissions\DayZ_Epoch_11.Chernarus\dynamic_vehicle.sqf

at the bottom add :

.......
["p_fiberPlant_EP1",1]
];

Then in the database add a vehicle with class name: p_fiberPlant_EP1   anywhere you want on the map.

Spawn in game and check if it worked.

 

Thats how i spawned a huge aircarrier on the map.....but like i said....that was a vehicle.

Link to comment
Share on other sites

  • 0

Configs need to go into the mission, because not just the server but all your players would need the definition for custom stuff and you can't edit @dayz_epoch without your clients downloading your forked version.

So you are limited to missionconfigfiles and those are kinda limited in terms of can & can't do certain things.

 

Spawning itself can happen in either server or missionfiles, but to keep the missionsize small, do it via script in dayz_server ;)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...