Jump to content
Sign in to follow this  
alleycat

Is it possible to white/blacklist addons for a server?

Recommended Posts

Is it possible to white/blacklist addons for a server?

Share this post


Link to post
Share on other sites

Does that allow optional mods or force to have the mods?

Share this post


Link to post
Share on other sites
Does that allow optional mods or force to have the mods?

the bikeys define what is allowed on the server

the actual addons that are required is done on a per mission basis and is defined in the mission automatically when developing the mission in the editor

Share this post


Link to post
Share on other sites
the actual addons that are required is done on a per mission basis and is defined in the mission automatically when developing the mission in the editor

I coded a mod that changes certain weapons and I would like to check if clients have it loaded. How would I do that? I dont see anything in the scripting commands for that and the addon is not written into the mission.sqm.

Share this post


Link to post
Share on other sites
I coded a mod that changes certain weapons and I would like to check if clients have it loaded. How would I do that? I dont see anything in the scripting commands for that and the addon is not written into the mission.sqm.

add something from the addon that creates addon dependancy, for example, if this is a weapons addon, it will most likely have a custom addon crate, place this somewhere on the map. It doesnt have to be anywhere where a player can find it, all you are after is adding to the mission.sqm addons or addonsauto. Alternatively manually add the required addon

The only way to do it scriptwise is to do something like the following

if !(IsDedicated) then
{
    If(isclass (configfile >> "cfgweapons" >> "classname")then{player setvariable ["HasAddon",TRUE,TRUE]}else{player setvariable ["HasAddon",FALSE,TRUE]};
};

Then on the machine you want to report on any clients that do not have the addon loaded, do something like this

{
    if((Isplayer _x)&& !(_x getvariable "HasAddon"))then{player sidechat format [" %1 does not have the required addon",name _x]};
}foreach playableunits;

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  

×