Results 1 to 39 of 39

HOWTO: Change squad weapon

  1. #1
    Member Lmagus's Avatar
    Join Date
    Sep 2006
    Location
    Israel

    HOWTO: Change squad weapon

    For this tutorial we will use the paratroopers and change their weapon from to a Thompson smg.
    It's very easy ^_^

    First, open your mod and go to attrib\attrib\ebps\races\allies\soldiers
    and open airborne_infantry.rgd

    In there, go to combat_ext\hardpoints\hardpoint_01\weapon_table
    Now click(not on the +) on weapon_01.
    In the right side you will see a few lines, what you need to edit is the weapon line
    it says:
    weapon\allies\small_arms\single_fire\rifle\m1_carbine.lua
    (the weapons are located at attrib\attrib\weapons)
    let's change it to
    weapon\allies\small_arms\machine_gun\sub_machine_gun\m1_thompson_smg.lua
    and save your mod, and now you the paratroopers start with the Thompson sub machine gun.

    I know it's not much, but it will help those who want to get started.

    (for some reason the forum put spaces in my bold lines... so just delete them in the program)
    Last edited by Lmagus; 4th Oct 06 at 10:20 AM.

  2. #2
    SWEETNESS!

    One question though:

    How do I give airborne a loadout like the following:

    One thompson (for the squad leader)
    3 M1 Garands
    2 M1 Carbines

  3. #3
    Member Lmagus's Avatar
    Join Date
    Sep 2006
    Location
    Israel
    Hmm...
    No idea O_O

  4. #4
    2ltben
    Guest
    My guess is to make new soldier models and add them to squad loadout in sbps. I haven't tried something like it yet, though.

  5. #5
    rebel5555
    Guest
    SWEETNESS!

    One question though:

    How do I give airborne a loadout like the following:

    One thompson (for the squad leader)
    3 M1 Garands
    2 M1 Carbines
    What you do is make several copies of attrib\ebps\allies\soldiers\airborne_infantry.rgd
    (example: airborne_infantry1.rgd, airborne_infantry2.rgd)

    Then you give each unit the weapon you want them to have. Next, you change the loadout in attrib\sbps\races\allies\soldiers\airborne_infantry.rgd

  6. #6
    Member MirrorImage's Avatar
    Join Date
    Jan 2006
    Location
    Phlegethon
    Or you could always make it an upgrade package that gives them the weapons. I am wondering does anyone know how to give a mg team more than one mg since in the load out I see how it adds the mg to the squad but I can't figure out how to add more mgs.

  7. #7
    I've figured out, but forgot to update my posts. Thanks for the help though guys.

  8. #8
    There are some somewhat serious consequences to using this method to add weapons to squads that you should know before you make the decision to use it:

    Firstly, applying new entities with a weapon is not the same as giving that weapon to the squad. The entity will retain control over the weapon, and when that entity dies, the weapon goes with it until it is reinforced. This is very different from most of the weapon upgrades in the game which add the weapon to the squad, where it can then be passed down to surviving members when the carrier is killed. A weapon added in this manner will also never drop upon the carrier's death, not even if the entire squad is killed.

    Secondly, weapons added in this manner do not count towards the squads pickup limit and because they are not considered squad weapons, they can be replaced by squad weapons when picked up or upgraded. Say you want to make a squad with one bazooka soldier and two pistol soldiers. You make your squad by the above detailed method and come across an axis panzershreck on the ground. You order your squad to pick it up, thinking one of the pistol equiped soldiers will take it, however, since your bazooka soldier is not equipped with a bazooka that belongs to the squad, he could be the one to pick up the panzershreck instead, and his bazooka would be nullified.

    While the above method is a quick and easy way to add weapons to a squad, in doing so, be careful that you realize the neat little features of the game; those little things that give CoH that extra cool feel; that your are nullifing for your new squad.

    The following link will take you to the [How To:] article for adding weapons to squads via upgrades such as those used in the game (ala Recoilless Rifles, BAR, Panzershrecks, etc...) where your troops can drop and pass on the weapons in combat.
    (Coming soon )

  9. #9
    franconbean
    Guest
    in the part "sub_machine_g un\" is there ment 2 b a space between the "g" and the "un" of gun

  10. #10
    Member Lmagus's Avatar
    Join Date
    Sep 2006
    Location
    Israel
    shiremct, I've added weapons trough upgrades too, but I had a little problem with that...
    I could add 4 Thompsons to the paratroopers and then they can't upgrade to anything else, but if I upgrade to RR's, they can still use the Thompson upgrade...

    franconbean, no.

  11. #11
    K1D27H
    Guest
    Lmagus, I believe the thompson takes up squad item slot, and the default slot size of para is something like 4(?) so once you give them all the smg, you run out of the slot to give them something else....Hope this helps.

  12. #12
    Member Busby's Avatar
    Join Date
    Oct 2005
    Location
    United Kingdom
    Ok, I have changed the Engineers SMGs to Carbines using this method. However, when I go in game the gun itself and its bullet effects are missing, and only the impact of the shots are shown, is there a way to fix this?

  13. #13
    nath9091
    Guest
    Same as Busby, successfully changed both Riflemen and Engineers to Thompson, but that's the only gun that seems to work. All the rest mess up and don't appear. I've tried with the Garand and the Carbine. Please help.

  14. #14
    Member Lmagus's Avatar
    Join Date
    Sep 2006
    Location
    Israel
    No idea what the problem is...

  15. #15
    Sadden
    Guest
    Quote Originally Posted by shiremct
    Secondly, weapons added in this manner do not count towards the squads pickup limit and because they are not considered squad weapons, they can be replaced by squad weapons when picked up or upgraded. Say you want to make a squad with one bazooka soldier and two pistol soldiers. You make your squad by the above detailed method and come across an axis panzershreck on the ground. You order your squad to pick it up, thinking one of the pistol equiped soldiers will take it, however, since your bazooka soldier is not equipped with a bazooka that belongs to the squad, he could be the one to pick up the panzershreck instead, and his bazooka would be nullified.
    Actually, you can prevent something like the above happening by changing the order of the units in the squad_loadout_ext tree.

    I created an airborne squad with 1 Thompson, 3 Garands, and 2 Carbines. I make sure that the guys with the carbines get upgraded first, then the garands, then the thompson last if necessary, by specifying the carbine unit as unit_01. The garand unit is unit_02, and the thompson unit is unit_03.

    When I upgrade to RR's, the guys with the carbines get the upgrade. If I do it again, two of the three garand units get the upgrade.

    Quote Originally Posted by K1D27H
    Lmagus, I believe the thompson takes up squad item slot, and the default slot size of para is something like 4(?) so once you give them all the smg, you run out of the slot to give them something else....Hope this helps.
    Try this:

    Change 4 to 6 : attrib\sbps\races\allies\soldiers\airborne_infantry.rgd\...\squad_item_slot_ext\num_slots

  16. #16

  17. #17
    Monty76
    Guest
    Has anyone had any success in enabling all infantry to be able to throw some sort of grenade? I always found it a bit strange that some units can't throw grenades and I don't think it would unbalance the game. Do any such weapon changes affect all game modes including campaign?

  18. #18
    Member Gossamer's Avatar
    Join Date
    Jan 2008
    Location
    North Bay, Canada
    I tried to give the engineer thompsons and it just gave them M3 instead for some reason. So I tried to give them flame throwers and it gave them M3 instead... I clicked save and everything. My other changes work as in making the squad have 2 instead of 3 people. Can somebody help me with this!?

  19. #19
    did you put in combat_ext\hardpoint_01\weapon_01 or somewhere else?
    "Airborne, death from above"

  20. #20
    Member Gossamer's Avatar
    Join Date
    Jan 2008
    Location
    North Bay, Canada
    No... I just copied the engineer file and made it called something else. I made a secondary squad and it's supposed to have 5 men and a new gun, and it only has 5 men.

  21. #21
    repzic
    Guest
    ok, im trying to make a scot Lt. i make him up in the sbps (making the piper unit max of 1 man) but hes not in the ebps to give him sten instead of his lee enfield. cn nyone help ?

  22. Modding Senior Member Company of Heroes Senior Member  #22
    Celéstial by heart Celution's Avatar
    Join Date
    Apr 2008
    Location
    Sweden
    Copy the tommy.rgd squad, call it whatever_you_like.rgd
    Then go to the sbps guy, and go to squad_loadout\unit_list\unit_01\type. Then make it: ebps\races\allies_commonwealth\soldiers\whatever_you_like.lua
    then the bagpiper guy is connected with the new unit, so if you change the ebps new guy, it has effect on the bagpiper guy.

  23. #23
    MousoLini
    Guest
    i want to give panzer grenadiers a light mg42 as standaard load out, but then i get blue blocks (rgm missing, have panic). do i need to make copy's of the weapons to, like for units or what could be wrong, where do u put what? for example : in hardpoint need to be put the file from ebps , sbps or the one from the data art folder? and if i have 5 men i need to put in 5 hardpoints with that type of weapon? correct?

  24. #24
    MousoLini
    Guest

    Question for changing weapons

    i want to give panzer grenadiers a light mg42 as standaard load out, but then i get blue blocks (rgm missing, have panic). do i need to make copy's of the weapons to, like for units or what could be wrong, where do u put what? for example : in hardpoint need to be put the file from ebps , sbps or the one from the data art folder? and if i have 5 men i need to put in 5 hardpoints with that type of weapon? correct?

    many thanks already

  25. Modding Senior Member Company of Heroes Senior Member  #25
    Celéstial by heart Celution's Avatar
    Join Date
    Apr 2008
    Location
    Sweden
    Why did you post the same post twice...?
    Anyway I know how to do what you asked..
    Just add the light mg upgrade at the upgrade_apply_ext from the PG's....
    If they are invincible, then you have to mess with the .abp file. But don't do that if needed, because if you mess it up wiht the.abp file the unit will turn into a blue box.

  26. #26
    Lads, I did this with a Lieutenant. I replaced his Sten with weapon\allies_cw\small_arms\single_fire\rifle\cw_lee_enfield.lua and yet nothing appears in his hands.

    I don't know what the problem is, it is extremely simple and yet for me it did not work, just my luck. Sorry for bringing this thread back to life but its better than making a new one I suppose.

  27. Company of Heroes Senior Member  #27
    Moderator Lethal Dosage's Avatar
    Join Date
    Sep 2007
    Location
    In the back of my mind.
    Did you add the Lee Enfield to his .abp file?


  28. #28
    Member Soldier13's Avatar
    Join Date
    Dec 2008
    Location
    Somewhere in the bushes
    I haven't come to this yet(in my mod) but refering to LD's question, don't you have to put new weapons the soldier will use in to that soldiers .abp file.

  29. Company of Heroes Senior Member  #29
    Moderator Lethal Dosage's Avatar
    Join Date
    Sep 2007
    Location
    In the back of my mind.
    Yes, yes you do... unless it's part of commonmeshes.lua

  30. #30
    my problem is that when i gave the infantry section flamethrowers their old gun waas still there.

    thanks in advance

    never min i fixed it

  31. #31
    janh95
    Guest
    i need a little help here :P.
    i tryed the thing from the first post and it worked but i want in my wehrmacht unit.
    6 k98
    2 mg42
    1 sniper with g43
    so i tryed the 5th post but with no succes so i need a little help here

  32. #32
    Member AverageJoe's Avatar
    Join Date
    Aug 2006
    Location
    Virginia
    It's impossible to add more than one team weapon (like at guns, mgs, and mortars) to a squad.

  33. #33
    janh95
    Guest
    uhm no it isn't with the thingy above i just changed the wehrmacht squad her k98 to mg42 lmg and now except the tl has mg42's but i wanna have
    6 k98
    2 mg42 lmg
    1 g43

  34. Company of Heroes Senior Member  #34
    Moderator Lethal Dosage's Avatar
    Join Date
    Sep 2007
    Location
    In the back of my mind.
    Well considering most Wehr squads consist of a leader ebps and however many other regular members to make up the number. For instance the Volksgrenadier_squad consists of a volksgrenadier_leader and 4x volksgrenadier.

    Your looking at a squad of 9 men. You would need to either make a squad consisting of 3 types of ebps file (perhaps you could call them volksgrenadier1,volksgrenadier2, and volksgrenadier3), and you'll have to give them the weapons to their hardpoints (in the combat_ext). The other way would be to create your 9 man squad, all with Kar98k's, and make a free upgarde (with 0 time) which gives 2 LMG42's and a Sniper G43. The first way would be easier though, as you'd have to create a slot_item for the Sniper G43, which might be a little beyond you.

  35. #35
    janh95
    Guest
    ok thx LD

  36. #36
    KnightOfSerbia
    Guest
    but where is hardpiond of panzer grenadier elite

  37. #37
    Member Bugdown's Avatar
    Join Date
    Apr 2012
    Location
    Philippines
    why when I trying to save this error pop up.

    just remove the space

    i165.photobucket. com/albums/u63/nickypunk001/aaaaaaaaaaaa.png

    I know this is old topic and sorry for digging this up

  38. #38
    Member Bugdown's Avatar
    Join Date
    Apr 2012
    Location
    Philippines
    I try to use this type of weapon in axis but its invisible

    weapon\allies_cw\small_arms\machine_gun\sub_machine_gun\cw_sten_smg_silencer.lua

  39. #39
    Member striker's Avatar
    Join Date
    Jun 2012
    Location
    venezuela
    go to this link here explains in detail as you can fix the problem
    http://forums.relicnews.com/showthre...isible-weapons

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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