conditional_patch_players_profile
Its function is to conditionally add patches to all players’ profiles, so that players can join mod battles with their own squad and get some buffs
For example, unlock different buildings or radio abilities for different vehicles and squads
For example, the function of calling artillery strikes is enabled for pilot squads equipped with FW-189 and Po-2
Also this allows the player to flexibly set the spawnCostPerSpawnPersonalScore
, we know this property is complete and usable, but cannot be set for the player’s squad
We can also add some squads to the player’s profile to shape the rules of the game while keeping the player’s own squad.
Example not well designed about what does the configuration look like?
maybe a json format
{
"ussr": {
"patchesConditions": [
{
"if": {
"curVehicle": "ussr_t_34_1941"
},
"patch": {
"spawnCostPerSpawnPersonalScore" : [100, 200, 300, 500]
}
},
{
"each": {
"humanWeap": "roks_3_gun"
},
"patch": {
"spawnCostPerSpawnPersonalScore" : [20, 20, 20]
}
}
],
"append": [
{
"squads": {
... // squads with 5x mosin_m91_30_gun
}
"squadId" : "ussr_kursk_rifle_1",
"squadType" : "rifle",
"spawnCostPerSpawnPersonalScore" : [0]
}
]
},
"germ": {
"patchesConditions": [
{
"if": {
"curVehicle": "germ_pzkpfw_VI_ausf_E_tiger"
},
"patch": {
"spawnCostPerSpawnPersonalScore" : [0, 2000, 3000, 3000]
}
},
{
"if": {
"curVehicle": "fw_189a1"
},
"patch": {
"artilleryTypeUnlocks" : [ 0, 123 ]
}
},
{
"each": {
"humanWeap": "flammenwerfer_41_gun"
},
"patch": {
"spawnCostPerSpawnPersonalScore" : [20, 20, 20]
}
}
],
"append": [
{
"squads": {
... // squads with 5x mauser_98k_gun
}
"squadId" : "germ_kursk_rifle_1",
"squadType" : "rifle",
"spawnCostPerSpawnPersonalScore" : [0]
}
]
}
}
Its purpose is to add unique modifications to those squad setups for modded games, on top of allowing players to use squads they buy and setup themselves.
Considering the function of the paratrooper box, I think this kind of profile modification in the runtime stage is feasible.
How this is implemented depends on the design. Provided for developer reference.