Login

russian armor

Random spawning from the production buildings

27 Sep 2016, 18:12 PM
#1
avatar of TheWise

Posts: 31

Actually, topic.

I'd like to implement the random spawning (pretty much like Partisans used to do) spawning of squads from the production buildings. For instance:

- German HMG teams randomly spawned with MG-34 or MG-42;

- one of two variants of US Riflemen Squads - with M1 Garand and M1 Carbine - are randomly spawned from the base building;

And so effing on :-))

Does anyone know, how to do this in the current Mod Tools?
27 Sep 2016, 19:16 PM
#2
avatar of Planet Smasher
Senior Modmaker Badge

Posts: 632 | Subs: 1

Partisans were called in with an ability, using a reinforcement action. There were several types of Partisan squads with different loadouts, and one of them would been spawned randomly. That functionality isn't available for individual squad members, though.

What you can do:
- Make a new soldier entity.
- Leave hardpoint 1 empty.
- In action_apply_ext, add a random_action.
- As subactions, use several copies of add_weapon with different weapons.

That would not be possible with team weapons like HMGs, though. No idea how to do that!
27 Sep 2016, 19:26 PM
#3
avatar of SneakEye
Senior Modmaker Badge

Posts: 817 | Subs: 5

The US Lieutenant, Captain and Major are abilities when you buy them for the first time. You can make such an ability and use the random_action to choose between different squads.
27 Sep 2016, 20:01 PM
#4
avatar of TheWise

Posts: 31

Partisans were called in with an ability, using a reinforcement action. There were several types of Partisan squads with different loadouts, and one of them would been spawned randomly. That functionality isn't available for individual squad members, though.

What you can do:
- Make a new soldier entity.
- Leave hardpoint 1 empty.
- In action_apply_ext, add a random_action.
- As subactions, use several copies of add_weapon with different weapons.

That would not be possible with team weapons like HMGs, though. No idea how to do that!


I, actually, don't need it for individual squad members. What I need is: for instance, I've got two types of the Riflemen squads: one armed mostly with M! Garand rifles, while another has mostly M! Carbines. And I want them to be spawned randomly, 50/50 or 60/40.

The US Lieutenant, Captain and Major are abilities when you buy them for the first time. You can make such an ability and use the random_action to choose between different squads.


TBA, these are upgrades, not abilities. But kinda yes, they do contain the reinforcement_action.
28 Sep 2016, 16:38 PM
#5
avatar of Contrivance

Posts: 165 | Subs: 2

Problem is that the spawner extension on a building points to specific squads, not a randomized container of squads.

Agameanx on the old CoH1 modding forums at relicnews came up with a solution back then that was heavy on SCAR, wherein you would place dummy squads into the spawner, and the SCAR would detect them being bought and replace them with one or more different squads.

Aside from that complex solution, an ability on the building that randomly spawns your squads is the only way.
1 user is browsing this thread: 1 guest

SHOUT IT OUT!

No ProfanityNumber of ShoutsRefresh Shout Box
blvckdream: @Rosbone yeah ... still no alternative to coh2 -_-
Last Sunday, 09:12 AM
Rosbone: @blvckdream They just might. Glad you are still in the mix brother!
Last Saturday, 14:59 PM
blvckdream: @Rosbone I submitted a request. Let`s see if they do something lol
Last Saturday, 12:28 PM
Rosbone: If you go thru the process, please mention @aerafield just for kicks :foreveralone:
Last Saturday, 10:54 AM
Rosbone: relic stopped banning people. But was rumored to do a ban-wave recently. They just announced this new portal: https://help.relic.com/hc/en-us/sections/36051779792147-Code-of-Conduct-Relic-Account
Last Saturday, 10:53 AM
blvckdream: Obvious map hacker. doesnt even hide it. who can i send the replay?
Last Saturday, 09:25 AM
blvckdream: Is there still a way to report coh2 maphackers?
Last Saturday, 09:19 AM
donofsandiego: "boo womp"
Last Friday, 19:01 PM
donofsandiego: me when my riflemen blob gets insta wipeb by a V1
Last Friday, 19:00 PM
Rosbone: @Willy Pete :clap:
Last Friday, 03:33 AM
Willy Pete: And apparently Relic has as well lol
Last Friday, 02:37 AM
Willy Pete: Do enough people care to even complain? I don't mind the v1 but I've given up caring about balance
Last Friday, 02:36 AM
Lady Xenarra: @aerafield :rofl:
01 Jan 2025, 14:11 PM
aerafield: "Deploy a devastating V-1 rocket capable of wiping out the opponent's base immediately. Only 9.99$ BUY IT NOW!"
31 Dec 2024, 22:19 PM
Lady Xenarra: I am surprised by the lack of screaming that the V-1 will be in the new battle groups.
31 Dec 2024, 14:55 PM
Rosbone: Its going to be one of those years.
25 Dec 2024, 12:39 PM
donofsandiego: rosbone coming out in the shoutbox was not on my 2024 bingo card
25 Dec 2024, 06:46 AM
Hannibal: Relic lost their most professional CoH3 hater
24 Dec 2024, 11:48 AM
Rosbone: However, since Relic added kill counts I cannot trash Coh3 anymore. And have subsequentially started to sprout breasts. I am slowly transitioning into a Coh3 enjoyer :blush:
23 Dec 2024, 13:43 PM

Ladders Top 10

  • #
    Steam Alias
    W
    L
    %
    Streak
Data provided by Relic Relic Entertainment

Replay highlight

VS
  • U.S. Forces flag cblanco ★
  • The British Forces flag 보드카 중대
  • Oberkommando West flag VonManteuffel
  • Ostheer flag Heartless Jäger
uploaded by XXxxHeartlessxxXX

Board Info

275 users are online: 275 guests
0 post in the last 24h
16 posts in the last week
60 posts in the last month
Registered members: 50452
Welcome our newest member, coinfliprun
Most online: 2043 users on 29 Oct 2023, 01:04 AM