Jump to content

schadler17

Member
  • Content Count

    137
  • Joined

  • Last visited

  • Medals

Community Reputation

34 Excellent

2 Followers

About schadler17

  • Rank
    Sergeant

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. defaultGear.sqf; // Player Loadouts Via Classnames // Written by Schadler.C private ["_unit", "_type", "_side"]; _unit = _this select 0; _type = (typeOf _unit); _side = (side _unit); // Remove Starting Items removeallWeapons _unit; removeAllAssignedItems _unit; removeBackpack _unit; // Common Items _unit addWeapon "ItemMap"; _unit addWeapon "ItemCompass"; _unit addWeapon "ItemWatch"; _unit addItem "FirstAidKit"; // Start Gear Assignment switch (_side) do { // Blufor Loadout case west: { // Common WEST Gear _unit addWeapon "NVGoggles"; // Common Ammo/Items/etc here if needed. switch (_type) do { // Commander case "rhsusf_usmc_marpat_d_officer": { // Backpack/Radio _unit addBackpack "tf_rt1523g_big_rhs"; // Weapons _unit addWeapon "rhs_weap_m4a1_grip"; _unit addPrimaryWeaponItem "rhsusf_acc_SFMB556"; _unit addPrimaryWeaponItem "optic_Hamr"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 2]; _unit addMagazines ["SmokeShellRed", 1]; _unit addMagazines ["SmokeShellOrange", 1]; _unit addMagazines ["SmokeShellBlue", 1]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit linkItem "ItemGPS"; _unit linkItem "tf_anprc152"; _unit addWeapon "Laserdesignator"; _unit addMagazine "LaserBatteries"; }; // Squad Leader case "rhsusf_usmc_marpat_d_squadleader": { // Backpack/Radio _unit addBackpack "tf_rt1523g_big_rhs"; // Weapons _unit addWeapon "rhs_weap_m4a1_grip"; _unit addPrimaryWeaponItem "rhsusf_acc_SFMB556"; _unit addPrimaryWeaponItem "optic_Hamr"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 2]; _unit addMagazines ["SmokeShellRed", 1]; _unit addMagazines ["SmokeShellOrange", 1]; _unit addMagazines ["SmokeShellBlue", 1]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit linkItem "ItemGPS"; _unit linkItem "tf_anprc152"; _unit addWeapon "Laserdesignator"; _unit addMagazine "LaserBatteries"; }; // Team Leader case "rhsusf_usmc_marpat_d_teamleader": { // Weapons _unit addWeapon "rhs_weap_m4a1_grip"; _unit addPrimaryWeaponItem "rhsusf_acc_SFMB556"; _unit addPrimaryWeaponItem "rhsusf_acc_compm4"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 2]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit addWeapon "Binocular"; _unit linkItem "tf_anprc152"; }; // UAV Operator case "rhsusf_usmc_marpat_d_uav": { // Backpack/Radio _unit addBackpack "tf_rt1523g_big_rhs"; // Weapons _unit addWeapon "rhs_weap_m4a1_grip"; _unit addPrimaryWeaponItem "rhsusf_acc_SFMB556"; _unit addPrimaryWeaponItem "rhsusf_acc_compm4"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 2]; _unit addMagazines ["SmokeShellRed", 1]; _unit addMagazines ["SmokeShellOrange", 1]; _unit addMagazines ["SmokeShellBlue", 1]; // Items _unit linkItem "B_UavTerminal"; _unit linkItem "tf_anprc152"; }; // Rifleman case "rhsusf_usmc_marpat_d_rifleman": { // Weapons _unit addWeapon "rhs_weap_m4a1_grip"; _unit addPrimaryWeaponItem "rhsusf_acc_SFMB556"; _unit addPrimaryWeaponItem "optic_Hamr"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 2]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit addWeapon "Binocular"; _unit linkItem "tf_anprc152"; }; // Medic case "rhsusf_usmc_marpat_d_rifleman_light": { // Backpack _unit addBackpack "B_kitbag_rgr"; // Weapons _unit addWeapon "rhs_weap_m4a1_grip"; _unit addPrimaryWeaponItem "rhsusf_acc_SFMB556"; _unit addPrimaryWeaponItem "rhsusf_acc_compm4"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 2]; _unit addMagazines ["SmokeShell", 8]; _unit addMagazines ["rhs_mag_m67", 2]; // Items _unit linkItem "tf_anprc152"; (unitbackpack _unit) addItemCargoGlobal ["FirstAidKit", 15]; _unit addItem "Medikit"; _unit addWeapon "Binocular"; }; // Grenadier case "rhsusf_usmc_marpat_d_grenadier": { // Weapons _unit addWeapon "rhs_weap_m4a1_m320"; _unit addPrimaryWeaponItem "rhsusf_acc_SFMB556"; _unit addPrimaryWeaponItem "rhsusf_acc_compm4"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 2]; _unit addMagazines ["rhs_mag_M441_HE", 8]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit linkItem "tf_anprc152"; _unit addWeapon "Binocular"; }; // Combat Engineer case "rhsusf_usmc_marpat_d_engineer": { // Backpack _unit addBackpack "B_kitbag_rgr"; // Weapons _unit addWeapon "rhs_weap_m4a1_grip"; _unit addPrimaryWeaponItem "rhsusf_acc_SFMB556"; _unit addPrimaryWeaponItem "rhsusf_acc_compm4"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 2]; _unit addMagazines ["DemoCharge_Remote_Mag", 5]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit linkItem "tf_anprc152"; _unit addWeapon "Binocular"; _unit linkItem "MineDetector"; }; // Light MG case "rhsusf_usmc_marpat_d_autorifleman_m249": { // Backpack _unit addBackpack "B_Kitbag_rgr"; // Weapons _unit addWeapon "rhs_weap_m249_pip_L"; _unit addPrimaryWeaponItem "rhsusf_acc_compm4"; // Ammo _unit addMagazines ["rhsusf_100Rnd_556x45_soft_pouch", 6]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit linkItem "tf_anprc152"; _unit addWeapon "Binocular"; }; // Heavy MG case "rhsusf_usmc_marpat_d_machinegunner": { // Backpack _unit addBackpack "B_Kitbag_rgr"; // Weapons _unit addWeapon ""; _unit addPrimaryWeaponItem ""; // Ammo _unit addMagazines ["", 0]; _unit addMagazines ["rhs_mag_m67", 0]; _unit addMagazines ["SmokeShell", 0]; // Items _unit linkItem "tf_anprc152"; _unit addWeapon "Binocular"; }; // Light AT case "rhsusf_usmc_marpat_d_riflemanat": { // Weapons _unit addWeapon "rhs_weap_m4a1_grip"; _unit addPrimaryWeaponItem "rhsusf_acc_SFMB556"; _unit addPrimaryWeaponItem "rhsusf_acc_compm4"; _unit addWeapon "rhs_weap_M136"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 2]; _unit addMagazines ["rhs_m136_mag", 1]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit linkItem "tf_anprc152"; _unit addWeapon "Binocular"; }; // Heavy AT case "rhsusf_usmc_marpat_d_javelin": { // Backpack _unit addBackpack "B_Kitbag_rgr"; // Weapons _unit addWeapon "rhs_weap_m4a1_grip"; _unit addPrimaryWeaponItem "rhsusf_acc_SFMB556"; _unit addPrimaryWeaponItem "rhsusf_acc_compm4"; _unit addWeapon "rhs_weap_fgm148"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 2]; _unit addMagazines ["rhs_fgm148_Magazines_AT", 2]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit linkItem "tf_anprc152"; _unit addWeapon "Binocular"; }; // Marksman case "rhsusf_usmc_marpat_d_marksman": { // Weapons _unit addWeapon "rhs_weap_m14ebrri_leu"; _unit addPrimaryWeaponItem "rhsusf_acc_LEUPOLDMK4"; // Ammo _unit addMagazines ["rhsusf_20Rnd_762x51_m118_special_Mag", 8]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit linkItem "tf_anprc152"; _unit addWeapon "Binocular"; }; // Sniper case "rhsusf_usmc_marpat_d_sniper": { // Remove Default Uniform removeUniform _unit; removeGoggles _unit; removeVest _unit; removeHeadgear _unit; removeAllAssignedItems _unit; // Uniform _unit addUniform "U_B_GhillieSuit"; _unit addHeadgear "rhs_Booniehat_marpatwd"; _unit addVest "rhsusf_spc_marksman"; // Weapons _unit addWeapon "rhs_weap_XM2010"; _unit addPrimaryWeaponItem "rhsusf_acc_LEUPOLDMK4_2"; _unit addPrimaryWeaponItem "rhsusf_acc_harris_bipod"; // Ammo _unit addMagazines ["rhsusf_5Rnd_300winmag_xm2010", 10]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit linkItem "tf_anprc152"; _unit addWeapon "Rangefinder"; }; // Crewman case "rhsusf_usmc_marpat_d_crewman": { // Weapons _unit addWeapon "rhs_weap_m4a1"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["SmokeShell", 2]; _unit addMagazines ["SmokeShellRed", 1]; _unit addMagazines ["SmokeShellOrange", 1]; _unit addMagazines ["SmokeShellBlue", 1]; // Items _unit linkItem "tf_anprc152"; _unit addWeapon "Binocular"; _unit linkItem "ItemGPS"; }; // Heli Pilot case "rhsusf_usmc_marpat_d_helipilot": { // Parachute _unit addBackpack "B_Parachute"; // Weapons _unit addWeapon "rhs_weap_m4a1"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["SmokeShell", 2]; _unit addMagazines ["SmokeShellRed", 1]; _unit addMagazines ["SmokeShellOrange", 1]; _unit addMagazines ["SmokeShellBlue", 1]; // Items _unit linkItem "tf_anprc152"; _unit addWeapon "Binocular"; _unit linkItem "ItemGPS"; }; // Default default {/*Default Loadout or Error Message*/}; }; }; // Opfor Loadout case east: { /* EAST LOADOUT HERE! */ }; case guer: { /* RESISTANCE LOADOUT HERE! */ }; case civ: { /* CIV LOADOUT HERE! */ }; }; initPlayerLocal.sqf: (also onPlayerRespawn.sqf if you want it to save on respawning) _nil = [player] execVM "defaultGear.sqf"; This is what I use. Feel free to edit/fix it anyway that you need too.
  2. Restrict Weapons via Player Classname. // Weapon Restriction Script // Created By Schadler.C private ["_class", "_weapon", "_primaryWeapon", "_secondaryWeapon", "_primaryName", "_secondaryName"]; while {true} do { sleep 3; _class = _this select 0; _weapon = _this select 1; _primaryWeapon = primaryWeapon player; _secondaryWeapon = secondaryWeapon player; if ((_primaryWeapon in _weapon) && !(typeOf player in _class)) then { _primaryName = getText(configFile >> "CfgWeapons" >>_primaryWeapon >> "displayName"); _primaryPicture = getText(configFile >> "CfgWeapons" >>_primaryWeapon >> "picture"); player removeWeapon _primaryWeapon; hint parseText format ["<t size = '1.5' color = '#FF0000'>RESTRICTED WEAPON</t><br/><br/><img image='%2' size='5'/><br />Your class is not qualified<br/>to use %1",_primaryName, _primaryPicture]; }; if ((_secondaryWeapon in _weapon) && !(typeOf player in _class)) then { _secondaryName = getText(configFile >> "CfgWeapons" >>_secondaryWeapon >> "displayName"); _secondaryPicture = getText(configFile >> "CfgWeapons" >>_secondaryWeapon >> "picture"); player removeWeapon _secondaryWeapon; hint parseText format ["<t size = '1.5' color = '#FF0000'>RESTRICTED WEAPON</t><br/><br/><img image='%2' size='5'/><br />Your class is not qualified<br/>to use %1",_secondaryName, _secondaryPicture]; }; } forEach allUnits; Call in initPlayerLocal.sqf: _nil = [["rhsusf_usmc_marpat_d_grenadier"],["rhs_weap_m4a1_m203","rhs_weap_m4_m203"]] execVM "scripts\units\weaponRestriction.sqf"; This restricts the specified weapons to the specified classname. No other units (except grenadier) can ever equip these weapons. Works for primary/secondary weapons.
  3. schadler17

    AMD CPU Bottleneck?

    AMD A-10 5800k OC'd @ 4.3ghz 8gb 1866mhz 1gb AMD Raedon 7750 GPU Stuck at 20-30 FPS on servers with 40+ players, sometimes dropping to below 10-15 FPS. Tried to save money with AMD, works for most games fine, but not for Arma (which sucks cause its the main game I play.) Plan on upgrading to an Intel CPU next time around. From what I've heard, Single Threading performance is what you need to look for in Arma. Dont take my word for it, but I'll be looking into it when I do upgrade and we'll see what happens.
  4. Enable Scripting Errors. It'll tell you where you messed up. Post the error here.
  5. schadler17

    mission images into a mod

    He wants to add images to his mod that he can call for in his mission to use to keep the mission file small. There's a way, just don't know how to call for them.
  6. Simple but effective. I like it. I like how it can be used for military and civilian/industrial situations. Only problem I see is the big ball of flames it creates towards the user, but as long as you use the right safety gear all should be fine.
  7. https://forums.bistudio.com/topic/185212-safezone-loop/ That might also be useful for you.
  8. Even if it were possible, adding them too the mission file would make your mission its-self huge. Normal size (with images/music/etc) is about 2-3mb, (less than 1mb without images/music) Some objects are MB's in size depending on what they are. Depending on how many objects you added your mission file could be huge, which would take players a while to download when connecting to your server. It'd consume alot of bandwidth of the server, which could cause it to lag, if you're limited. But in the end, I don't think its possible, but even if it was, it wouldn't be reasonable to do. (imo)
  9. Yeah thats why as you see in all of my classname cases, I add the Uniform/Vests/Clothing(Backpacks in my case cause I was using default uniforms/vests). Then the weapons, then magazines, then assigned Items. Can't add items to a player when he has nowhere to add them too. Only issue is there will be no magazines loaded into the player's weapon, but really, its not an issue. Prevents players from accidentally firing on mission-startup (incase they're alt tabbed when it starts) To fix that, do: _unit addPrimaryWeaponItem "MagazineClassname"; But yeah, all brackets are needed to finish the script. Use Notepad++ and enable script errors on startup for the game and it shoulda told you that from the beginning.
  10. Just make sure the classname is correct for your uniform. Are the other items being added? Weapons/assignedItems?
  11. Made this a while ago but never got around to using it. Could be useful for some. Assigns loadouts to a player based on their classname. Feel free to do with it as you please. Call for it in initPlayerLocal.sqf: [player] execVM "defaultGear.sqf"; defaultGear.sqf: // Player Loadouts Via Classnames // Written by Schadler.C private ["_unit", "_type", "_side"]; _unit = _this select 0; _type = (typeOf _unit); _side = (side _unit); // Remove Starting Items removeallWeapons _unit; removeAllAssignedItems _unit; removeBackpack _unit; // Common Items _unit addWeapon "ItemMap"; _unit addWeapon "ItemCompass"; _unit addWeapon "ItemWatch"; _unit addItem "FirstAidKit"; // Start Gear Assignment switch (_side) do { // Blufor Loadout case west: { // Common WEST Gear _unit addWeapon "NVGoggles"; // Common Ammo/Items/etc here if needed. switch (_type) do { // Commander case "rhsusf_usmc_marpat_d_officer": { // Backpack/Radio _unit addBackpack "tf_rt1523g_big_rhs"; // Weapons _unit addWeapon "rhs_weap_m4a1_grip"; _unit addPrimaryWeaponItem "rhsusf_acc_SFMB556"; _unit addPrimaryWeaponItem "optic_Hamr"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 2]; _unit addMagazines ["SmokeShellRed", 1]; _unit addMagazines ["SmokeShellOrange", 1]; _unit addMagazines ["SmokeShellBlue", 1]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit linkItem "ItemGPS"; _unit linkItem "tf_anprc152"; _unit addWeapon "Laserdesignator"; _unit addMagazine "LaserBatteries"; }; // Squad Leader case "rhsusf_usmc_marpat_d_squadleader": { // Backpack/Radio _unit addBackpack "tf_rt1523g_big_rhs"; // Weapons _unit addWeapon "rhs_weap_m4a1_grip"; _unit addPrimaryWeaponItem "rhsusf_acc_SFMB556"; _unit addPrimaryWeaponItem "optic_Hamr"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 2]; _unit addMagazines ["SmokeShellRed", 1]; _unit addMagazines ["SmokeShellOrange", 1]; _unit addMagazines ["SmokeShellBlue", 1]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit linkItem "ItemGPS"; _unit linkItem "tf_anprc152"; _unit addWeapon "Laserdesignator"; _unit addMagazine "LaserBatteries"; }; // Team Leader case "rhsusf_usmc_marpat_d_teamleader": { // Weapons _unit addWeapon "rhs_weap_m4a1_grip"; _unit addPrimaryWeaponItem "rhsusf_acc_SFMB556"; _unit addPrimaryWeaponItem "rhsusf_acc_compm4"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 2]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit addWeapon "Binocular"; _unit linkItem "tf_anprc152"; }; // UAV Operator case "rhsusf_usmc_marpat_d_uav": { // Backpack/Radio _unit addBackpack "tf_rt1523g_big_rhs"; // Weapons _unit addWeapon "rhs_weap_m4a1_grip"; _unit addPrimaryWeaponItem "rhsusf_acc_SFMB556"; _unit addPrimaryWeaponItem "rhsusf_acc_compm4"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 2]; _unit addMagazines ["SmokeShellRed", 1]; _unit addMagazines ["SmokeShellOrange", 1]; _unit addMagazines ["SmokeShellBlue", 1]; // Items _unit linkItem "B_UavTerminal"; _unit linkItem "tf_anprc152"; }; // Rifleman case "rhsusf_usmc_marpat_d_rifleman": { // Weapons _unit addWeapon "rhs_weap_m4a1_grip"; _unit addPrimaryWeaponItem "rhsusf_acc_SFMB556"; _unit addPrimaryWeaponItem "optic_Hamr"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 2]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit addWeapon "Binocular"; _unit linkItem "tf_anprc152"; }; // Medic case "rhsusf_usmc_marpat_d_rifleman_light": { // Backpack _unit addBackpack "B_kitbag_rgr"; // Weapons _unit addWeapon "rhs_weap_m4a1_grip"; _unit addPrimaryWeaponItem "rhsusf_acc_SFMB556"; _unit addPrimaryWeaponItem "rhsusf_acc_compm4"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 2]; _unit addMagazines ["SmokeShell", 8]; _unit addMagazines ["rhs_mag_m67", 2]; // Items _unit linkItem "tf_anprc152"; (unitbackpack _unit) addItemCargoGlobal ["FirstAidKit", 15]; _unit addItem "Medikit"; _unit addWeapon "Binocular"; }; // Grenadier case "rhsusf_usmc_marpat_d_grenadier": { // Weapons _unit addWeapon "rhs_weap_m4a1_m320"; _unit addPrimaryWeaponItem "rhsusf_acc_SFMB556"; _unit addPrimaryWeaponItem "rhsusf_acc_compm4"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 2]; _unit addMagazines ["rhs_mag_M441_HE", 8]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit linkItem "tf_anprc152"; _unit addWeapon "Binocular"; }; // Combat Engineer case "rhsusf_usmc_marpat_d_engineer": { // Backpack _unit addBackpack "B_kitbag_rgr"; // Weapons _unit addWeapon "rhs_weap_m4a1_grip"; _unit addPrimaryWeaponItem "rhsusf_acc_SFMB556"; _unit addPrimaryWeaponItem "rhsusf_acc_compm4"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 2]; _unit addMagazines ["DemoCharge_Remote_Mag", 5]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit linkItem "tf_anprc152"; _unit addWeapon "Binocular"; _unit linkItem "MineDetector"; }; // Light MG case "rhsusf_usmc_marpat_d_autorifleman_m249": { // Backpack _unit addBackpack "B_Kitbag_rgr"; // Weapons _unit addWeapon "rhs_weap_m249_pip_L"; _unit addPrimaryWeaponItem "rhsusf_acc_compm4"; // Ammo _unit addMagazines ["rhsusf_100Rnd_556x45_soft_pouch", 6]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit linkItem "tf_anprc152"; _unit addWeapon "Binocular"; }; // Heavy MG case "rhsusf_usmc_marpat_d_machinegunner": { // Backpack _unit addBackpack "B_Kitbag_rgr"; // Weapons _unit addWeapon ""; _unit addPrimaryWeaponItem ""; // Ammo _unit addMagazines ["", 0]; _unit addMagazines ["rhs_mag_m67", 0]; _unit addMagazines ["SmokeShell", 0]; // Items _unit linkItem "tf_anprc152"; _unit addWeapon "Binocular"; }; // Light AT case "rhsusf_usmc_marpat_d_riflemanat": { // Weapons _unit addWeapon "rhs_weap_m4a1_grip"; _unit addPrimaryWeaponItem "rhsusf_acc_SFMB556"; _unit addPrimaryWeaponItem "rhsusf_acc_compm4"; _unit addWeapon "rhs_weap_M136"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 2]; _unit addMagazines ["rhs_m136_mag", 1]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit linkItem "tf_anprc152"; _unit addWeapon "Binocular"; }; // Heavy AT case "rhsusf_usmc_marpat_d_javelin": { // Backpack _unit addBackpack "B_Kitbag_rgr"; // Weapons _unit addWeapon "rhs_weap_m4a1_grip"; _unit addPrimaryWeaponItem "rhsusf_acc_SFMB556"; _unit addPrimaryWeaponItem "rhsusf_acc_compm4"; _unit addWeapon "rhs_weap_fgm148"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 2]; _unit addMagazines ["rhs_fgm148_Magazines_AT", 2]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit linkItem "tf_anprc152"; _unit addWeapon "Binocular"; }; // Marksman case "rhsusf_usmc_marpat_d_marksman": { // Weapons _unit addWeapon "rhs_weap_m14ebrri_leu"; _unit addPrimaryWeaponItem "rhsusf_acc_LEUPOLDMK4"; // Ammo _unit addMagazines ["rhsusf_20Rnd_762x51_m118_special_Mag", 8]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit linkItem "tf_anprc152"; _unit addWeapon "Binocular"; }; // Sniper case "rhsusf_usmc_marpat_d_sniper": { // Remove Default Uniform removeUniform _unit; removeGoggles _unit; removeVest _unit; removeHeadgear _unit; removeAllAssignedItems _unit; // Uniform _unit addUniform "U_B_GhillieSuit"; _unit addHeadgear "rhs_Booniehat_marpatwd"; _unit addVest "rhsusf_spc_marksman"; // Weapons _unit addWeapon "rhs_weap_XM2010"; _unit addPrimaryWeaponItem "rhsusf_acc_LEUPOLDMK4_2"; _unit addPrimaryWeaponItem "rhsusf_acc_harris_bipod"; // Ammo _unit addMagazines ["rhsusf_5Rnd_300winmag_xm2010", 10]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit linkItem "tf_anprc152"; _unit addWeapon "Rangefinder"; }; // Crewman case "rhsusf_usmc_marpat_d_crewman": { // Weapons _unit addWeapon "rhs_weap_m4a1"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["SmokeShell", 2]; _unit addMagazines ["SmokeShellRed", 1]; _unit addMagazines ["SmokeShellOrange", 1]; _unit addMagazines ["SmokeShellBlue", 1]; // Items _unit linkItem "tf_anprc152"; _unit addWeapon "Binocular"; _unit linkItem "ItemGPS"; }; // Heli Pilot case "rhsusf_usmc_marpat_d_helipilot": { // Parachute _unit addBackpack "B_Parachute"; // Weapons _unit addWeapon "rhs_weap_m4a1"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["SmokeShell", 2]; _unit addMagazines ["SmokeShellRed", 1]; _unit addMagazines ["SmokeShellOrange", 1]; _unit addMagazines ["SmokeShellBlue", 1]; // Items _unit linkItem "tf_anprc152"; _unit addWeapon "Binocular"; _unit linkItem "ItemGPS"; }; // Default default {/*Default Loadout or Error Message*/}; }; }; // Opfor Loadout case east: { /* EAST LOADOUT HERE! */ }; case guer: { /* RESISTANCE LOADOUT HERE! */ }; case civ: { /* CIV LOADOUT HERE! */ }; };
  12. schadler17

    Gear for specific unit

    // Player Loadouts Via Classnames // Written by Schadler.C private ["_unit", "_type", "_side"]; _unit = _this select 0; _type = (typeOf _unit); _side = (side _unit); // Remove Starting Items removeallWeapons _unit; removeAllAssignedItems _unit; removeBackpack _unit; // Common Items _unit addWeapon "ItemMap"; _unit addWeapon "ItemCompass"; _unit addWeapon "ItemWatch"; _unit addItem "FirstAidKit"; // Start Gear Assignment switch (_side) do { // Blufor Loadout case west: { // Common WEST Gear _unit addWeapon "NVGoggles"; // Common Ammo/Items/etc here if needed. switch (_type) do { // Commander case "rhsusf_usmc_marpat_d_officer": { // Backpack/Radio _unit addBackpack "tf_rt1523g_big_rhs"; // Weapons _unit addWeapon "rhs_weap_m4a1_grip"; _unit addPrimaryWeaponItem "rhsusf_acc_SFMB556"; _unit addPrimaryWeaponItem "optic_Hamr"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 2]; _unit addMagazines ["SmokeShellRed", 1]; _unit addMagazines ["SmokeShellOrange", 1]; _unit addMagazines ["SmokeShellBlue", 1]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit linkItem "ItemGPS"; _unit linkItem "tf_anprc152"; _unit addWeapon "Laserdesignator"; _unit addMagazine "LaserBatteries"; }; // Squad Leader case "rhsusf_usmc_marpat_d_squadleader": { // Backpack/Radio _unit addBackpack "tf_rt1523g_big_rhs"; // Weapons _unit addWeapon "rhs_weap_m4a1_grip"; _unit addPrimaryWeaponItem "rhsusf_acc_SFMB556"; _unit addPrimaryWeaponItem "optic_Hamr"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 2]; _unit addMagazines ["SmokeShellRed", 1]; _unit addMagazines ["SmokeShellOrange", 1]; _unit addMagazines ["SmokeShellBlue", 1]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit linkItem "ItemGPS"; _unit linkItem "tf_anprc152"; _unit addWeapon "Laserdesignator"; _unit addMagazine "LaserBatteries"; }; // Team Leader case "rhsusf_usmc_marpat_d_teamleader": { // Weapons _unit addWeapon "rhs_weap_m4a1_grip"; _unit addPrimaryWeaponItem "rhsusf_acc_SFMB556"; _unit addPrimaryWeaponItem "rhsusf_acc_compm4"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 2]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit addWeapon "Binocular"; _unit linkItem "tf_anprc152"; }; // UAV Operator case "rhsusf_usmc_marpat_d_uav": { // Backpack/Radio _unit addBackpack "tf_rt1523g_big_rhs"; // Weapons _unit addWeapon "rhs_weap_m4a1_grip"; _unit addPrimaryWeaponItem "rhsusf_acc_SFMB556"; _unit addPrimaryWeaponItem "rhsusf_acc_compm4"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 2]; _unit addMagazines ["SmokeShellRed", 1]; _unit addMagazines ["SmokeShellOrange", 1]; _unit addMagazines ["SmokeShellBlue", 1]; // Items _unit linkItem "B_UavTerminal"; _unit linkItem "tf_anprc152"; }; // Rifleman case "rhsusf_usmc_marpat_d_rifleman": { // Weapons _unit addWeapon "rhs_weap_m4a1_grip"; _unit addPrimaryWeaponItem "rhsusf_acc_SFMB556"; _unit addPrimaryWeaponItem "optic_Hamr"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 2]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit addWeapon "Binocular"; _unit linkItem "tf_anprc152"; }; // Medic case "rhsusf_usmc_marpat_d_rifleman_light": { // Backpack _unit addBackpack "B_kitbag_rgr"; // Weapons _unit addWeapon "rhs_weap_m4a1_grip"; _unit addPrimaryWeaponItem "rhsusf_acc_SFMB556"; _unit addPrimaryWeaponItem "rhsusf_acc_compm4"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 2]; _unit addMagazines ["SmokeShell", 8]; _unit addMagazines ["rhs_mag_m67", 2]; // Items _unit linkItem "tf_anprc152"; (unitbackpack _unit) addItemCargoGlobal ["FirstAidKit", 15]; _unit addItem "Medikit"; _unit addWeapon "Binocular"; }; // Grenadier case "rhsusf_usmc_marpat_d_grenadier": { // Weapons _unit addWeapon "rhs_weap_m4a1_m320"; _unit addPrimaryWeaponItem "rhsusf_acc_SFMB556"; _unit addPrimaryWeaponItem "rhsusf_acc_compm4"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 2]; _unit addMagazines ["rhs_mag_M441_HE", 8]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit linkItem "tf_anprc152"; _unit addWeapon "Binocular"; }; // Combat Engineer case "rhsusf_usmc_marpat_d_engineer": { // Backpack _unit addBackpack "B_kitbag_rgr"; // Weapons _unit addWeapon "rhs_weap_m4a1_grip"; _unit addPrimaryWeaponItem "rhsusf_acc_SFMB556"; _unit addPrimaryWeaponItem "rhsusf_acc_compm4"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 2]; _unit addMagazines ["DemoCharge_Remote_Mag", 5]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit linkItem "tf_anprc152"; _unit addWeapon "Binocular"; _unit linkItem "MineDetector"; }; // Light MG case "rhsusf_usmc_marpat_d_autorifleman_m249": { // Backpack _unit addBackpack "B_Kitbag_rgr"; // Weapons _unit addWeapon "rhs_weap_m249_pip_L"; _unit addPrimaryWeaponItem "rhsusf_acc_compm4"; // Ammo _unit addMagazines ["rhsusf_100Rnd_556x45_soft_pouch", 6]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit linkItem "tf_anprc152"; _unit addWeapon "Binocular"; }; // Heavy MG case "rhsusf_usmc_marpat_d_machinegunner": { // Backpack _unit addBackpack "B_Kitbag_rgr"; // Weapons _unit addWeapon ""; _unit addPrimaryWeaponItem ""; // Ammo _unit addMagazines ["", 0]; _unit addMagazines ["rhs_mag_m67", 0]; _unit addMagazines ["SmokeShell", 0]; // Items _unit linkItem "tf_anprc152"; _unit addWeapon "Binocular"; }; // Light AT case "rhsusf_usmc_marpat_d_riflemanat": { // Weapons _unit addWeapon "rhs_weap_m4a1_grip"; _unit addPrimaryWeaponItem "rhsusf_acc_SFMB556"; _unit addPrimaryWeaponItem "rhsusf_acc_compm4"; _unit addWeapon "rhs_weap_M136"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 2]; _unit addMagazines ["rhs_m136_mag", 1]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit linkItem "tf_anprc152"; _unit addWeapon "Binocular"; }; // Heavy AT case "rhsusf_usmc_marpat_d_javelin": { // Backpack _unit addBackpack "B_Kitbag_rgr"; // Weapons _unit addWeapon "rhs_weap_m4a1_grip"; _unit addPrimaryWeaponItem "rhsusf_acc_SFMB556"; _unit addPrimaryWeaponItem "rhsusf_acc_compm4"; _unit addWeapon "rhs_weap_fgm148"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 2]; _unit addMagazines ["rhs_fgm148_Magazines_AT", 2]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit linkItem "tf_anprc152"; _unit addWeapon "Binocular"; }; // Marksman case "rhsusf_usmc_marpat_d_marksman": { // Weapons _unit addWeapon "rhs_weap_m14ebrri_leu"; _unit addPrimaryWeaponItem "rhsusf_acc_LEUPOLDMK4"; // Ammo _unit addMagazines ["rhsusf_20Rnd_762x51_m118_special_Mag", 8]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit linkItem "tf_anprc152"; _unit addWeapon "Binocular"; }; // Sniper case "rhsusf_usmc_marpat_d_sniper": { // Remove Default Uniform removeUniform _unit; removeGoggles _unit; removeVest _unit; removeHeadgear _unit; removeAllAssignedItems _unit; // Uniform _unit addUniform "U_B_GhillieSuit"; _unit addHeadgear "rhs_Booniehat_marpatwd"; _unit addVest "rhsusf_spc_marksman"; // Weapons _unit addWeapon "rhs_weap_XM2010"; _unit addPrimaryWeaponItem "rhsusf_acc_LEUPOLDMK4_2"; _unit addPrimaryWeaponItem "rhsusf_acc_harris_bipod"; // Ammo _unit addMagazines ["rhsusf_5Rnd_300winmag_xm2010", 10]; _unit addMagazines ["rhs_mag_m67", 2]; _unit addMagazines ["SmokeShell", 2]; // Items _unit linkItem "tf_anprc152"; _unit addWeapon "Rangefinder"; }; // Crewman case "rhsusf_usmc_marpat_d_crewman": { // Weapons _unit addWeapon "rhs_weap_m4a1"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["SmokeShell", 2]; _unit addMagazines ["SmokeShellRed", 1]; _unit addMagazines ["SmokeShellOrange", 1]; _unit addMagazines ["SmokeShellBlue", 1]; // Items _unit linkItem "tf_anprc152"; _unit addWeapon "Binocular"; _unit linkItem "ItemGPS"; }; // Heli Pilot case "rhsusf_usmc_marpat_d_helipilot": { // Parachute _unit addBackpack "B_Parachute"; // Weapons _unit addWeapon "rhs_weap_m4a1"; // Ammo _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 5]; _unit addMagazines ["SmokeShell", 2]; _unit addMagazines ["SmokeShellRed", 1]; _unit addMagazines ["SmokeShellOrange", 1]; _unit addMagazines ["SmokeShellBlue", 1]; // Items _unit linkItem "tf_anprc152"; _unit addWeapon "Binocular"; _unit linkItem "ItemGPS"; }; // Default default {/*Default Loadout or Error Message*/}; }; }; // Opfor Loadout case east: { /* EAST LOADOUT HERE! */ }; case guer: { /* RESISTANCE LOADOUT HERE! */ }; case civ: { /* CIV LOADOUT HERE! */ }; }; Something I've made and never released. Multiple Classnames can be defined with different loadouts for each. Called for in initPlayerLocal.sqf: _nil = [player] execVM "scripts\units\defaultGear.sqf";
  13. schadler17

    Virtual CAS

    If you use Modules, I'm pretty sure theres a way to determine what kind of vehicle is used when editing it. Not sure though, as I haven't used Support Modules in a while.
  14. schadler17

    Varying Classnames?

    Fixed. _unit = _this select 0; while {true} do { sleep 3; _assignedItems = assignedItems _unit; _Items = items _unit; _hasRadio = { toLower _x find "tf_anprc152" >= 0 } count (_items + _assignedItems) > 0; { if (_hasRadio) then { hint format ["Radio Found!"]; } else { hint format ["Radio Not Found!"]; }; } forEach [ "tf_anprc152", "tf_anprc152_1", "tf_anprc152_2", "tf_anprc152_3", "tf_anprc152_4", "tf_anprc152_5", "tf_anprc152_6", "tf_anprc152_7", "tf_anprc152_8", "tf_anprc152_9" ]; };
  15. schadler17

    Varying Classnames?

    Doesn't work. https://community.bistudio.com/wiki/toLower My issue, is sometimes the classname is "tf_anprc152" If you assign another radio, or if the player picks one up, it'll switch to "tf_anprc152_1", "tf_anprc152_2", "tf_anprc152_2", etc. I need to detect all possibilities of the _x up to about 10.
×