Home   Help Search Login Register  

Author Topic: changing gun during resistance  (Read 914 times)

0 Members and 1 Guest are viewing this topic.

Adder

  • Guest
changing gun during resistance
« on: 15 Nov 2003, 20:08:21 »
hi

is there any way of changing your gun ie ak74 or mi16 default ones  to a modded one or to any gun   during playing the main campaigns

1-- anyway of changing gun say edit a file to changes these guns so when starting a mission it has my gun.

sorry i may not have putthis thro properely but i hope u know what i mean.

cheers for the help

m21man

  • Guest
Re:changing gun during resistance
« Reply #1 on: 16 Nov 2003, 01:50:10 »
What do you want to do? Do you want to change BIS missions so that you can use custom weapons? That requires mission.sqm tweaking.

Adder

  • Guest
Re:changing gun during resistance
« Reply #2 on: 16 Nov 2003, 02:04:34 »
yeah use custom weapons in resistance or red hammer for example cheers how would i do this , is it hard?

m21man

  • Guest
Re:changing gun during resistance
« Reply #3 on: 16 Nov 2003, 04:38:20 »
First, if you don't have Amalfi's PBO Decryptor then get it here. Now, decrypt the resistance.pbo file in Res\Campaigns folder.

You now have a large folder ~60 MBs named resistance. In it you will see, among other things, a folder named Missions. In it are all of the missions in the campaign. Now, edit the mission.sqm file in each mission folder to insert the appropriate units. For instance, here's how I'd change a regular resistance machinegunner into an EDG resistance machinegunner:

First, a piece of the original .sqm:
Code: [Select]
class Item2
{
position[]={9646.714844,109.312553,4700.725586};
azimut=150.000000;
special="CARGO";
age="ACTUAL";
id=102;
side="GUER";
vehicle="SoldierGMG";
rank="SERGEANT";
skill=0.600000;
markers[]={};
};

And here's the edited .sqm piece:
Code: [Select]
class Item2
{
position[]={9646.714844,109.312553,4700.725586};
azimut=150.000000;
special="CARGO";
age="ACTUAL";
id=102;
side="GUER";
vehicle="edg_resSoldierGMG";
rank="SERGEANT";
skill=0.600000;
markers[]={};
};

Note that the only change is in the "vehicle" category. This is what you need to change in order to change what a unit is. You can use the Find & Replace feature to make this process fairly speedy. Once you've altered every mission that you want to, use Amalfi's MakePBO to compress the campaign into .pbo format. Now just move the original resistance campaign to a safe place, put the new one in its place, and start playing your improved campaign!
« Last Edit: 16 Nov 2003, 04:39:35 by m21man »

Adder

  • Guest
Re:changing gun during resistance
« Reply #4 on: 16 Nov 2003, 21:25:49 »
ah cheers brilliant .
i can manage that
but a couple of more qustions
sorry.

Right the gun i want to use is in the ballistic spec ops missions do u know which ones i need.
How would i get the file for that gun and  put it in this file .

cheers

thank you for your patience

Adder

  • Guest
Re:changing gun during resistance
« Reply #5 on: 16 Nov 2003, 22:03:09 »
looking ats one of the  mission.sqm from spec ops ballistic, it would be to complicated, would it? would i have to add the addons s wont i" i have only basic c programming language, lol.



m21man

  • Guest
Re:changing gun during resistance
« Reply #6 on: 16 Nov 2003, 22:07:19 »
Which are you doing, modifying a BAS mission or modifying a BIS campaign?

m21man

  • Guest
Re:changing gun during resistance
« Reply #7 on: 16 Nov 2003, 22:12:34 »
To add stuff to a unit's init field in the .sqm, just add a line called init:
Code: [Select]
items=1;
class Item0
{
position[]={2580.081055,132.991272,9033.955078};
azimut=174.475998;
id=0;
side="WEST";
vehicle="BAS_RangerOfficer";
player="PLAYER COMMANDER";
leader=1;
rank="MAJOR";
skill=0.600000;
text="aP";
markers[]={};
init="this setidentity "WACKO";this setdammage 0.5";
};
« Last Edit: 16 Nov 2003, 22:13:25 by m21man »

Adder

  • Guest
Re:changing gun during resistance
« Reply #8 on: 16 Nov 2003, 22:38:31 »
modifying bis mission, is BIs mission Cold war crisis or resistance.

Ive had a go at the training level in cold war crisis, ive tried adding the gun in this, ill see what happens.


iave done what u said ive added

version=11.000000;
class Mission
{
addOns[]=
   {
      "oh58",
      "bis_resistance",
      "bis_weaponpack",
      "BAS_DeraW",
      "bas_weap",
      "bas_mh6185",
      "bas_soar185",
      "bas_kawa",
      "AH64",
      "BAS_MAH60",
      "jam_magazines",
      "bas_soarpilots",
   };
addOnsAuto[]=
   {
      "bas_soar185",
      "bas_deraw",
      "bas_mh6185",
      "AH64",
      "BAS_MAH60",
      "bis_resistance",
      "bas_kawa"
   }
to the beginning of the code..

plus..
class Item3
      {
         side="WEST";
         class Vehicles
         {
            items=1.000000;
            class Item0
            {
               position[]={9721.455078,39.329998,3893.578125};
               id=3.000000;
               side="WEST";
               vehicle="BAS_DeltaOperator";
               leader=1.000000;
               skill=0.733333;
               text="Peter";
               markers[]={};
               init="this setBehaviour ""safe""; this setidentity ""Fowley""";
            };
         };

to all vehicles ive put that.

hope it works, i know it wont but its giving me a chance to remember my c language training from years ago

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:changing gun during resistance
« Reply #9 on: 17 Nov 2003, 02:05:30 »
For the avoidance of doubt you must obviously have the addon rifle in your addons folder.    (The file will be called myflashgun.pbo or whatever.)     You need to put the name of the rifle in the appropriate place in the code:  you should be able to get the name from the addon readme.

If it's not going well try to make it work with an official weapon.  There is weapon and ammo listing in the Ed Depot.

As an alternative method, you could arrange to have your choice of weapons available at gear selection in the Briefing.   This involves changing a file called description.ext which exists for every mission.    There are tutes on this file in the Ed Depot, or just download the Tutorial Mission from there and use the description.ext in there as a template.   Your rusty programming skills will easily cope.
Plenty of reviewed ArmA missions for you to play

Adder

  • Guest
Re:changing gun during resistance
« Reply #10 on: 17 Nov 2003, 03:05:02 »
cheers guys ive done my 1st one put my m4  in replace of the ak74 in redhammer, cool its ace .
yes the old c days flooding back, but have to run the game to comiple and test lol a bit long winded but its worth it.

cheers guys will mess around abit now

Baphomet

  • Guest
Re:changing gun during resistance
« Reply #11 on: 17 Nov 2003, 07:13:30 »
Or. You could download the decompiled ECP .bin and replace all the weapons you want for the default units when you run ofp with that mod.. I say that decompiling the campaign is a last resort when the alternative is so much easier.