Moin,
da ja immer mal wieder die Frage aufkommt wie man das Z-Inventar von Rucksäcken einfach ändern kann, habe ich mir mal ein paar Gedanken gemacht und hier mal eine Lösung.
1. Änderung in der fn_survival.sqf sucht nach dem folgenden Eintrag
Code
if (backpack player isEqualTo "") then {
life_maxWeight = LIFE_SETTINGS(getNumber,"total_maxWeight");
_bp = backpack player;
} else {
if (!(backpack player isEqualTo "") && {!(backpack player isEqualTo _bp)}) then {
_bp = backpack player;
life_maxWeight = LIFE_SETTINGS(getNumber,"total_maxWeight") + round(FETCH_CONFIG2(getNumber,"CfgVehicles",_bp,"maximumload") / 4);
};
};
und ersetzt es mit dem folgenden Eintrag
Code
if (backpack player isEqualTo "") then {
life_maxWeight = LIFE_SETTINGS(getNumber,"total_maxWeight");
_bp = backpack player;
} else {
if (!(backpack player isEqualTo "") && {!(backpack player isEqualTo _bp)}) then {
_bp = backpack player;
_load = 0;
_load = M_CONFIG(getNumber,"LifeCfgVehicles",_bp,"vItemSpace");
life_maxWeight = LIFE_SETTINGS(getNumber,"total_maxWeight") + _load;
};
};
Alles anzeigen
So dann müsst ihr nur noch die Einträge in der Config_Vehicle.hpp machen und schon seid ihr fertig.
Hier mal noch ein Beispiel:
Code
//Angriffspack
class B_AssaultPack_khk {
vItemSpace = 16;
conditions = "";
price = -1;
storeLiquid= -1;
textures[] = {};
};
class B_AssaultPack_cbr : B_AssaultPack_khk {};
class B_AssaultPack_dgtl : B_AssaultPack_khk {};
class B_AssaultPack_rgr : B_AssaultPack_khk {};
class B_AssaultPack_sgg : B_AssaultPack_khk {};
class B_AssaultPack_blk : B_AssaultPack_khk {};
class B_AssaultPack_mcamo : B_AssaultPack_khk {};
class B_AssaultPack_tna_f : B_AssaultPack_khk {};
//Feldpack
class B_FieldPack_cbr {
vItemSpace = 36;
conditions = "";
price = -1;
storeLiquid= -1;
textures[] = {};
};
class B_FieldPack_khk : B_FieldPack_cbr {};
class B_FieldPack_blk : B_FieldPack_cbr {};
class B_FieldPack_ocamo : B_FieldPack_cbr {};
class B_FieldPack_oucamo : B_FieldPack_cbr {};
class B_FieldPack_ghex_F : B_FieldPack_cbr {};
class B_FieldPack_oli : B_FieldPack_cbr {};
//Taktischer Rucksack
class B_TacticalPack_rgr {
vItemSpace = 56;
conditions = "";
price = -1;
storeLiquid= -1;
textures[] = {};
};
class B_TacticalPack_ocamo : B_TacticalPack_rgr {};
class B_TacticalPack_mcamo : B_TacticalPack_rgr {};
class B_TacticalPack_oli : B_TacticalPack_rgr {};
class B_TacticalPack_blk : B_TacticalPack_rgr {};
//Seesack
class B_Kitbag_mcamo {
vItemSpace = 76;
conditions = "";
price = -1;
storeLiquid= -1;
textures[] = {};
};
class B_Kitbag_sgg : B_Kitbag_mcamo {};
class B_Kitbag_cbr : B_Kitbag_mcamo {};
class B_Kitbag_rgr : B_Kitbag_mcamo {};
//Großer Rucksack
class B_Carryall_ocamo {
vItemSpace = 126;
conditions = "";
price = -1;
storeLiquid= -1;
textures[] = {};
};
class B_Carryall_oucamo : B_Carryall_ocamo {};
class B_Carryall_mcamo : B_Carryall_ocamo {};
class B_Carryall_oli : B_Carryall_ocamo {};
class B_Carryall_khk : B_Carryall_ocamo {};
class B_Carryall_cbr : B_Carryall_ocamo {};
class B_Carryall_ghex_f : B_Carryall_ocamo {};
//Bergen Rucksack
class B_Bergen_dgtl_f {
vItemSpace = 126;
conditions = "";
price = -1;
storeLiquid= -1;
textures[] = {};
};
class B_Bergen_hex_F : B_Bergen_dgtl_f {};
class B_Bergen_mcamo_F : B_Bergen_dgtl_f {};
class B_Bergen_tna_f : B_Bergen_dgtl_f {};
Alles anzeigen
Das einfach am Ende der Config_Vehicles einfügen. Ich hänge mal die erweiterte Standard Config an.
Gruß,
moeck