Jump to content

Recommended Posts

Cool idea, i like it. :)

But there is something that is not that cool in my opinion. Let's say someone wants a server without the advanced matchbox system so no count. In your code you set the configVariables - variable to true so the server owner is forced to have it turned on.

// Remove items		
	if (_removeMatches) then {  
		dayz_matchboxCount = true;
		["matches",0.3] call fn_dynamicTool;		// Use 30% of Matchbox
		player removeMagazine _BluntPapers;
	} else {
		player removeMagazine _BluntPapers;
	};

As I said, this is just a suggestion but couldn't you add another condition instead of changing it to true? So if someone doesn't like this system, this is automatically applied?

So either this

// Remove items		
	if (_removeMatches && (dayz_matchboxCount == false)) then {  
		player removeMagazine itemMatchbox;		//don't know if this classname is correct but you get the point i guess
		player removeMagazine _BluntPapers;
	} else {
		player removeMagazine _BluntPapers;
	};
	if (_removeMatches && dayz_matchboxCount) then {  
		["matches",0.3] call fn_dynamicTool;		// Use 30% of Matchbox
		player removeMagazine _BluntPapers;
	} else {
		player removeMagazine _BluntPapers;
	};

or this:

// Remove items		
	if (_removeMatches) then {  
		if (dayz_matchboxCount) then {
			["matches",0.3] call fn_dynamicTool;		// Use 30% of Matchbox
			player removeMagazine _BluntPapers;
		} else {
			player removeMagazine itemMatchbox;		//don't know if this classname is correct but you get the point i guess
			player removeMagazine _BluntPapers;
	} else {
		player removeMagazine _BluntPapers;
	};

I'd prefer that but that's your decision.
Greetz Relentless, keep it on! :)

Share this post


Link to post
Share on other sites

Yep, I see your point.  @DAmNRelentless

Haha to be honest I didn't think too many would care about

		dayz_matchboxCount = true;

being set to true.

I did start to do a variable for if a server had dayz_matchboxCount set to true to just remove the matchbox but it was lost while doing other parts of the script and i completely forgot about it haha.

I'll add something back in ;)

Thanks :D

 

 

Share this post


Link to post
Share on other sites

I put myself this script there was such an error

0:40:58 Error in expression <haracter,_magazines select 0,_magazines select 1];
_character setVariable["Serve>
 0:40:58   Error position: <select 1];
_character setVariable["Serve>
 0:40:58   Error Zero divisor
 0:40:58 File z\addons\dayz_server\compile\server_playerSync.sqf, line 64

Share this post


Link to post
Share on other sites

I was expecting it to include the other nearby player for some reason. I guess each person wanting to join in needs all the supplies? Seems like the point of a blunt is to share... how can you allow nearby players to partake in the blunt i rolled?

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

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...