Вы здесь
Главная > Мой блог > 3D-разработка > Движек UDK > Код зомби для UDK (Deadly Zombie) – как создать зомби

Код зомби для UDK (Deadly Zombie) – как создать зомби

Итак, нашел код зомби для движка UDK, потестил его и все работает великолепно, нашел меш зомбяка и сделал свою анимацию – у меня получилась своя зомби-армия:

zombie_03

zombie_01

zombie_02

Пока скопировал оригинал статьи со скриптом зомби, будет желание и настроение, опишу в будущем весь процесс создания.

i was just messing around with ai stuff and quickly came up with this, its a very simple zombie type thing. if you can make use of it feel free.
it will just stand there untill it sees the player, then it will follow, making no allowance for obsacles, all it can see is the players tasty brains.
no need for pathnodes or navmesh as it moves directly to the player location.

the code as it is now it takes health away from the player on contact, health goes no lower than 1.

here are some examples of other things you can do to the player pawn.
replace the line P.Health –;
with 1 or more of the following
 (assuming your player pawn is extended from UTPawn)

P.CustomTimeDilation = 0.1; //slows down time
P.Destroy(); //kills the player
P.DoJump(true);
P.Gasp();
P.GroundSpeed *=2; //double walking speed
P.InitRagdoll();
P.SetDrawScale(0.5); //half size
P.SetPhysics(PHYS_Flying); //make me fly
P.SetPhysics(PHYS_Spider); // i can climb walls!
P.ForceCrouch();

if you have question please ask on this thread
more than likely someone can give you a better answer than i can.

have fun getting them stuck places.

TestZombiePawn.uc

Code:

TestZombieBot.uc

Code:

Other AI’s from me
http://forums.epicgames.com/showthread.php?t=801590
http://forums.epicgames.com/showthread.php?t=799268
http://forums.epicgames.com/showthread.php?t=798718

September Update:

Code:

the bot works fine still 

Источник: http://forums.epicgames.com/threads/755213-Code-Deadly-Zombie

Добавить комментарий

Top