Jump to content

Photo
- - - - -

Warfare startup loadout


  • Please log in to reply
10 replies to this topic
Thread Starter
punkindonuts
punkindonuts

    Rookie

  • Members
  • 3 posts

Posted 25 July 2008 - 13:49 #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.

CrazyAce
CrazyAce

    Staff Sergeant

  • Members
  • 359 posts

Posted 25 July 2008 - 17:39 #2

Posted Image to the forums

...\Common\Functions\Common_EquipDefaultLoadout.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 "30Rnd_556x45_Stanag";
[/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 "M16A2";
_unit SelectWeapon "M16A2";
[/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

Thread Starter
punkindonuts
punkindonuts

    Rookie

  • Members
  • 3 posts

Posted 25 July 2008 - 20:51 #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 "M4AIM";
_unit SelectWeapon "M4AIM";[/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

CrazyAce
CrazyAce

    Staff Sergeant

  • Members
  • 359 posts

Posted 25 July 2008 - 21:26 #4

Yea, never mind I don't know what I'm talking about. I tried the same thing and no results either... Sorry man... I'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...




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

Victor
Victor

    Sergeant Major

  • Members
  • 1417 posts

Posted 01 August 2008 - 10:59 #5

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Common\Config\Config_Loadouts.sqs[/QUOTE]

Search (Ctrl+F) for: [quote name='[b']Code Sample[/b] </td></tr><tr><td id="CODE">westDefaultWeapons =[/QUOTE]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!  Posted Image





CrazyAce
CrazyAce

    Staff Sergeant

  • Members
  • 359 posts

Posted 01 August 2008 - 13:43 #6

Actually it does thanx vic.
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

Thread Starter
punkindonuts
punkindonuts

    Rookie

  • Members
  • 3 posts

Posted 01 August 2008 - 15:18 #7

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

CrazyAce
CrazyAce

    Staff Sergeant

  • Members
  • 359 posts

Posted 01 August 2008 - 15:23 #8

Same here punkindonuts

Just a shame that you can't mix and match for different class, like AT for at soldier and sniper for sniper soldier, ect...
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

ck-claw
ck-claw

    Warrant Officer

  • Members
  • 2650 posts

Posted 15 August 2008 - 21:18 #9

Damn Victor Thanks!
I've been going around and around and around those folders! Posted Image

Posted Image


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

Yet another white-knight who parachuted himself into the thread without using the search function. :party:


169th_Ice
169th_Ice

    Sergeant

  • Members
  • 142 posts

Posted 19 August 2008 - 22:31 #10

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

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





CrazyAce
CrazyAce

    Staff Sergeant

  • Members
  • 359 posts

Posted 20 August 2008 - 18:38 #11

Well... here’s a theory.  “westPrimaryWeapons Select” is obviously the primary weapon, so would “westSecondaryWeapons Select” work for the secondary lost..?

I haven't tried it and not tempted to just yet. Posted Image




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