saildeep / SmmCaptureEvolve.Altis

Capture the Island Mission for ARMA3
2 stars 2 forks source link

Add tracking marker for AI units leaving their zone #7

Closed saildeep closed 7 years ago

saildeep commented 7 years ago

A Common Problem is, that the AI leaves the zone range and is not locatable by the player. To prevent this, all AI units leaving a Zone should be displayed on the Map with a marker. The biggest problem here is, keeping the impact on performance low.

hanibalv2 commented 7 years ago

i work on a "buy zone" action at the tent.

i forced to use this formula :

_price = (UnitsInZone x 100 x ZoneSize) /(time past since on_zone_enter is triggerd)

hanibalv2 commented 7 years ago

if a zone is bought the remaining Units will be deleted.

The time value will guarantee that the action get functional and will not be abused.

hanibalv2 commented 7 years ago

in the case that i am to stupid for advance math i decided to take the advice from Fezward.

the Zone is only purchasable if 20 percent of the Units + vehicles left.

so the formula then is something like that:

if (20percent) then{ _price = (leftUnits1000 + leftVehicles10000)/(time past since on_zone_enter is triggerd) }

which give out a nice low but accurate price. (between 1000 and 500 for a small zone if 10 percent left)

saildeep commented 7 years ago

Please open a new ticket for this. I think it should not depend on the time passes as this may force the player to wait for no reason. I think counting the units for the zone price may be sufficient.

justcallmeduncan commented 7 years ago

the price could be exponentially to the number of living units

hanibalv2 commented 7 years ago

new issue for buy zone function