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

Feature/ambient vehicles #407

Merged
merged 9 commits into from
Dec 19, 2021
Merged

Conversation

Freddo3000
Copy link
Contributor

When merged this pull request will:

  • Add an Ambient component, currently only containing this module
  • Add Ambient Vehicles module, spawning parked vehicles within an area defined by a TMF Area module
  • Vehicles can be randomly locked via a % slider
  • Vehicle distribution is previewed in the editor

image

image

image

Scripts taken from Quarry missions
Related to #339

@Freddo3000 Freddo3000 marked this pull request as draft December 31, 2020 16:54
Copy link
Collaborator

@headswe headswe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, tho that formatting is wonky.

addons/ambient/functions/fnc_ambientVehicleInit.sqf Outdated Show resolved Hide resolved
* Component renamed from ambient to modules, as I intend to add more "generic" modules
* Trigger logic edited. Now works with repeatable triggers by despawning/respawning vehicles
* Allowed more object types to be spawned. Allows module to be used for garbage/barricade objects.
* Randomized facing direction, vehicles should now appear facing both ways instead of only one way down the road
* Improved area handling (now properly supports rectangles and ellipses, instead of only circles)
@Freddo3000 Freddo3000 marked this pull request as ready for review August 16, 2021 11:51
Copy link
Collaborator

@headswe headswe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@headswe headswe merged commit b38921c into TMF3:dev Dec 19, 2021
@Freddo3000 Freddo3000 deleted the feature/ambientVehicles branch December 19, 2021 18:03
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

Successfully merging this pull request may close these issues.

2 participants