DayZ
CS_Mutant_DayZ
angrystoma 9/jan./2024 às 17:05
XML changes to spawn mutants
haven't done this for the one that was just added, but here it is for the CS_Mutant:

add this to db/types.xml:

<type name="SMCS_Mutant"> <nominal>0</nominal> <lifetime>1800</lifetime> <restock>0</restock> <min>1</min> <quantmin>-1</quantmin> <quantmax>-1</quantmax> <cost>100</cost> <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/> </type>

to customize what the mutant drops, add something like this to cfgspawnabletypes.xml (i just made him drop the same thing as grey NBC zombies, obviously you can change this to whatever suits your purposes)

<type name="SMCS_Mutant"> <cargo preset="ContaminatedCargo" /> <cargo chance="0.03"> <item name="AntiChemInjector" chance="1.0" /> </cargo> </type>

to spawn him there are a couple of ways you can go about it. if you're lazy like me (and also a masochist, because the SMCS_Mutant has 2200 hit points), i just added him to the existing grey NBC zombie spawn, which you can do by modifying the InfectedNBC event in db/events.xml to look like this:

<event name="InfectedNBC"> <nominal>50</nominal> <min>25</min> <max>250</max> <lifetime>3</lifetime> <restock>0</restock> <saferadius>100</saferadius> <distanceradius>50</distanceradius> <cleanupradius>100</cleanupradius> <flags deletable="0" init_random="0" remove_damaged="1"/> <position>player</position> <limit>custom</limit> <active>1</active> <children> <child lootmax="5" lootmin="0" max="0" min="75" type="ZmbM_NBC_Grey"/> <child lootmax="5" lootmin="0" max="0" min="25" type="SMCS_Mutant"/> </children> </event>

this will spawn one SMCS mutant for every 3 grey NBC zombies. you can adjust min on those to whatever distribution you like.

to make SC mutant spawn in their own group, there's a little more work involved. you'll want to define a new event in db/events.xml, call it something like InfectedMutant, and add this:

<event name="InfectedMutant"> <nominal>50</nominal> <min>25</min> <max>250</max> <lifetime>3</lifetime> <restock>0</restock> <saferadius>100</saferadius> <distanceradius>50</distanceradius> <cleanupradius>100</cleanupradius> <flags deletable="0" init_random="0" remove_damaged="1"/> <position>player</position> <limit>custom</limit> <active>1</active> <children> <child lootmax="5" lootmin="0" max="0" min="10" type="SMCS_Mutant"/> </children> </event>

you don't have to name it InfectedMutant, but make sure whatever name you choose starts with Infected, otherwise the game won't recognize it as something that spawns zombies/enemies.

to actually spawn him around the map, you then need to go into env/zombie_territories.xml and add some positions for him. don't worry about color, that's just for the dayz CE editor. here are a couple of example spawns that puts between 1 and 2 of him in the middle of the pavlovo static contaminated zone, and in the middle of the beach next to the static contaminated rify area.

<territory color="2565900000"> <zone name="InfectedMutant" smin="0" smax="0" dmin="1" dmax="2" x="2165.09" z="3320.55" r="50"/> <zone name="InfectedMutant" smin="0" smax="0" dmin="1" dmax="2" x="13714.98" z="11158.09" r="50"/> </territory>
Última edição por angrystoma; 9/jan./2024 às 17:21
< >
Exibindo comentários 15 de 5
Sachse72 10/jan./2024 às 1:45 
It's funny, I've already described it all like that in the comments, but there are people who can't read


komisch hab das alles schon in den kommentaren so beschrieben aber es gibt leute die nicht lesen können
angrystoma 10/jan./2024 às 8:54 
ah, i didn't realize you'd done that, i didn't scroll down all the way. i figured i'd just write it out and mention a bunch of things that i messed up the first time i tried adding new zombies in case other folks make similar mistakes lol
RudolfPflanz 21/fev./2024 às 9:18 
Hey angry, cheers for this. I cant get any loot drops. I stand over the body and it doesnt register. Any ideas.
angrystoma 11/mar./2024 às 21:29 
Escrito originalmente por RudolfPflanz:
Hey angry, cheers for this. I cant get any loot drops. I stand over the body and it doesnt register. Any ideas.
yeah i ultimately stopped using this mod for this reason. seems to be a bug.
Admiral_Cringe 14/out./2024 às 9:06 
Shouldn't the class be specified as Mutant1 and not SMCS_Mutant (I looked at the config)
< >
Exibindo comentários 15 de 5
Por página: 1530 50