Skip to content

Comments

Custom cache locations#1688

Closed
TomDraal wants to merge 5 commits intoVdauphin:master_dailyfrom
TomDraal:h&m_tom_contribs
Closed

Custom cache locations#1688
TomDraal wants to merge 5 commits intoVdauphin:master_dailyfrom
TomDraal:h&m_tom_contribs

Conversation

@TomDraal
Copy link

@TomDraal TomDraal commented Feb 8, 2025

  • Add: this feature allows to specify a list of City IDs to set where the caches will spawn in a specific order to follow the map progression. (@TomDraal).

When merged this pull request will:

  • Add a new array called "btc_cache_cityID" to store the IDs of the cities we want a cache to spawn in "mission.sqf"
  • Change how the next cache location is selected by using the new array if not empty in "find_pos.sqf"

Final test:

  • [ X ] local
  • [ X ] server

Vdauphin and others added 5 commits February 2, 2025 19:37
This allows to set custom cache positions as for the hideouts. The custom locations are processed in the array order so the caches locations can follow the progression of the players.
Fix to make sure to match all the criterias to spawn the cache and to deal with the case where the selected city is not occupied anymore, in that case the cache is spawned randomly.
@Vdauphin
Copy link
Owner

Hello,

Thank you for your contribution
I don't really see the point of having a weapon cache with a known position, side mission are here for that?

Cheers

@TomDraal
Copy link
Author

Hello,

Thank you for your contribution I don't really see the point of having a weapon cache with a known position, side mission are here for that?

Cheers

Hi,
well it's the same point than for the hideouts custom locations.
Only the people who configure the custom locations will know where the caches will spawn and it allows them to make sure that the caches are always not too far from the map progression they want.
This feature allows servers owners to have more control on the mission if they want to, or they can leave the array empty if they want the default random behavior.
Cheers

@Vdauphin
Copy link
Owner

well it's the same point than for the hideouts custom locations.

No, because caches spawn after map generation and depend on player progress as they are not spawning in free cities.
In most situations, this will not work, as cities have a 45% chance of being occupied. It is even worse because it will fall back to btc_city_all without any filter (cache may even spawn in NameMarine)

@TomDraal TomDraal closed this Mar 7, 2025
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