dimon

[WIP] Weapon store

17 posts in this topic

PKBQwrR.jpg

 

 

4 people like this

Share this post


Link to post
Share on other sites
7 minutes ago, dscha said:

Isn't that A3?

 

Of course it is.

 

@dimon  Very cool man, looking forward to using this for sure.

Share this post


Link to post
Share on other sites
26 minutes ago, dscha said:

 

Isn't that A3?


Ah yeah, my bad, got confused by this

DKJOo4H.jpg

1 person likes this

Share this post


Link to post
Share on other sites

Same, i had to check the Water in the background, to be 100% sure.

Share this post


Link to post
Share on other sites

delete

Share this post


Link to post
Share on other sites

 

1 person likes this

Share this post


Link to post
Share on other sites

 

1 person likes this

Share this post


Link to post
Share on other sites

 

1 person likes this

Share this post


Link to post
Share on other sites
/*
	Description:
	Return base + children weapon
	
	Parameter(s):
		0: STRING - basic weapon class
	
	Returns:
	ARRAY
*/
	_array=[];
	_cfgArray = "isclass _x && {getnumber (_x >> 'scope') == 2} && {((configname _x) call bis_fnc_baseWeapon)==(_this call bis_fnc_baseWeapon)}" configclasses (configfile >> "cfgweapons");
	{
		_a pushback ( configName _x );
	} forEach _cfgArray;
	_array

 

Share this post


Link to post
Share on other sites
4 hours ago, dimon said:

/*
	Description:
	Return children weapon
	
	Parameter(s):
		0: STRING - basic weapon class
	
	Returns:
	ARRAY
*/
	_array=[];
	_cfgArray = "isclass _x && {getnumber (_x >> 'scope') == 2} && {((configname _x) call bis_fnc_baseWeapon)==(_this call bis_fnc_baseWeapon)}" configclasses (configfile >> "cfgweapons");
	{
		_a pushback ( configName _x );
	} forEach _cfgArray;
	_array

 

 

Just a heads up, but, configClasses only returns classes so there is no need for the isClass check. Additionally, you can just use the apply command instead of using forEach after creating a new array:

("getNumber (_x >> 'scope') == 2 && {(configName _x call bis_fnc_baseWeapon) == (_this call bis_fnc_baseWeapon)}" configClasses (configfile >> "cfgWeapons")) apply {configName _x};


 

2 people like this

Share this post


Link to post
Share on other sites

 

Share this post


Link to post
Share on other sites

Looks Fantastic any ideas on when it will be available? 

Share this post


Link to post
Share on other sites

 

 

Share this post


Link to post
Share on other sites

looks great! i love the animated camera.

 

would love to know what the plans are for release too. looks like it's fun to use.

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