1. Dashboard
  2. Forum
    1. Unerledigte Themen
  3. Downloads
  4. Galerie
    1. Alben
  5. Toolbox
    1. Passwort Generator
    2. Portchecker
  6. Mitglieder
    1. Mitgliedersuche
    2. Benutzer online
    3. Trophäen
    4. Team
Fr: 16 Mai 2025
  • Anmelden oder registrieren
  • Suche
Dieses Thema
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Forum
  • Dateien
  • Seiten
  • Bilder
  • Erweiterte Suche

Schön, dass du den Weg zu NodeZone.net gefunden hast! Aktuell bist du nicht angemeldet und kannst deshalb nur eingeschränkt auf unsere Community zugreifen. Um alle Funktionen freizuschalten, spannende Inhalte zu entdecken und dich aktiv einzubringen, registriere dich jetzt kostenlos oder melde dich mit deinem Account an.

Anmelden oder registrieren
    1. Nodezone.net Community
    2. Forum
    3. Gameserver & Hosting
    4. ArmA Series - ArmA 3 / Reforger
    5. Hilfeforum

    Backpack Weight, need help ? (English & Ressource)

    • Edwin
    • 7. Oktober 2016 um 19:19
    • Geschlossen
    • Erledigt
    • Edwin
      Anfänger
      Reaktionen
      12
      Trophäen
      9
      Beiträge
      38
      • 7. Oktober 2016 um 19:19
      • #1

      Hello to you all, my favorite German community.

      I try at present to define for every backpack a storage capacity.

      Here is at present of what I managed to make:

      ----------------------------------------------------------------------------------------------------------------------------------------------------------

      In core/fn_survival.sqf, i remove without replace :

      Code
      /* Adjustment of carrying capacity based on backpack changes */
          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);
              };
      
      
      
      
          };
      Alles anzeigen


      ----------------------------------------------------------------------------------------------------------------------------------------------------------

      In core/configuration.sqf, i replace :

      Code
      life_maxWeight = LIFE_SETTINGS(getNumber,"total_maxWeight");  
      life_carryWeight = 0; //Represents the players current inventory weight (MUST START AT 0).

      By that :

      Code
      life_maxWeight = LIFE_SETTINGS(getNumber,"total_maxWeight"); //Static variable representing the players max carrying weight on start.  
      life_minWeight = life_maxWeight; //Identifies the max carrying weight (gets adjusted throughout game when wearing different types of clothing).  
      life_carryWeight = 0; //Represents the players current inventory weight (MUST START AT 0).

      ----------------------------------------------------------------------------------------------------------------------------------------------------------

      In core/functions/fn_loadGear.sqf, i replace :

      Code
      life_maxWeight = 24;


      By that :

      Code
      life_maxWeight = LIFE_SETTINGS(getNumber,"total_maxWeight");  
      
      
      
      
      /* Réglage de la capacité en fonction des sac à dos */  
      [] spawn   
      {  
      	while{true} do   
      	{  
      		waitUntil {!(EQUAL(backpack player,""))};  
      		_bp = backpack player;  
      		_cfg = FETCH_CONFIG2(getNumber,CONFIG_VEHICLES,_bp,"maximumload");  
      		_load = round(_cfg / 4);  
      		if(EQUAL(backpack player,"B_AssaultPack_khk")) then { _load = 30; };			  
      		if(EQUAL(backpack player,"B_AssaultPack_Kerry")) then { _load = 30; };  
      		if(EQUAL(backpack player,"B_AssaultPack_blk")) then { _load = 30; };  
      		if(EQUAL(backpack player,"B_AssaultPack_cbr")) then { _load = 30; };			  
      		if(EQUAL(backpack player,"B_AssaultPack_sgg")) then { _load = 30; };  
      		if(EQUAL(backpack player,"B_Bergen_blk")) then { _load = 50; };  
      		if(EQUAL(backpack player,"B_TacticalPack_oli")) then { _load = 50; };  
      		if(EQUAL(backpack player,"B_Bergen_sgg")) then { _load = 50; };  
      		if(EQUAL(backpack player,"B_Bergen_rgr")) then { _load = 50; };			  
      		if(EQUAL(backpack player,"B_AssaultPack_mcamo_AT")) then { _load = 70; };  
      		if(EQUAL(backpack player,"B_Kitbag_cbr")) then { _load = 70; };  
      		if(EQUAL(backpack player,"B_Kitbag_sgg")) then { _load = 70; };			  
      		if(EQUAL(backpack player,"B_Carryall_khk")) then { _load = 80; };  
      		if(EQUAL(backpack player,"B_Carryall_oli")) then { _load = 80; };			  
      		if(EQUAL(backpack player,"B_Carryall_cbr")) then { _load = 80; };  
      		life_maxWeight = life_minWeight + _load;  
      		waitUntil {!(EQUAL(backpack player,_bp))};  
      		if(EQUAL(backpack player,"")) then {  
      			life_maxWeight = life_minWeight;  
      		};  
      	};  
      };
      Alles anzeigen


      Everything goes well (no error) but the capacity of all the backpack is of zero, why ?
      For example, the backpack "B_Carryall_cbr" has to have a capacity of 80 !

    • blackfisch
      Legende
      Reaktionen
      2.944
      Trophäen
      9
      Beiträge
      5.966
      Dateien
      6
      Bilder
      63
      • 7. Oktober 2016 um 19:22
      • #2
      Zitat von Edwin

      EQUAL(backpack player,_bp)

      try to avoid EQUAL Macro. all you have to do is to make it FIRST_VAR isEqualTo SECOND_VAR - i.e. (backpack player) isEqualTo _bp

      That's because the macro doesn't exist in 4.4r3

      #MakeArmaNotWar

      Kein Support via PN & Steam! / No Support via DM & Steam!


      Mit freundlichen Grüßen
      blackfisch
      ______________________

      Web: blackfisch.me

      GitHub: GitHub.com/blackfisch

      Mail: [email protected]

      ______________________
      Wichtige Links:
      [Erklärung|Leitfaden] Code Optimierung

      [Tutorial] life_fnc_MP zu remoteExec

      Ohne Logs & entsprechende Dateien kein Support!

      ______________________

    • Edwin
      Anfänger
      Reaktionen
      12
      Trophäen
      9
      Beiträge
      38
      • 7. Oktober 2016 um 22:24
      • #3

      O

      Einmal editiert, zuletzt von Edwin (8. Oktober 2016 um 13:04)

    Registrieren oder Einloggen

    Du bist noch kein Mitglied von Native-Servers.com? Registriere dich kostenlos und werde Teil einer großartigen Community!

    Benutzerkonto erstellen

    Benutzer online in diesem Thema

    • 1 Besucher

    Wichtige Links & Informationen

    Server & Hosting-Ressourcen

      Server Administration & Hosting Basics

      Windows Server Support & Guides

      Linux Server Configuration & Help

      Setting up TeamSpeak 3 & VoIP Servers

      Domains & Web Hosting for Beginners & Professionals

      Cloud Hosting, Docker & Kubernetes Tutorials

    Gameserver & Modding-Ressourcen

      ArmA 3 Tutorials & Script Collection

      Renting & Operating Gameservers

      DayZ Server Management & Help

      FiveM (GTA V) Server & Script Development

      Rust Server Modding & Administration

      Setting up & Optimizing ARK Survival Servers

    NodeZone.net – Deine Community für Gameserver, Server-Hosting & Modding

      NodeZone.net ist dein Forum für Gameserver-Hosting, Rootserver, vServer, Webhosting und Modding. Seit 2015 bietet unsere Community eine zentrale Anlaufstelle für Server-Admins, Gamer und Technikbegeisterte, die sich über Server-Management, Hosting-Lösungen und Spielemodding austauschen möchten.


      Ob Anleitungen für eigene Gameserver, Hilfe bei Root- und vServer-Konfigurationen oder Tipps zu Modding & Scripting – bei uns findest du fundiertes Wissen und praxisnahe Tutorials. Mit einer stetig wachsenden Community findest du hier Antworten auf deine Fragen, Projektpartner und Gleichgesinnte für deine Gaming- und Serverprojekte. Schließe dich NodeZone.net an und werde Teil einer aktiven Community rund um Server-Hosting, Gameserver-Management und Modding-Ressourcen.

    Wer jetzt nicht teilt ist selber Schuld:
    1. Nutzungsbestimmungen
    2. Verhaltensregeln
    3. Datenschutzerklärung
    4. Impressum
    5. Urheberrechts- oder Lizenzverstoß melden
  • Trimax Design coded & layout by Gino Zantarelli 2023-2025©
    Community-Software: WoltLab Suite™