Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Randomly spawn infantry when coalition unit in range is damaged #42

Open
skeletonwburg opened this issue Nov 26, 2022 · 3 comments
Open

Comments

@skeletonwburg
Copy link
Contributor

Spawn a small group of infantry (different predefined squads for different Trucks/APCs for example) when a ground unit of the same coalition around them is damaged or destroyed.

Makes more sense than spawning infantry on a destroyed unit.

First implementation idea:

  1. handle unit gone event, maybe unit damaged event
  2. search for closest unit with "unitEmpty=False" flag in radius (1km?)
  3. spawn randomly chosen squad around found unit
  4. set flag "unitEmpty" so we don't spawn multiple squads from same unit

considerations: don't define OP squads (RPGs are hard, MANPADS are hard)

@bitbubbler
Copy link
Owner

There needs to be more logic around when this can happen. If I hit an APC with a tendam charged ATGM (explosion on penetration, and second explosion once inside) I don't expect very active/capable infantry to depart that vehicle at any point in the future.

@bitbubbler
Copy link
Owner

It also really sucks when you put guns on a KAMAZ or something and then die seconds later to infantry that spawned underneath post gun run. While realistic to real world war, it's not the most fun from a game aspect. I think we should prioritize fun factor here

@bitbubbler
Copy link
Owner

bitbubbler commented Nov 26, 2022

some logic around randomization of units in a vehicle might be a good place to start.

So you might use the proposed logic, but not all personal carrier always has persons inside to drop. There's a bit of luck involved in that sense maybe?

🤔 trying to think how you might add skill to allow someone to best the game

maybe the units that spawn are limited by the type of unit that put down the damage? that could control the skill factor.

so you only spawn aks when you fly in a huey with guns.
but that HE missile that damaged the tank next to the apc can cause a manpad to spawn (on a low chance)
so you never get manpads in a huey
and you never get manpads from guns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants