Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

Sy8282

Loot classification

Recommended Posts

Anyone know if it's possible to set which category of loot spawns where,

 example shops/supermarket spawn food and only food

Also want to remove military loot from rify and only clothing and ammo in coastal checkpoints ideally only want svd and m4 at helicrash sites is this possible in the current state or I'm  wildly optimistic?

 

Share this post


Link to post
Share on other sites
2 hours ago, Sy8282 said:

Anyone know if it's possible to set which category of loot spawns where,

 example shops/supermarket spawn food and only food

Also want to remove military loot from rify and only clothing and ammo in coastal checkpoints ideally only want svd and m4 at helicrash sites is this possible in the current state or I'm  wildly optimistic?

 

Of course it is possible but you'll have to edit a few file for this to work the way you want.  

This is a code for the Land_City_Stand_Grocery building. This is in the mapgroupproto.xml

In here you see Category for tools for container and clothes. 

<group name="Land_City_Stand_Grocery">
				<usage name="Town" />
				<container name="lootFloor" lootmax="3">
						<category name="tools" />
						<category name="containers" />
						<category name="clothes" />
						<tag name="floor" />
						<point pos="-1.561227 -1.680985 1.228264" range="0.358607" height="0.893983" />
						<point pos="-3.363296 -1.680895 0.501176" range="0.429199" height="0.682532" />
						<point pos="-2.372593 -1.681643 -1.428370" range="0.495631" height="1.239078" />
						<point pos="-0.778535 -1.681820 -1.109641" range="0.519043" height="1.297608" />
						<point pos="-2.506088 -1.680905 0.955515" range="0.544032" height="1.357224" />
						<point pos="-2.483529 -1.681297 -0.337439" range="0.560023" height="1.398770" />
				</container>
				<container name="lootshelves" lootmax="3">
						<category name="tools" />
						<category name="containers" />
						<category name="clothes" />
						<category name="food" />
						<category name="books" />
						<tag name="shelves" />
						<point pos="-0.451944 -0.840236 1.995806" range="0.100000" height="0.250000" />
						<point pos="-0.198640 -0.840414 1.548931" range="0.134375" height="0.264999" />
						<point pos="-1.732460 -1.595008 2.026402" range="0.134375" height="0.260000" />
						<point pos="-1.344203 -0.840067 2.053046" range="0.134375" height="0.265000" />
						<point pos="-3.583044 -0.817169 -0.670148" range="0.203125" height="0.506168" />
						<point pos="-3.354153 -1.635346 -1.005063" range="0.234620" height="0.585468" />
						<point pos="-3.408242 -0.816479 1.730816" range="0.237500" height="0.505487" />
						<point pos="-3.472540 -0.817552 -1.882690" range="0.306250" height="0.506041" />
						<point pos="-1.462088 -1.114717 -2.131492" range="0.410400" height="0.618620" />
				</container>
				<container name="lootweapons" lootmax="2">
						<category name="weapons" />
						<category name="explosives" />
						<point pos="-0.159887 -1.595422 1.544025" range="0.100000" height="0.250000" />
						<point pos="-1.715902 -0.460019 2.003240" range="0.100000" height="0.250000" />
						<point pos="-0.791437 -1.220172 2.013781" range="0.100000" height="0.250000" />
						<point pos="-2.575230 -1.219858 2.050012" range="0.134375" height="0.265000" />
						<point pos="-2.595216 -1.635855 -2.270949" range="0.240723" height="0.601807" />
						<point pos="-0.571106 -1.114852 -2.075961" range="0.437256" height="1.093140" />
						<point pos="-3.374215 1.112210 1.570388" range="0.693848" height="1.730423" />
						<point pos="-2.836769 1.111192 -1.515096" range="1.143066" height="1.999837" />
				</container>
		</group>

So you could edit to only have Food category. 

<group name="Land_City_Stand_Grocery">
				<usage name="Town" />
				<container name="lootFloor" lootmax="3">
						<category name="food" />
						<tag name="floor" />
						<point pos="-1.561227 -1.680985 1.228264" range="0.358607" height="0.893983" />
						<point pos="-3.363296 -1.680895 0.501176" range="0.429199" height="0.682532" />
						<point pos="-2.372593 -1.681643 -1.428370" range="0.495631" height="1.239078" />
						<point pos="-0.778535 -1.681820 -1.109641" range="0.519043" height="1.297608" />
						<point pos="-2.506088 -1.680905 0.955515" range="0.544032" height="1.357224" />
						<point pos="-2.483529 -1.681297 -0.337439" range="0.560023" height="1.398770" />
				</container>
				<container name="lootshelves" lootmax="3">
						<category name="food" />
						<tag name="shelves" />
						<point pos="-0.451944 -0.840236 1.995806" range="0.100000" height="0.250000" />
						<point pos="-0.198640 -0.840414 1.548931" range="0.134375" height="0.264999" />
						<point pos="-1.732460 -1.595008 2.026402" range="0.134375" height="0.260000" />
						<point pos="-1.344203 -0.840067 2.053046" range="0.134375" height="0.265000" />
						<point pos="-3.583044 -0.817169 -0.670148" range="0.203125" height="0.506168" />
						<point pos="-3.354153 -1.635346 -1.005063" range="0.234620" height="0.585468" />
						<point pos="-3.408242 -0.816479 1.730816" range="0.237500" height="0.505487" />
						<point pos="-3.472540 -0.817552 -1.882690" range="0.306250" height="0.506041" />
						<point pos="-1.462088 -1.114717 -2.131492" range="0.410400" height="0.618620" />
				</container>
		</group>

This will spawn only food.

You can find and add more category in cfglimitsdefinition.xml

and

if you want to add more usage, you can add them in cfglimitsdefinitionuser.xml

Edited by XxFri3ndlyxX
  • Thanks 1

Share this post


Link to post
Share on other sites
3 hours ago, XxFri3ndlyxX said:

Of course it is possible but you'll have to edit a few file for this to work the way you want.  

This is a code for the Land_City_Stand_Grocery building. This is in the mapgroupproto.xml

In here you see Category for tools for container and clothes. 


<group name="Land_City_Stand_Grocery">
				<usage name="Town" />
				<container name="lootFloor" lootmax="3">
						<category name="tools" />
						<category name="containers" />
						<category name="clothes" />
						<tag name="floor" />
						<point pos="-1.561227 -1.680985 1.228264" range="0.358607" height="0.893983" />
						<point pos="-3.363296 -1.680895 0.501176" range="0.429199" height="0.682532" />
						<point pos="-2.372593 -1.681643 -1.428370" range="0.495631" height="1.239078" />
						<point pos="-0.778535 -1.681820 -1.109641" range="0.519043" height="1.297608" />
						<point pos="-2.506088 -1.680905 0.955515" range="0.544032" height="1.357224" />
						<point pos="-2.483529 -1.681297 -0.337439" range="0.560023" height="1.398770" />
				</container>
				<container name="lootshelves" lootmax="3">
						<category name="tools" />
						<category name="containers" />
						<category name="clothes" />
						<category name="food" />
						<category name="books" />
						<tag name="shelves" />
						<point pos="-0.451944 -0.840236 1.995806" range="0.100000" height="0.250000" />
						<point pos="-0.198640 -0.840414 1.548931" range="0.134375" height="0.264999" />
						<point pos="-1.732460 -1.595008 2.026402" range="0.134375" height="0.260000" />
						<point pos="-1.344203 -0.840067 2.053046" range="0.134375" height="0.265000" />
						<point pos="-3.583044 -0.817169 -0.670148" range="0.203125" height="0.506168" />
						<point pos="-3.354153 -1.635346 -1.005063" range="0.234620" height="0.585468" />
						<point pos="-3.408242 -0.816479 1.730816" range="0.237500" height="0.505487" />
						<point pos="-3.472540 -0.817552 -1.882690" range="0.306250" height="0.506041" />
						<point pos="-1.462088 -1.114717 -2.131492" range="0.410400" height="0.618620" />
				</container>
				<container name="lootweapons" lootmax="2">
						<category name="weapons" />
						<category name="explosives" />
						<point pos="-0.159887 -1.595422 1.544025" range="0.100000" height="0.250000" />
						<point pos="-1.715902 -0.460019 2.003240" range="0.100000" height="0.250000" />
						<point pos="-0.791437 -1.220172 2.013781" range="0.100000" height="0.250000" />
						<point pos="-2.575230 -1.219858 2.050012" range="0.134375" height="0.265000" />
						<point pos="-2.595216 -1.635855 -2.270949" range="0.240723" height="0.601807" />
						<point pos="-0.571106 -1.114852 -2.075961" range="0.437256" height="1.093140" />
						<point pos="-3.374215 1.112210 1.570388" range="0.693848" height="1.730423" />
						<point pos="-2.836769 1.111192 -1.515096" range="1.143066" height="1.999837" />
				</container>
		</group>

So you could edit to only have Food category. 


<group name="Land_City_Stand_Grocery">
				<usage name="Town" />
				<container name="lootFloor" lootmax="3">
						<category name="food" />
						<tag name="floor" />
						<point pos="-1.561227 -1.680985 1.228264" range="0.358607" height="0.893983" />
						<point pos="-3.363296 -1.680895 0.501176" range="0.429199" height="0.682532" />
						<point pos="-2.372593 -1.681643 -1.428370" range="0.495631" height="1.239078" />
						<point pos="-0.778535 -1.681820 -1.109641" range="0.519043" height="1.297608" />
						<point pos="-2.506088 -1.680905 0.955515" range="0.544032" height="1.357224" />
						<point pos="-2.483529 -1.681297 -0.337439" range="0.560023" height="1.398770" />
				</container>
				<container name="lootshelves" lootmax="3">
						<category name="food" />
						<tag name="shelves" />
						<point pos="-0.451944 -0.840236 1.995806" range="0.100000" height="0.250000" />
						<point pos="-0.198640 -0.840414 1.548931" range="0.134375" height="0.264999" />
						<point pos="-1.732460 -1.595008 2.026402" range="0.134375" height="0.260000" />
						<point pos="-1.344203 -0.840067 2.053046" range="0.134375" height="0.265000" />
						<point pos="-3.583044 -0.817169 -0.670148" range="0.203125" height="0.506168" />
						<point pos="-3.354153 -1.635346 -1.005063" range="0.234620" height="0.585468" />
						<point pos="-3.408242 -0.816479 1.730816" range="0.237500" height="0.505487" />
						<point pos="-3.472540 -0.817552 -1.882690" range="0.306250" height="0.506041" />
						<point pos="-1.462088 -1.114717 -2.131492" range="0.410400" height="0.618620" />
				</container>
		</group>

This will spawn only food.

You can find and add more category in cfglimitsdefinition.xml

and

if you want to add more usage, you can add them in cfglimitsdefinitionuser.xml

Awesome, that's just what I wanted to know cheers buddy

Share this post


Link to post
Share on other sites

×