Jump to content
  • 0

RHS mod adding classnames to loot-table?


PredatoRX91

Question

So can somebody help me, i`m trying to add weapon, and items from the RHS mod to Epoch loot-table.

I have the classnames for the RHS, and found the CfgLootTable, but what confuses me is that there are so many classes, like:

 

class Rifle
	{
		items[] = {
				{ { "AKM_EPOCH", "weapon" }, 3 },
				{ { "sr25_epoch", "weapon" }, 4 },
				{ { "Rifle_arifle_Katiba_F", "CfgLootTable" }, 5 },
				{ { "Rifle_arifle_MX_GL_F", "CfgLootTable" }, 6 },
				{ { "Rifle_l85a2_epoch", "CfgLootTable" }, 6 },
				{ { "m4a3_EPOCH", "weapon" }, 7 },
				{ { "Rifle_m16_EPOCH", "CfgLootTable" }, 7 },
				{ { "Rifle_arifle_Mk20_F", "CfgLootTable" }, 8 },
				{ { "Rifle_arifle_TRG21_F", "CfgLootTable" }, 8 },
				{ { "arifle_SDAR_F", "weapon" }, 9 },
				{ { "Rollins_F", "weapon" }, 9 },
				{ { "SMG_01_F", "weapon" }, 9 },
				{ { "SMG_02_F", "weapon" }, 9 },
				{ { "hgun_PDW2000_F", "weapon" }, 10 }
		};
	};

	class Rifle_l85a2_epoch
	{
		items[] = {
				{ { "l85a2_epoch", "weapon" }, 1 },
				{ { "l85a2_pink_epoch", "weapon" }, 1 },
				{ { "l85a2_ugl_epoch", "weapon" }, 1 }
		};
	};

with this you have the class rifle, but why is the rifle l85a2 in another? i mean that confuses me, where do i need to add the classes? It sounds noobish, but just can that somebody explain, i would appreciate. Cheers!

 

or, just create a new class called rhs_weapons and add all weapons in that class?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Heres an example for you

http://pastebin.com/NMeT8G4r

http://pastebin.com/8GGJ6wg4

I didnt get your question exactly, but in my example you can see that I added separate classes for RHS loot and added in on top of another in MainTable. This shortens the time spent and gives you ability to control spawn rate for all type of items, neither detailed one by one.

 

P.S You can also go the most easiest way: instead of adding to each MainTable class, you can add to existing LootTable. aka adding RHSRifles to Rifles in LootTables - but this may cause problems in balancing loot chances overall.

Link to comment
Share on other sites

  • 0
7 hours ago, Demellion said:

Heres an example for you

http://pastebin.com/NMeT8G4r

http://pastebin.com/8GGJ6wg4

I didnt get your question exactly, but in my example you can see that I added separate classes for RHS loot and added in on top of another in MainTable. This shortens the time spent and gives you ability to control spawn rate for all type of items, neither detailed one by one.

 

P.S You can also go the most easiest way: instead of adding to each MainTable class, you can add to existing LootTable. aka adding RHSRifles to Rifles in LootTables - but this may cause problems in balancing loot chances overall.

Thanks you answered my question, that was what confused me. I`m gonna follow your example.

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...