I remember in modding coh1 you could run a macro to modify a stat on a whole bunch of files at once. I used to do this to make all weapons have 2x range for example.
Is there a way to do this in coh2 modding tools?
Are there modding macros/shortcuts?
13 Oct 2021, 15:13 PM
#1

Posts: 6
14 Oct 2021, 22:34 PM
#2
Posts: 106 | Subs: 1
I don't know about macros but your example of weapon range would be easy to do. Making a player upgrade with weapon range modifiers will apply it to all of your units. You can then add the upgrade in the army section under start_actions of AE so it is applied at the start of the match.

You would have to make additional range_weapon_modifiers for more hardpoints.

You would have to make additional range_weapon_modifiers for more hardpoints.
14 Oct 2021, 23:05 PM
#3

Posts: 6
Thanks! This should help a lot, even if these modifiers don't cover everything I need to change.
15 Oct 2021, 22:04 PM
#4

Posts: 6
Did this work for you?
I added the modifier and it doesn't seem to be doing anything.
"sight_radius_player_modifier" is working but the range and ability range ones aren't working for me. It seems like they might be designed to be applied to a specific unit or unit type not the player?
I added the modifier and it doesn't seem to be doing anything.
"sight_radius_player_modifier" is working but the range and ability range ones aren't working for me. It seems like they might be designed to be applied to a specific unit or unit type not the player?
15 Oct 2021, 23:15 PM
#5
Posts: 106 | Subs: 1
Can you post a screenshot of what your actions look like? I have not tried weapon range but it works well for capture speed. I'll test this real quick and get back to you.
You can right click on an action and "find all references" as well as "go to reference" to see how these actions are used in vanilla to give you a better idea of how they work.
You can right click on an action and "find all references" as well as "go to reference" to see how these actions are used in vanilla to give you a better idea of how they work.
15 Oct 2021, 23:22 PM
#6

Posts: 6
This start actions of the army tab for aef.
]
I looked at some of the ones in game and so far they are all being applied to a target unit or aura.
]I looked at some of the ones in game and so far they are all being applied to a target unit or aura.
15 Oct 2021, 23:33 PM
#7
Posts: 106 | Subs: 1
Okay it definitely works. The only thing different is that mine is through an upgrade. Make an upgrade with the modifiers and have the owner_type as player. Then upgrade_add in the start_actions.
16 Oct 2021, 00:19 AM
#8

Posts: 6
Interesting, I don't know what's happening then. I moved it to an upgrade and the upgrade is obviously being applied because the sight is still being affected but range is not being changed.
16 Oct 2021, 01:02 AM
#9
Posts: 106 | Subs: 1


Double check to make sure everything is correct. If that doesn't work then I'm unsure maybe someone else knows the answer.
16 Oct 2021, 02:50 AM
#10
Posts: 106 | Subs: 1
My mistake I was looking at the wrong action. Add a filter action and then the modifier under it. This should work.


16 Oct 2021, 03:05 AM
#11

Posts: 6
Oh wow that worked. Thank you so much for taking the time to help me with this.
I saw the filter_action option but intuitively I assumed it could only narrow the scope of the modifier.
Thanks!
I saw the filter_action option but intuitively I assumed it could only narrow the scope of the modifier.
Thanks!
16 Oct 2021, 04:19 AM
#12
Posts: 106 | Subs: 1
You're welcome and sorry about the confusion. Usually that is what filter action is used for but I'm assuming that the property of apply_to_future_units is what makes it work.
PAGES (1)

1 user is browsing this thread:
1 guest
Livestreams
|
|
|
18 | ||
|
|
|
1 | ||
|
|
|
1 | ||
|
|
|
1 | ||
|
|
|
1 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.630365.633+9
- 2.492236.676+3
- 3.934246.792-2
- 4.1524816.651+2
- 5.270106.718-2
- 6.720430.626-3
- 7.830145.851+3
- 8.25769.788+1
- 9.373126.747+4
- 10.397207.657+4
Replay highlight
VS
-
cblanco ★ -
보드카 중대
-
VonManteuffel -
Heartless Jäger
Einhoven Country
Honor it
18
Download
3523
Board Info
993 users are online:
993 guests
0 post in the last 24h
4 posts in the last week
16 posts in the last month
4 posts in the last week
16 posts in the last month
Registered members: 17257
Welcome our newest member, rinapms
Most online: 4501 users on 26 Oct 2025, 01:00 AM
Welcome our newest member, rinapms
Most online: 4501 users on 26 Oct 2025, 01:00 AM