HLFX.Ru Forum
Показать все 4 сообщений этой темы на одной странице

HLFX.Ru Forum (https://hlfx.ru/forum/index.php)
- Half-Life SDK (https://hlfx.ru/forum/forumdisplay.php?forumid=8)
-- hl1/xash monster moving and attacking in same time ? (https://hlfx.ru/forum/showthread.php?threadid=3983)


Отправлено daku 24-06-2013 в 13:54:

hl1/xash monster moving and attacking in same time ?

hi

i try to do attack in same time if monster run i have cool anim for it but anims play and monster stay in his place why ) ?


Отправлено Qwertyus 24-06-2013 в 15:42:

You should code this on your own. To merge properly walking and shooting animations and actions for your monsters. Usually HL monsters can't move when they play a shooting animation. They don't "understand" that they should run and shoot simultaneously. Most of monsters should choose between shooting action and moving action. Alien controller can move while playing a shooting animation, but it's a flying monster, so it does not walk, it just moves around a space (so when it shoots and moves simultaneously, it doesn't play a specific animation for this action, it only plays a shooting animation). But you can try to check its' code and adapt it to walking monsters maybe. Also AI players in multiplayer can shoot and run simultaneously, but player models have a specific system of animations to achieve this effect.


Отправлено Дядя Миша 24-06-2013 в 15:45:

You need a create new task or schedule - wlaking and shooting. Then add him into list of attack schedules.

__________________
My Projects: download page

F.A.Q по XashNT
Блог разработчика в телеграме

Цитата:

C:\DOCUME~1\C4C5~1\LOCALS~1\Temp\a33328if(72) : see declaration of 'size_t'


Отправлено daku 24-06-2013 в 17:29:

i think You dont understand me correctly, i want make same as player model ( bledning ) i have good anim ( in one anim monster run and in same time slash by hand ) but if i set this anim ( it plays buy not complete correct) headcrab have jumpanim i have something similar zombie run run run and if it close to player then anims change to run_attack but in same time in attacking task we have stop all monster tasks and attack only ... i wan't stop monster see it on video above

http://www.youtube.com/watch?v=RZQK62-FwMg

red line for waypoint where zombie moves if you can see on attack it's cleared and zombie stop in one position, anim has set forward move like run anim


Временная зона GMT. Текущее время 02:37.
Показать все 4 сообщений этой темы на одной странице

На основе vBulletin версии 2.3.0
Авторское право © Jelsoft Enterprises Limited 2000 - 2002.
Дизайн и программирование: Crystice Softworks © 2005 - 2024