Jump to content
Sign in to follow this  
granQ

Add new optic to all weapons

Recommended Posts

So here is what I thought..

class CowsSlot;
class WeaponSlotsInfo;
class cfgWeapons
{
class RifleCore;
class Rifle: RifleCore
{
	class WeaponSlotsInfo: WeaponSlotsInfo
	{
		class CowsSlot : CowsSlot {compatibleItems[] += {"sfp_optic_aimpoint"};};
	};
};
};

But it overwrites so instead of adding one SFP optic, it just becomes that. How can I fix my code to avoid this?

EDIT: Updated the code, but still not working :/

Edited by granQ

Share this post


Link to post
Share on other sites

The problem is that you're specifying ONE optic for that slot, so the game says "Okay he only wants that scope only and therefore when I recognize that he's wanting to put that optic on the weapon, I will allow that. But if he wants an AMS on there, won't allow it".

So leave it as:

class CowsSlot : CowsSlot {};

When you config the optic it's already set for the CowsSlot so all you have to do is slip it on, if my mind is right with the new ability to it being universal, not restricted, which is what you're doing.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×