Armed-Assault.de Twitter
Antwort
 
Themen-Optionen Ansicht
Alt 18.07.2016, 17:03   #1 (permalink)
Newbie
 
Registriert seit: 14.03.2015
Beiträge: 11
Standard Rollen Zuweisung

Hiho,
kann mir wer sagen wie ich die Rollenzuweisung eingebaut bekomme?

Danke schon mal
Miniaturansicht angehängter Grafiken
rollen-zuweisung-rolle.png  
jensemann ist offline   Mit Zitat antworten
Alt 19.07.2016, 00:10   #2 (permalink)
50 Beiträge
 
Registriert seit: 11.02.2010
Beiträge: 69
Standard

Beispiel für BLUFOR Schütze und Automatik-Schütze

- BLUFOR Einheit(en) setzen (Spieler/spielbar)
- Respawn Modul für Infanterie BLUFOR setzen

Menüleiste > Attribute > Mehrspielermodus > Respawn

- An benutzerdefinierter Position respawnen
- Häkchen bei "Respawn-Ausrüstung festlegen"

Mission abspeichern und Szenario-Verzeichnis öffnen

- Textdokument "initServer.sqf" erstellen
- folgenden Code eintragen

Code:
[west,"b_soldier_f"] call bis_fnc_addrespawninventory;
[west,"b_soldier_ar_f"] call bis_fnc_addrespawninventory;

Geändert von romans (19.07.2016 um 14:18 Uhr). Grund: Tippfehler
romans ist offline   Mit Zitat antworten
Alt 19.07.2016, 14:46   #3 (permalink)
50 Beiträge
 
Registriert seit: 11.02.2010
Beiträge: 69
Standard

Beispiel für benutzerdefinierte Einheiten und Rollen

Im Arsenal Soldat ausrüsten und STRG+Shift+C drücken.
Im erhaltenen Code muss man jetzt nur noch uniform zu uniformclass ändern.
Achtung, die Visiere werden nicht mitgespeichert (bug?).
Den Klassennamen muss man manuell in den Array linkeditems eintragen.

Es gibt wie immer mehrere Möglichkeiten. Ich habe mich für folgende entschieden:

CfgRespawnInventory.hpp und CfgRoles.hpp, beide müssen natürlich in der description.ext inkludiert werden.

description.ext
Code:
#include "cfgRespawnInventory.hpp"
#include "cfgRoles.hpp"
Hier die Beispiele für Inventar und Rollen

CfgRespawnInventory.hpp
Code:
class CfgRespawnInventory
{
    class WEST1
    {
        displayName = 01: Schütze;
        role = "Assault";
        
        uniformclass = "U_B_T_Soldier_F";
        backpack = "";
        weapons[] = {"arifle_SPAR_01_blk_F","Rangefinder","hgun_P07_khk_F","Throw","Put"};
        magazines[] = {"16Rnd_9x21_Mag","SmokeShell","SmokeShell","16Rnd_9x21_Mag","16Rnd_9x21_Mag","16Rnd_9x21_Mag","30Rnd_556x45_Stanag_green","30Rnd_556x45_Stanag_green","30Rnd_556x45_Stanag_green","30Rnd_556x45_Stanag_green","30Rnd_556x45_Stanag_green","30Rnd_556x45_Stanag_green","30Rnd_556x45_Stanag_green","30Rnd_556x45_Stanag_green","30Rnd_556x45_Stanag_green","30Rnd_556x45_Stanag_green","30Rnd_556x45_Stanag_green","30Rnd_556x45_Stanag_green","30Rnd_556x45_Stanag_green","30Rnd_556x45_Stanag_green","30Rnd_556x45_Stanag_green"};
        items[] = {"FirstAidKit","FirstAidKit","FirstAidKit"};
        linkedItems[] = {"optic_ERCO_blk_F","V_PlateCarrier1_tna_F","H_HelmetB_tna_F","G_Combat_Goggles_tna_F","ItemMap","ItemCompass","ItemWatch","ItemRadio","ItemGPS","NVGogglesB_grn_F"};

    };
    
    class WEST2
    {
        displayName = 02: Grenadier;
        role = "Assault";
        
        uniformclass = "U_B_T_Soldier_F";
        backpack = "";
        weapons[] = {"arifle_SPAR_01_GL_blk_F","Rangefinder","hgun_P07_khk_F","Throw","Put"};
        magazines[] = {"16Rnd_9x21_Mag","SmokeShell","SmokeShell","30Rnd_556x45_Stanag_Tracer_Red","30Rnd_556x45_Stanag_Tracer_Red","30Rnd_556x45_Stanag_Tracer_Red","30Rnd_556x45_Stanag_Tracer_Red","30Rnd_556x45_Stanag_Tracer_Red","30Rnd_556x45_Stanag_Tracer_Red","30Rnd_556x45_Stanag_Tracer_Red","30Rnd_556x45_Stanag_Tracer_Red","30Rnd_556x45_Stanag_Tracer_Red","30Rnd_556x45_Stanag_Tracer_Red","1Rnd_HE_Grenade_shell","1Rnd_HE_Grenade_shell","1Rnd_HE_Grenade_shell","1Rnd_HE_Grenade_shell","1Rnd_HE_Grenade_shell","1Rnd_HE_Grenade_shell","1Rnd_HE_Grenade_shell","1Rnd_HE_Grenade_shell","1Rnd_HE_Grenade_shell","1Rnd_HE_Grenade_shell","30Rnd_556x45_Stanag_Tracer_Red","30Rnd_556x45_Stanag_Tracer_Red"};
        items[] = {"FirstAidKit","FirstAidKit","FirstAidKit"};
        linkedItems[] = {"optic_ERCO_blk_F","V_PlateCarrier1_tna_F","H_HelmetB_tna_F","G_Combat_Goggles_tna_F","ItemMap","ItemCompass","ItemWatch","ItemRadio","ItemGPS","NVGogglesB_grn_F"};

    };
    
    class WEST3
    {
        displayName = 03: Automatikschütze;
        role = "Assault";
        
        uniformclass = "U_B_T_Soldier_F";
        backpack = "";
        weapons[] = {"arifle_SPAR_02_blk_F","hgun_P07_khk_F","Rangefinder","Throw","Put"};
        magazines[] = {"16Rnd_9x21_Mag","SmokeShell","SmokeShell","150Rnd_556x45_Drum_Mag_Tracer_F","150Rnd_556x45_Drum_Mag_Tracer_F","150Rnd_556x45_Drum_Mag_Tracer_F","150Rnd_556x45_Drum_Mag_Tracer_F","SmokeShell","SmokeShell","SmokeShell","SmokeShell"};
        items[] = {"FirstAidKit","FirstAidKit","FirstAidKit"};
        linkedItems[] = {"optic_ERCO_blk_F","V_PlateCarrier1_tna_F","H_HelmetB_tna_F","G_Combat_Goggles_tna_F","ItemMap","ItemCompass","ItemWatch","ItemRadio","ItemGPS","NVGogglesB_grn_F"};
    };
    
    class WEST4
    {
        displayName = 01: Panzerabwehrschütze;
        role = "Support";
        
        uniformclass = "U_B_T_Soldier_F";
        backpack = "B_AssaultPack_tna_F";
        weapons[] = {"arifle_SPAR_01_blk_F","hgun_P07_khk_F","Rangefinder","launch_NLAW_F","Throw","Put"};
        magazines[] = {"16Rnd_9x21_Mag","SmokeShell","SmokeShell","30Rnd_556x45_Stanag_Tracer_Red","30Rnd_556x45_Stanag_Tracer_Red","30Rnd_556x45_Stanag_Tracer_Red","30Rnd_556x45_Stanag_Tracer_Red","30Rnd_556x45_Stanag_Tracer_Red","30Rnd_556x45_Stanag_Tracer_Red","30Rnd_556x45_Stanag_Tracer_Red","30Rnd_556x45_Stanag_Tracer_Red","30Rnd_556x45_Stanag_Tracer_Red","30Rnd_556x45_Stanag_Tracer_Red","30Rnd_556x45_Stanag_Tracer_Red","30Rnd_556x45_Stanag_Tracer_Red","30Rnd_556x45_Stanag_Tracer_Red","30Rnd_556x45_Stanag_Tracer_Red","30Rnd_556x45_Stanag_Tracer_Red","SmokeShell","SmokeShell","SmokeShell","SmokeShell","NLAW_F","NLAW_F"};
        items[] = {"FirstAidKit","FirstAidKit","FirstAidKit"};
        linkedItems[] = {"optic_ERCO_blk_F","V_PlateCarrier1_tna_F","H_HelmetB_tna_F","G_Combat_Goggles_tna_F","ItemMap","ItemCompass","ItemWatch","ItemRadio","ItemGPS","NVGogglesB_grn_F"};

    };
    
    class WEST5
    {
        displayName = 02: MG-Schütze;
        role = "Support";
        
        uniformclass = "U_B_T_Soldier_F";
        backpack = "";
        weapons[] = {"LMG_03_F","Rangefinder","hgun_P07_khk_F","Throw","Put"};
        magazines[] = {"16Rnd_9x21_Mag","SmokeShell","SmokeShell","200Rnd_556x45_Box_Tracer_Red_F","200Rnd_556x45_Box_Tracer_Red_F","200Rnd_556x45_Box_Tracer_Red_F","SmokeShell","SmokeShell","HandGrenade"};
        items[] = {"FirstAidKit","FirstAidKit","FirstAidKit"};
        linkedItems[] = {"optic_ERCO_blk_F","V_PlateCarrier1_tna_F","H_HelmetB_tna_F","G_Combat_Goggles_tna_F","ItemMap","ItemCompass","ItemWatch","ItemRadio","ItemGPS","NVGogglesB_grn_F"};

    };
    
    class WEST6
    {
        displayName = 01: Scharfschütze;
        role = "Recon";
        
        uniformclass = "U_B_T_Soldier_F";
        backpack = "";
        weapons[] = {"arifle_SPAR_03_blk_F","hgun_P07_khk_F","Rangefinder","Throw","Put"};
        magazines[] = {"16Rnd_9x21_Mag","SmokeShell","SmokeShell","20Rnd_762x51_Mag","20Rnd_762x51_Mag","20Rnd_762x51_Mag","20Rnd_762x51_Mag","20Rnd_762x51_Mag","20Rnd_762x51_Mag","20Rnd_762x51_Mag","20Rnd_762x51_Mag","20Rnd_762x51_Mag","20Rnd_762x51_Mag","20Rnd_762x51_Mag"};
        items[] = {"FirstAidKit","FirstAidKit","FirstAidKit"};
        linkedItems[] = {"optic_AMS","V_PlateCarrier1_tna_F","H_HelmetB_tna_F","G_Combat_Goggles_tna_F","ItemMap","ItemCompass","ItemWatch","ItemRadio","ItemGPS","NVGogglesB_grn_F"};
        
    };
};

CfGRoles.hpp

Code:
class CfgRoles
 {
      class Assault
      {
           displayName = "Assault";
           icon = "\A3\Ui_f\data\GUI\Cfg\RespawnRoles\assault_ca.paa";
      };
      
      class Recon
      {
           displayName = "Recon";
           icon = "\A3\Ui_f\data\GUI\Cfg\RespawnRoles\recon_ca.paa";
      };
      
      class Support
      {
           displayName = "Support";
           icon = "\A3\Ui_f\data\GUI\Cfg\RespawnRoles\support_ca.paa";
      };
      
 };
initServer.sqf
Code:
[West,"WEST1"] call BIS_fnc_addRespawnInventory;
[West,"WEST2"] call BIS_fnc_addRespawnInventory;
[West,"WEST3"] call BIS_fnc_addRespawnInventory;
[West,"WEST4"] call BIS_fnc_addRespawnInventory;
[West,"WEST5"] call BIS_fnc_addRespawnInventory;
[West,"WEST6"] call BIS_fnc_addRespawnInventory;

Geändert von romans (19.07.2016 um 15:38 Uhr). Grund: initServer.sqf vergessen
romans ist offline   Mit Zitat antworten
Alt 19.07.2016, 18:57   #4 (permalink)
Newbie
 
Registriert seit: 14.03.2015
Beiträge: 11
Standard

Danke Aber irgendwie bekomme ich das nicht hin
jensemann ist offline   Mit Zitat antworten
Alt 19.07.2016, 21:03   #5 (permalink)
50 Beiträge
 
Registriert seit: 11.02.2010
Beiträge: 69
Standard

Wieso bekommst du es nicht hin? Woran hakt es?
romans ist offline   Mit Zitat antworten
Alt 20.07.2016, 09:07   #6 (permalink)
Newbie
 
Registriert seit: 14.03.2015
Beiträge: 11
Standard

OKE... die zweite Antwort habe ich Gestern noch nicht gesehen Werde den gleich mal testen.

Geändert von jensemann (20.07.2016 um 09:28 Uhr).
jensemann ist offline   Mit Zitat antworten
Alt 20.07.2016, 10:04   #7 (permalink)
Newbie
 
Registriert seit: 14.03.2015
Beiträge: 11
Standard

hm... bekomme ich nicht hin. Alles mir erdenkliche Ausprobiert

Geändert von jensemann (20.07.2016 um 10:27 Uhr). Grund: bin zu blöde^^
jensemann ist offline   Mit Zitat antworten
Antwort


Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 
Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Mission mit mehreren Rollen als Spieler deltron99 Editing & Scripting 3 25.01.2014 15:33


Kontakt - HX3.de - Archiv - Nach oben

Angetrieben durch vBulletin, Entwicklung von Philipp Dörner & Tobias



SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116