• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Zombiecount HUD info

GTX2GvO

New member
I'm trying to figure out if I can add a zombies alive counter to my HUD panel.

(instead of a Zombie kill counter.)

20180608170626_1.jpg

Here you see the zombiekillcounter with 30 kills and want to change that to what the F1 window shows under

CGO: 321 Ply: 1 Zom: 1 Ent: 13 (15)

To show there are 1 Zombie(s) alive in the world/chunk

So I want to change the codeblock showing the kill counter, into a zombies alive counter.

Code:
			<!-- Zombie Counter -->
		<!-- Player zombie kills -->
		<rect width="168" height="43" controller="PlayerStatsWindow">
			<sprite depth="2" pos="3,-3"  name="background" height="37" width="162" color="64,64,64,100" type="sliced"/>
			<sprite depth="4" name="icon" size="26,26" style="icon32px" pos="11, -9" sprite="ui_game_symbol_zombie" color="[white]"/>
			<label depth="6" name="TextContent" pos="0,-8" font_size="28" color="[white]" justify="center" pivot="topleft" text=" [DECEA3]{playerzombiekills}[-]" height="32" effect="outline" upper_case="true" />
		</rect>
(full HUD codeblock for reference)

Code:
	<window name="HUDLeftStatBars">
	<grid name="hud" pos="9,187" rows="4" cols="1" width="168" cell_width="168" cell_height="46" repeat_content="false" side="left" >
		<!-- Food -->
		<rect width="168" height="43" controller="HUDStatBar" stat_type="Food" visible="{statvisible}">
			<sprite depth="1" name="border" color="0,0,0,100" height="43" type="sliced" />
			<sprite depth="2" pos="3,-3"  name="background" height="37" width="162" color="64,64,64,100" type="sliced" />
			<sprite depth="3" pos="3,-3"  name="BarContent" color="50,205,50,100" type="filled" height="37" width="162" fill="{StatFill}" />
			<sprite depth="4" name="Icon" atlas="{staticonatlas|once}" sprite="{staticon|once}" size="32,32" pos="8,-6" foregroundlayer="true"/>
			<label depth="6" name="TextContent" pos="0,-8" font_size="28" color="[white]" justify="center" pivot="topleft" text="{statcurrentwithmax}" height="30"/>
		</rect>
		<!-- Water -->
		<rect width="168" height="43" controller="HUDStatBar" stat_type="Water" visible="{statvisible}">
			<sprite depth="1" name="border" color="0,0,0,100" height="43" type="sliced" />
			<sprite depth="2" pos="3,-3"  name="background" height="37" width="162" color="64,64,64,100" type="sliced" />
			<sprite depth="3" pos="3,-3"  name="BarContent"  color="0,180,180,100" type="filled" height="37" width="162" fill="{StatFill}" />
			<sprite depth="4" name="Icon" atlas="{staticonatlas|once}" sprite="{staticon|once}" size="32,32" pos="8,-6" foregroundlayer="true"/>
			<label depth="6" name="TextContent" pos="0,-8" font_size="28" color="[white]" justify="center" pivot="topleft" text="{statcurrentwithmax}" height="30"/>
		</rect>
		<!-- Stamina and Health -->
		<rect width="168" height="43" controller="HUDStatBar" stat_type="Stamina" visible="{statvisible}">
			<sprite depth="1" name="border" color="0,0,0,100" height="43" type="sliced"/>
			<sprite depth="2" pos="3,-3"  name="background" height="37" width="162" color="64,64,64,100" type="sliced" />
			<sprite depth="3" pos="3,-3"  name="BarContent" sprite="{statimage|once}" type="filled" height="37" width="162" fill="0"  />
			<sprite depth="4" name="Icon" atlas="{staticonatlas|once}" sprite="{staticon|once}" size="32,32" pos="8,-6" foregroundlayer="true"/>
			<label depth="6" name="TextContent" pos="0,-8" font_size="28" color="[white]" justify="center" pivot="topleft" text="{statcurrentwithmax}" height="30"/>
		</rect>
		<rect width="168" height="43" controller="HUDStatBar" stat_type="Health" visible="{statvisible}">
			<sprite depth="1" name="border" color="0,0,0,100" height="43" type="sliced" />
			<sprite depth="2" pos="3,-3"  name="background" height="37" width="162" color="64,64,64,100" type="sliced" />
			<sprite depth="3" pos="3,-3"  name="BarContent" sprite="{statimage|once}" type="filled" height="37" width="162" fill="0" />
			<sprite depth="4" name="Icon" atlas="{staticonatlas|once}" sprite="{staticon|once}" size="32,32" pos="8,-6" foregroundlayer="true"/>
			<label depth="6" name="TextContent" pos="0,-8" font_size="28" color="[white]" justify="center" pivot="topleft" text="{statcurrentwithmax}" height="30"/>
		</rect>
	</grid>

	<grid name="hud" pos="187,187" rows="4" cols="1" width="168" cell_width="168" cell_height="46" repeat_content="false" controller="InGameHUD" side="left" >
		<!-- Player map elevation -->
		<rect width="168" height="43" controller="MapStats">
			<sprite depth="2" pos="3,-3"  name="background" height="37" width="162" color="64,64,64,100" type="sliced"/>
			<sprite depth="4" name="icon" size="26,26" style="icon32px" pos="11, -9" sprite="ui_game_symbol_climb" color="[white]"/>
			<label depth="6" name="TextContent" pos="0,-8" font_size="28" color="[white]" justify="center" pivot="topleft" text=" [DECEA3]{mapelevation} M[-]" height="32" />
		</rect>
		<!-- Player temperature -->
		<rect width="168" height="43" controller="PlayerStatsWindow">
			<sprite depth="2" pos="3,-3"  name="background" height="37" width="162" color="64,64,64,100" type="sliced"/>
			<sprite depth="4" name="icon" size="26,26" style="icon32px" pos="11, -9" sprite="ui_game_symbol_temperature" color="[white]"/>
			<label depth="6" name="TextContent" pos="0,-8" font_size="28" color="[white]" justify="center" pivot="topleft" text=" [DECEA3]{playercoretemp}" height="32" />
		</rect>
		<!-- World temperature -->
		<rect width="168" height="43" controller="MapStats">
			<sprite depth="2" pos="3,-3"  name="background" height="37" width="162" color="64,64,64,100" type="sliced"/>
			<sprite depth="4" name="icon" size="26,26" style="icon32px" pos="11, -9" sprite="ui_game_symbol_cold" color="[white]"/>
			<label depth="6" name="TextContent" pos="0,-8" font_size="28" color="[white]" justify="center" pivot="topleft" text=" [DECEA3]{maptemperature}" height="32" />
		</rect>
		<!-- Zombie Counter -->
		<!-- Player zombie kills -->
		<rect width="168" height="43" controller="PlayerStatsWindow">
			<sprite depth="2" pos="3,-3"  name="background" height="37" width="162" color="64,64,64,100" type="sliced"/>
			<sprite depth="4" name="icon" size="26,26" style="icon32px" pos="11, -9" sprite="ui_game_symbol_zombie" color="[white]"/>
			<label depth="6" name="TextContent" pos="0,-8" font_size="28" color="[white]" justify="center" pivot="topleft" text=" [DECEA3]{playerzombiekills}[-]" height="32" effect="outline" upper_case="true" />
		</rect>
	</grid>		

	<rect name="hud" pos="93,210" side="left" controller="BuffPopoutList" pivot="BottomLeft" >
		<panel width="168" height="43" name="item" visible="false" pivot="right" disableautobackground="true" pos="70, 0" >
			<sprite depth="3" pos="0,0"  name="Background" sprite="ui_game_popup" height="43" width="162" pivot="center" flip="Horizontally" color="[transparent]" />
			<sprite depth="4" name="Icon" size="36,32" pos="-58,0" pivot="center" color="[transparent]"/>
			<label depth="6" name="TextContent" pos="0,0" font_size="28" color="[white]" justify="center" height="30" pivot="center"/>
		</panel>
	</rect>
</window>
I just have no clue on what I need to alter to achieve this.

 
Back
Top