Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Fri Apr 19, 2024 10:58 am
All times are UTC + 0
Threat-Rating-Calculator
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [4 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Ich-Henker
Flamethrower


Joined: 06 Aug 2015
Location: Germany

PostPosted: Thu Feb 21, 2019 9:35 am    Post subject:  Threat-Rating-Calculator Reply with quote  Mark this post and the followings unread

Hey,

is there someone who could create a little calculator-program that shows the threat rating from unit to unit, depending on the factors in rulesmd?

; default threat evaluation controls
MyEffectivenessCoefficientDefault=200
TargetEffectivenessCoefficientDefault=-200
TargetSpecialThreatCoefficientDefault=200
TargetStrengthCoefficientDefault=-200
TargetDistanceCoefficientDefault=-10

; defaults for dumb threat evaluation
DumbMyEffectivenessCoefficient=200
DumbTargetEffectivenessCoefficient=200
DumbTargetSpecialThreatCoefficient=200
DumbTargetStrengthCoefficient=200
DumbTargetDistanceCoefficient=-1

EnemyHouseThreatBonus=400

[UNITX]
ThreatPosed=40/xx

[BUILDINGX]
IsThreatRatingNode=yes/no

Back to top
View user's profile Send private message
E1 Elite
General


Joined: 28 May 2013

PostPosted: Thu Feb 21, 2019 11:16 am    Post subject: Reply with quote  Mark this post and the followings unread

Threat Rating node is always yes whether you give it to any building or not, so Dumb* values are never used by the game. Out of the remaining, TargetDistanceCoefficientDefault affects the target selection in AI Script Actions of attack targettype (0,n). Others seems to have no affect.

Path selection is affected by AvoidThreats/ThreatAvoidanceCoefficient.

AI's unit to unit response is controlled by Aggressive and Suicide combination for the movement related scripts. If a unit is in guard/area guard mode etc., the target selection when multipe units come into range all at once is calculated purely based on coordinates. There is no effect of the threat rating values. The preference is to select the target that is far from itself out of those in range. The calculation given in ModEnc doesn't work.

ThreatPosed is used to calculate the cumulative threat on a cell which is used in the target selection of buildings in AI scripts using the structure number script actions and cases like AvoidThreats.

Back to top
View user's profile Send private message
Ich-Henker
Flamethrower


Joined: 06 Aug 2015
Location: Germany

PostPosted: Thu Feb 21, 2019 12:36 pm    Post subject: Reply with quote  Mark this post and the followings unread

Can i post that in ModENc?

Back to top
View user's profile Send private message
E1 Elite
General


Joined: 28 May 2013

PostPosted: Thu Feb 21, 2019 12:41 pm    Post subject: Reply with quote  Mark this post and the followings unread

Sure, anyone can modify ModEnc. For me ModEnc is still giving the time sync problem (says my clock is ahead).

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1318s ][ Queries: 11 (0.0077s) ][ Debug on ]