Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Warfare startup loadout

  1. #1
    Ive just started having a play around modding Warfare and was wondering what line i need to change to change the default m16 that each player slot starts with to a different weapon.

    ive managed to add weapons to the barracks loadout so i can buy different weapons but i would also like to start with a different weapon, hope this make sense and any help much appreciated.

  2. #2
    to the forums

    ...\Common\Functions\Common_EquipDefau ltLoadout.sqf

    Edit that file in notepad and change the variables, its pretty self explanatory just as long as you know what the weapon and ammo class names are.

    Example:

    You will see 4 of these lines.
    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
    _unit AddMagazine &#34;30Rnd_556x45_Stanag&#34;;
    [/QUOTE]

    So for each of these code lines it means 1 magazine in inventory.

    make sure you have the same weapon class name in these 2 lines (for west example)

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
    _unit AddWeapon &#34;M16A2&#34;;
    _unit SelectWeapon &#34;M16A2&#34;;
    [/QUOTE]
    Add weapon just says that the M16 is added to the inventory where the selectweapon line states that the M16 is selectable.

    The Common_EquipLoadout.sqf ***is just for other items, Binos & NVG.

    I think the Common_EquipTeamLeader.sqf is just specifically designed for the team leader if one is on the map, same principle applies for the default load out editing.



    Armor+ 6000BWS
    EVGA x58 4-Way Classified 170-BL-E762
    i7 930 @ 2.8Ghz
    G.SKILLPI+Turbulence12GB(PC3 12800)6-8-6-20 1.6v
    Ultra X4 1050W PSU
    2x PNY 670GTX @ 4096mb in SLI

  3. #3
    thx for getting back to me, ok i did what you said but for some reason everytime i go into the editor and run warfare i always start with the same m16.

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _unit AddWeapon &#34;M4AIM&#34;;
    _unit SelectWeapon &#34;M4AIM&#34;;[/QUOTE]

    i originally tried it with the M4 Aimpoint but have tried it with other weapons also, and even tried changing the Russian side to see if that worked but everytime its the same result.

    any further help appreiciated

  4. #4
    Yea, never mind I don&#39;t know what I&#39;m talking about. I tried the same thing and no results either... Sorry man... I&#39;m having a trouble time figuring out why my starter squads are not starting out with the default load outs that the editor says they are starting out with...




  5. #5
    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Common&#92;Config&#92;Config_Loadouts.sq s[/QUOTE]

    Search (Ctrl+F) for:
    Quote Originally Posted by [b
    Code Sample[/b] </td></tr><tr><td id="CODE">westDefaultWeapons =
    Then you will see these two lines:<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Quote ]
    westDefaultWeapons = [westPrimaryWeapons Select RH_M16A4TYPE]
    westDefaultAmmo = [westPrimaryAmmo Select RH_M16A4TYPE,westPrimaryAmmo Select RH_M16A4TYPE,westPrimaryAmmo Select RH_M16A4TYPE,westPrimaryAmmo Select RH_M16A4TYPE,westMiscWeapons Select HANDGRENADETYPE,westMiscWeapons Select HANDGRENADETYPE,westMiscWeapons Select HANDGRENADETYPE,westMiscWeapons Select HANDGRENADETYPE][/QUOTE]

    This is fairly simple. Find the weapon class name, and put it in all the areas I bolded. Also add the word "TYPE" to the end of each of the classname mentions. For example the "M249" class name would be "M249TYPE" in all of these fields.

    Also notice the "HANDGRENADETYPE", each time this is mentioned a hand grenade is added to the players inventory at the start of the mission. Be careful though, a typo here causes a lot of weird random problems so I suggest backing up this file or copy/pasting the two lines elsewhere temporarily.

    Hope this helps&#33; ***




  6. #6
    Actually it does thanx vic.

  7. #7
    cool got it working cheers vic, i never thought of looking all the way through the loadout script aint i a muppet

  8. #8
    Same here punkindonuts

    Just a shame that you can&#39;t mix and match for different class, like AT for at soldier and sniper for sniper soldier, ect...

  9. #9
    Warrant Officer ck-claw's Avatar
    Join Date
    Oct 29 2005
    Location
    On The End Of A Bottle Of Cider-Somerset - UK
    Posts
    2,650
    Damn Victor Thanks&#33;
    I&#39;ve been going around and around and around those folders&#33;


    How Ppl Treat Me Is Their Path, How I Respond Is Mine...

    Quote Originally Posted by Artisanal View Post
    Yet another white-knight who parachuted himself into the thread without using the search function.

  10. #10
    Is it possible to add a LAW launcher to the default load as well?

    Quote Originally Posted by [b
    Quote[/b] ]westTemplateCosts = _c

    westDefaultWeapons = [westPrimaryWeapons Select RH_M16A4TYPE]
    westDefaultAmmo = [westPrimaryAmmo Select RH_M16A4TYPE,westPrimaryAmmo Select RH_M16A4TYPE,westPrimaryAmmo Select RH_M16A4TYPE,westPrimaryAmmo Select RH_M16A4TYPE,westMiscWeapons Select HANDGRENADETYPE,westMiscWeapons Select HANDGRENADETYPE,westMiscWeapons Select HANDGRENADETYPE,westMiscWeapons Select HANDGRENADETYPE]

    ;EAST LOADOUTS
    copied and pasted straight in and no loadout at all for player slots :O




Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •