Supporters add on implementation

Re: Supporters add on implementation

« Reply #45 posted: Apr 23, 2015, 09:49 AM »
I actually haven't tried to add wasteland items but something like what creampie said and just chuck some of those in there. Pleas tell the result and i can add them in as an example.

Re: Supporters add on implementation

« Reply #46 posted: Apr 24, 2015, 01:51 AM »
Im trying to set up the Gear /addon/

But i cant add extra food / water, im trying this but with no success, probably because its not main inventory ?



Im trying to disable food / water for certain levels but cant figure out how to do it.
You should check out what Lodac has done with TOParma.  I believe he has disabled the survival stuff per donator level.  His stuff is on Github.

Re: Supporters add on implementation

« Reply #47 posted: Apr 24, 2015, 05:53 AM »
You will need to add this to place items in the players "inventory"

Code: [Select]
[MF_ITEMS_CANNED_FOOD, 1] call mf_inventory_add;
[MF_ITEMS_WATER, 1] call mf_inventory_add;
[MF_ITEMS_REPAIR_KIT, 1] call mf_inventory_add;

Not sure if you can selectively disable the init survival stuff ...

Thanks CREAMPIE managed to do it!

Regarding to disable food / water , i thinked better and ill not disable it so people can enjoy the survival feature.

I actually haven't tried to add wasteland items but something like what creampie said and just chuck some of those in there. Pleas tell the result and i can add them in as an example.

Here you go Cael817

Quote
if (((getPlayerUID _player) in call gearLevel10)) then {

_player setVariable ["cmoney", (_player getVariable "cmoney") + 5000, true]; [MF_ITEMS_CANNED_FOOD, 1] call mf_inventory_add; [MF_ITEMS_WATER, 1] call mf_inventory_add; [MF_ITEMS_REPAIR_KIT, 1] call mf_inventory_add; [MF_ITEMS_SPAWN_BEACON, 1] call mf_inventory_add;



Re: Supporters add on implementation

« Reply #48 posted: Apr 24, 2015, 10:17 AM »
thanks,

You could set the food/water values to bleed off slower, think its in the survival/init (don't have the files in front of me) but you will see which ones a re relevant in that script i believe
  • Offline LouD
  • Silent but deadly ;)
  • Moderator
  • Veteran
  • ******
  • Posts: 1415

Re: Supporters add on implementation

« Reply #49 posted: Apr 24, 2015, 10:21 AM »
thanks,

You could set the food/water values to bleed off slower, think its in the survival/init (don't have the files in front of me) but you will see which ones a re relevant in that script i believe
It's here: https://github.com/A3Wasteland/ArmA3_Wasteland.Altis/blob/Development_main/client/functions/initSurvival.sqf#L10-L13

Re: Supporters add on implementation

« Reply #50 posted: Apr 24, 2015, 04:46 PM »
Yap but that way will affect everyone
  • Offline PAR4NA
  • First Blood
  • ***
  • Posts: 76
  • www.CLANPUTOS.org

Load "addons\supporters\loadouts.sqf" in external

« Reply #51 posted: Oct 13, 2015, 08:35 PM »
How do you configure the server to the external file?

Re: Supporters add on implementation

« Reply #52 posted: May 05, 2016, 10:00 AM »
I tried to get this going but it just comes up with no gear to load. I was trying to use Cael817 external settings folder way, it works if uid's are stored in the mission file but doesn't when they are only stored in settings folder.
we are using inidb as well for database. Any suggestions would be appreciated.

if (!isServer) exitWith {};

externalConfigFolder = "\A3Wasteland_settings";

if (loadFile (externalConfigFolder + "\gear.sqf") != "") then
{
   call compile preprocessFileLineNumbers (externalConfigFolder + "\gear.sqf");
}
else
{

Can any of you guys see the problem here?
Why this does not access the external file.
  • Offline CREAMPIE
  • Armaholic
  • Veteran
  • ******
  • Posts: 1085
  • ^_^;;

Re: Supporters add on implementation

« Reply #53 posted: May 18, 2016, 10:32 AM »
I tried to get this going but it just comes up with no gear to load. I was trying to use Cael817 external settings folder way, it works if uid's are stored in the mission file but doesn't when they are only stored in settings folder.
we are using inidb as well for database. Any suggestions would be appreciated.

Code: [Select]
if (!isServer) exitWith {};

externalConfigFolder = "\A3Wasteland_settings";

if (loadFile (externalConfigFolder + "\gear.sqf") != "") then
{
call compile preprocessFileLineNumbers (externalConfigFolder + "\gear.sqf");
}
else
{

Can any of you guys see the problem here?
Why this does not access the external file.

Please use codeblocks when showing code - makes it a ton easier to read ;) - it's the # sign on the toolbar.

In my last commits I use a flag in extDB to check if a player is a supporter or not and loading the VAS based on that switch.

It won't be very hard to change the switch to a value check for pre-set loadouts e.g.

in theory

if supporterLevel = 0 do nothing
If supporterLevel = 1 run loadout1.sqf
if supporterLevel = 2 run loadtou2.sqf

^^ easily done.then you just flag the player for a value in the DB and voila ! each respawn they get the loadout you set it to.


- from the grassy knoll -

Re: Supporters add on implementation

« Reply #54 posted: Jul 27, 2016, 09:07 PM »
Hey i want to implement this feature (virtual Arsenal) for our moderators to say thank you for their work :) Are there any
instructions (comments) how to implement this script ?

Thank you
Kordie1