Jump to content
Sign in to follow this  
sam_

Custom Zombie Textures

Recommended Posts

Prisoner Zombie:

https://imgur.com/a/kCnr595

Install:

Download (142 KB)
 overall_prison_co.paa 
Put the .paa into a folder on your mission file named textures
Example:

YourMissionFileName.Map\textures\overall_prison_co.paa


In your custom compiles add the line:

zombie_generate = compile preprocessFileLineNumbers "dayz_code\compile\zombie_generate.sqf";

into

if (!isDedicated) then {

 

From the Epoch client copy:  
dayz_code\compile\zombie_generate.sqf
to:
MPMissions\YourMissionFileName.Map\dayz_code\compile\zombie_generate.sqf

 

In your zombie_generate.sqf find the line:
 

_agent = createAgent [_type, _position, [], _radius, "CAN_COLLIDE"];

directly below it add:

		if (_type == "z_worker2") then {
			_agent setVehicleInit "this setObjectTexture [0, ""textures\overall_prison_co.paa""];";
			processInitCommands;
		};


Note:
If you want to edit where the zombie can spawn redirect your CfgLoot to your mission file and edit the files in:
Configs\CfgLoot\Buildings
Add/Remove "z_worker2" in zombieClass in whichever building.hpp you want to enable/disable this zombie type from spawning in

I prefer to have this guy only spawn in military zones :)

Remember to edit battleye filters

Edited by sam_

Share this post


Link to post
Share on other sites
_agent setObjectTexture [0, "textures\overall_prison_co.paa"];

this does only work for your client.

if you want for all players to see the new texture you should do this:

_agent setVehicleInit "this setObjectTexture [0, ""textures\overall_prison_co.paa""];";

 

if I'm not mistaken. You need to be aware that this might need a change in your battleye filters tho.

Share this post


Link to post
Share on other sites
5 hours ago, seelenapparat said:
_agent setObjectTexture [0, "textures\overall_prison_co.paa"];

this does only work for your client.

if you want for all players to see the new texture you should do this:

_agent setVehicleInit "this setObjectTexture [0, ""textures\overall_prison_co.paa""];";

 

if I'm not mistaken. You need to be aware that this might need a change in your battleye filters tho.

Edited, thanks for letting me know! :D

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...