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

Regroup in one place all exact slot names #262

Closed
Kayoshu opened this issue Dec 17, 2024 · 2 comments
Closed

Regroup in one place all exact slot names #262

Kayoshu opened this issue Dec 17, 2024 · 2 comments

Comments

@Kayoshu
Copy link
Contributor

Kayoshu commented Dec 17, 2024

Exact slot names are used with BIS_fnc_inString for vietnamese faces & climbing (might expand later with other functionnality)

for faces, it's hardcoded in https://github.com/gerard-sog/arma3-macvsog-columbia-scripts/blob/main/functions/player/fn_faces.sqf#L32
for climbing, it's pointing to a cba settings https://github.com/gerard-sog/arma3-macvsog-columbia-scripts/blob/main/functions/climbing/fn_addTreeClimbingAction.sqf#L28C19-L28C59

We could replace those test with simple boolean variables in scripts and in initPLayerLocal.sqf set variables according to the slot name, and have all tracked in one place, something like:

switch (role player) do
{
case role1 {
climbingAllowed = false;
usfaces = true;
}
case role2 {
climbingAllowed = true;
usfaces = true;
}
default {
usfaces = false;
}
}

@Kayoshu
Copy link
Contributor Author

Kayoshu commented Jan 25, 2025

Proof of concept #275

All abilities are defined in functions/init/init_colsog_PlayerLocalVar.sqf
called at initplayerlocal AND onplayerespawn

  • No more setVariable in eden for babel
  • canClimb not defined anymore with CBA
  • headers for babel functions

@gerard-sog
Copy link
Owner

#277

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

No branches or pull requests

2 participants