-
Notifications
You must be signed in to change notification settings - Fork 10
Loadout guidelines
HazardousChurch edited this page May 12, 2020
·
9 revisions
TMF wiki page covering loadouts and assigngear
Instead of
magazines[] = {
"30Rnd_556x45_Stanag",
"30Rnd_556x45_Stanag",
"30Rnd_556x45_Stanag",
"HandGrenade"
};do
magazines[] = {
LIST_3("30Rnd_556x45_Stanag"),
"HandGrenade"
};NOTE: These macros are only available from LIST_1(x) to LIST_20(x)
Instead of
items[] = {
LIST_5("ACE_fieldDressing"), \
LIST_1("ACE_morphine"), \
LIST_1("ACE_tourniquet")
};do
items[] = {MEDICAL_R};NOTE: Following macros are available: MEDICAL_R, MEDICAL_CLS, MTR_GEAR, FAC_GEAR and MEDICAL_M
- Loadout contributions should use the macros listed above as much as possible.
- Loadout contributions must follow guidelines listed in Contribution-guidelines.
- Loadout contributions must list used addons in the header.
- Loadout contributions should list the loadout author in the header.
- Loadout contributions must not throw errors or in the default mission template. Make sure to check
TMF autotest. - Loadout contributions must always occur from separate forks and branches, via pull request.
- Loadout contributions must follow guidelines listed at the top of this page.
- Loadout contributions must use the provided example_loadout.hpp.
- Loadout contributions must successfully build using PboProject.
- Make sure your fork is up to date by right clicking the
masterbranch underupstreamin theRemotelist and selectingFast-forward master to upstream/master - Right click
masterunderlocaland selectCreate branch here. Name itloadouts/classname - Copy your
loadout.hppfile intoP:\x\arc_misc\addons\tmf_loadouts\loadouts. It must be namedclassname.hpp - Open
P:\x\arc_misc\addons\tmf_loadouts\CfgLoadout.hppand add your loadout using the following template, remove comments:
/* Example classnames:
us_army_2010
ru_marines_2000_winter
us_rangers_2010_mk17
uk_army_2000_ddpm
*/
class classname {
//Example displayname: US Marines (2020, UCP, M27 IARs)
displayName = "mydisplayname (year, appearance, notable equipment)";
/* Available categories:
"Armaverse Factions"
"Russia"
"USA"
"Western Factions"
"Eastern Factions"
*/
category = "category name"; // Remove this line to put loadout in "Other loadouts" category.
tooltip = "Author: authorname \n\nNote: my note"; // Tooltip displayed when hovered over in editor. \n indicates newline
#include "loadouts\classname.hpp"
};- Open up PboProject and Crunch arc_misc. Resolve any resulting errors.
- In GitKraken there should now appear
n file change in working directory [View change]at the top right. PressView change - Make sure all edited files are listed, then press
Stage all changes - At the bottom right enter
Added loadout: classnameand optionally add description into the field below. Then press theCommit changes to n filebutton. - At the top press
Pushto upload the changes to github. - You will be prompted with
What remote/branch should "branchname" push to and pull from?Selectoriginand pressSubmit. - Go to New pull request on github. Change
compareto your uploaded branch, you may have to refresh the page. PressCreate pull request. Enter the same info here as in Stage 7. PressCreate pull request.
Your pull request should now be up for review by the repo maintainers, who will hopefully merge it or provide feedback soon.