I'm very new to modding COH2, started a few days ago and after getting a hang of the basics and playing around with custom emplacements and making a few of my own, I had an idea for garrisoned emplacements. Where say for example the pit_small from the bofors can be garrisoned with any anti tank gun squad and said gun and crew will appear and animate, exactly like if they were the on_construction_squad with the pit.
Now the trouble is I've tried applying animator_set_state and apply_crew even add_crew to both the on_construction_actions and on_loaded_squad/on_loaded_hold. The best I can achieve is to get the squad and gun in the hold, with the crew animated as garrison, but the gun completely invisible. I also have troubles with having regular infantry squads garrisoned inside also not animating.
I tinkered a bit with abilities and upgrades to make exceptions where the pit would be added to the loadout, or spawning a new building, but couldn't get anything to work. There don't seem to be many options for a clean spawn and despawn action.
So far the best I can work out is animating the gun only works the normal way if it's a building and squads/crews seem to only animate if there's a squad with both the emplacement and gun (both structures) in on_construction_squad.
I cannot be the first person to have this idea, yet info on different guns and emplacements seems to be sparse outside of the original "packaged" emplacement structures. Even info on garrisoning AT guns in buildings is hard to find. For both you normally end up finding discussions on game balance, tips for handling emplacements in game and questions about making the 25-pounder emplacement. Which makes me wonder if what I'm trying is even possible.
Garrisoning AT guns in emplacements
18 Apr 2022, 19:57 PM
#1
Posts: 2
3 May 2022, 20:25 PM
#2
Posts: 38
To be honest I don't think what your trying to do is possible as (apart from the Raketenwerfer) AT guns were never designed to be garrisoned, which is probably why yours is appearing invisible in the emplacement.
25 pounder emplacements work cause their attached to the emplacement from squad, which I don't think is possible with garrisoned units.
25 pounder emplacements work cause their attached to the emplacement from squad, which I don't think is possible with garrisoned units.
10 May 2022, 07:15 AM
#3
Posts: 100 | Subs: 1
Garrisoning an AT gun within structures and other types of garrisons is possible. This post and this post within my guide covers a bit of the basics for garrisons.
1. Determine the type of markers the structure has. In most cases the "combat slot" markers will be able to hold units within the garrison. You may view these by using archive viewer and opening the .mua files with a text editor.
2. Match the ebps hold_ext and holdable_ext types. Both the garrison and the garrisoned entities need to have their types match up within these extensions.
This should probably work. Note that the ABP of the garrisoned entity must have the default name, meaning you can't name it xyz.abp or something custom. Also note that the guide I linked is specifically for moving entities so you probably wont have to worry about a lot of the other things in there.
This will only allow you to add an AT gun, or whatever other unit, into a garrison. It will not allow any crew to man it. I believe having a crew is possible but it's probably very difficult to do.
1. Determine the type of markers the structure has. In most cases the "combat slot" markers will be able to hold units within the garrison. You may view these by using archive viewer and opening the .mua files with a text editor.
2. Match the ebps hold_ext and holdable_ext types. Both the garrison and the garrisoned entities need to have their types match up within these extensions.
This should probably work. Note that the ABP of the garrisoned entity must have the default name, meaning you can't name it xyz.abp or something custom. Also note that the guide I linked is specifically for moving entities so you probably wont have to worry about a lot of the other things in there.
This will only allow you to add an AT gun, or whatever other unit, into a garrison. It will not allow any crew to man it. I believe having a crew is possible but it's probably very difficult to do.
31 Aug 2022, 05:40 AM
#4
Posts: 2
After a long time without access to the COH tools, I've finally been able to spend some time trying your advice. It seems COH just doesn't like what I'm trying to do.
I had some promise with attachments, but I'm going to cut my losses and either learn more before I try again or attempt it in the tools in the third.
Anyways, thank you for your help.
I had some promise with attachments, but I'm going to cut my losses and either learn more before I try again or attempt it in the tools in the third.
Anyways, thank you for your help.
PAGES (1)
1 user is browsing this thread:
1 guest
Livestreams
273 | |||||
7 | |||||
2 | |||||
2 | |||||
1 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.831222.789+37
- 2.604217.736-1
- 3.34957.860+14
- 4.1109614.644+10
- 5.276108.719+27
- 6.305114.728+1
- 7.916405.693-2
- 8.722440.621+4
- 9.261137.656+2
- 10.1041674.607-2
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
9
Download
1235
Board Info
467 users are online:
467 guests
0 post in the last 24h
8 posts in the last week
34 posts in the last month
8 posts in the last week
34 posts in the last month
Registered members: 49107
Welcome our newest member, Falac851
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, Falac851
Most online: 2043 users on 29 Oct 2023, 01:04 AM