for example adding a icon on capzone__bombTemplate
on bomb_site
capzone__alwaysHide:b=yes
capzone__bombTemplate:t="custom_marker+bomb_site+bomb_site_radar_hardware_animchar_03_without_antenna"
When the bomb explodes, the icon will disappear
bomb_site_radar_hardware_animchar_03_without_antenna{
_override:b=yes
custom_marker__showForTeam:i=1
custom_marker__icon:t="!ui/skin#item_tnt_block_exploder.svg"
custom_marker__iconColor:c=255, 0, 0, 100
custom_marker__iconSize:p2=20, 20
}
What is described is that the icon cannot be set currently in this case.
And I mainly want to add icons to the generated vehicles and builded entity by engineer, but this is just a small UI issue and it doesn’t affect too much.
mbs_stool_a{
_override:b=yes
_extends:t="resupply_for_ground_vehicle_zone"
resupply_zone__team:i=2
resupply_zone__resupplyFuel:b=yes
sphere_zone__radius:r=36.0
active:b=yes
zone__icon:t="!ui/skin#bullets.svg" // can't display in multiplayer games
minimap__visibleRadius:r=3000.0
minimap__visibleForAll:b=yes
building_menu__image:t="medic_veteran" // can't display for teammate in multiplayer games, but if for enemy pin to the building it works
hud_icon__image:t="medic_veteran" // can't display in multiplayer games
_tracked:t="building_menu__image"
_tracked:t="hud_icon__image"
_replicated:t="building_menu__image"
_replicated:t="hud_icon__image"
placeable_item__ownerTeam:i=2
builder_info__team:i=-1
// want to define by this
custom_marker__showForTeam:i=1
custom_marker__icon:t="!ui/skin#medic_veteran.svg"
custom_marker__iconColor:c=255, 255, 255, 100
custom_marker__iconSize:p2=20, 20
"buildByPlayer:eid"{
}
"dependsOnBuildingEid:eid"{
}
}
ussr_rallypoint{
_override:b=yes
"additiveBuildings:array"{
"item:object"{
template:t="rally_point_respawn_base+forceRespawnPriority"
tm:m=[[1.0, 0.0, 0.0] [0.0, 1.0, 0.0] [0.0, 0.0, 1.0] [0.0, 1.0, 0.0]]
}
"item:object"{
// template:t="custom_marker+placed_medic_box_item+item_in_world+mbs_desktop_stuff_a_binoculars+replicating"
template:t="placed_medic_box_item+item_in_world+mbs_desktop_stuff_a_binoculars+replicating"
tm:m=[[1.0, 0.0, 0.0] [0.0, 1.0, 0.0] [0.0, 0.0, 1.0] [0.0, -0.2, 0.0]]
}
"item:object"{
// template:t="custom_marker+placed_medic_box_item+item_in_world+bomb_site_radar_hardware_animchar_04+replicating"
template:t="placed_medic_box_item+item_in_world+bomb_site_radar_hardware_animchar_04+replicating"
tm:m=[[1.0, 0.0, 0.0] [0.0, 1.0, 0.0] [0.0, 0.0, 1.0] [0.5, -0.2, -0.3]]
}
}
}
Here is the currently running example on multiplayer games
Currently I’m using placed_medic_box_item + item_in_world
to display icon.
But I can’t change it’s icon, it just shows up as a medbox in multiplayer (actually I have set his icon).
I hope custom_marker
can help with this.
But I think this problem is not a particularly high priority.
These problems can be solved when the client can synchronize entities.blk.
Currently, Please give priority to solving another problem of tank_template+vehicle_template