Jump to content

Custom Zombie Textures


sam_

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_
Link to comment
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.

Link to comment
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

Link to comment
Share on other sites

  • 8 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...