Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make clientsided values configurable in GoT_Settings.sqf #109

Open
JoSchaap opened this issue Aug 15, 2013 · 6 comments
Open

Make clientsided values configurable in GoT_Settings.sqf #109

JoSchaap opened this issue Aug 15, 2013 · 6 comments
Assignees
Milestone

Comments

@JoSchaap
Copy link
Owner

options to Enable/Disable

  • survival system (default:on) (will also remove food/water from stores and players)

options to configure

  • starting money
  • stating inventory (food,water,fuel,repairkit)
  • starting hp
  • speed of waterdrain
  • speed of fooddrain
  • speed of HP drain when starving/dehydrated
@ghost ghost assigned JoSchaap Aug 15, 2013
@MercyfulFate
Copy link

Maybe have a "defaults" system that we can override in the config.... something as simple as

if (isNil "initial_money") then { initial_money = 200 };

then in config you can define "initial_money" to what ever you want (which presumably will be evaluated before anything else).

we can always create a function like
in spawnAction.sqf:
["initial_money", 200] call fnc_default_or_set;

in config.sqf:
initial_money = 100;

the Main benefit of this is basically anything implemented in this fashion can be configured via config.sqf. Then everyone can, for instance enable or disable items according to their liking without us having to explicitly define them as configurable.

@JoSchaap
Copy link
Owner Author

that was the idea but then by using the external config file so admins no longer have to tear appart the PBO to change these settings :)

https://github.com/JoSchaap/Arma3_Binary_PBO/blob/master/Sandbox56_GoT_Wasteland_V23_A3-Stratis/GoT_Wasteland-config.sqf

@MercyfulFate
Copy link

I know, thats why i suggested it :).

This style should be a drop-in replacement for anything you want to make configurable with the current setup.
if (isNil "initial_money") then { initial_money = 200 };

@AgentRev
Copy link

I would suggest a GoT_Wasteland-default-config.sqf file at the root of the PBO that will be first executed, then after, if GoT_Wasteland-config.sqf exists, it will be executed too, thus overriding previous values.

@JoSchaap
Copy link
Owner Author

good idea 👍

@SCETheFuzz
Copy link

Aww but I love spending my weekends tearing apart Jo's work :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants