Welcome to The Forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies and more


Need help with server


epp

Recommended Posts

Heya, wondering how to change values on fences/gates on my server? Like i've played on a server with 2xHP on fences/gates, but i'm unsure if this is a mod or if you can change values in some cfg? 
Been googling this but can't find any answers to it..

If anyone knows i'd be thankfull for help

Share this post


Link to post
Share on other sites

This would be a really long answer, however, this can be modded. If you have already extracted your game data to P: drive, you can find the config.cpp for the item(s) you are looking for. Then, copy the section for the items and the health of the item, edit it to whatever you would like it to be and pack that into your mod. You can also change what tools are allowed for raiding? And decrease the damage they inflict (which would be a much shorter list of changes)

Example:

class Health
	{
		hitpoints = 150;
			healthLevels[] = {{1.0,{"DZ\Characters\gloves\data\WorkingGloves.rvmat"}},{0.7,{"DZ\Characters\gloves\data\WorkingGloves.rvmat"}},{0.5,{"DZ\Characters\gloves\data\WorkingGloves_damage.rvmat"}},{0.3,{"DZ\Characters\gloves\data\WorkingGloves_damage.rvmat"}},{0.0,{"DZ\Characters\gloves\data\WorkingGloves_destruct.rvmat"}}};
	};

Above is from the Gloves config.cpp file. As you can see the section that has hitpoints shows how much HP the gloves have. If you changed 150 to say 900, it would take much longer to ruin a pair of gloves. These are not changes you can just make to the game itself, you would have to create your own mod/script to change it - then upload to the workshop because you would also need the clients connecting to your server to also have their game make these changes.

There are many many many sources online on how to create mods if you have never done so. Spurgle has a really good playlist on youtube to get you started.

Best of luck!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...