HLFX.Ru Forum
профиль •  правила •  регистрация •  календарь •  народ •  FAQ •  поиск •  новое •  сутки •  главная •  выход  
HLFX.Ru Forum HLFX.Ru Forum > Разработка игр > Наши проекты > XashXT > Making sprites for the hud?
Placing some face sprite in the hud
  Предыдущая тема   Следующая тема
Автор
Тема Новая тема    Ответить
CRxTRDude
Dude extraordinare

Дата регистрации: Apr 2014
Проживает: (void)
Сообщений: 46
Возраст: 31

Рейтинг



Making sprites for the hud?

Sorry to question again, to tell the truth, I only know mapping modelling and design stuff and I'm still a noob at C++, but I'm wiling to learn.

Now for the question, Is there any way to place a sprite that comes up whenever the game begins (and add an entity that triggers it?) Just asking, because I wanted to implement face sprites like in cutscenes. i know it's too far off, but I couldn't find any way to ask. Thanks a lot!

__________________
CRxTRDude
-----------------------
Nikki Shore blog / XashXT Cookbook (CSM)

Сообщить модератору | | IP: Записан
Сообщение: 136795

Старое сообщение 24-04-2014 03:56
- За что?
domded
люби няшного котейку

Дата регистрации: Aug 2013
Проживает: (void)
Сообщений: 146

Рейтинг



there is a special entity in xashXT, hud_icon or something like that, i just dont remember its proper name.

Сообщить модератору | | IP: Записан
Сообщение: 137192

Старое сообщение 02-05-2014 23:37
- За что?
CRxTRDude
Dude extraordinare

Дата регистрации: Apr 2014
Проживает: (void)
Сообщений: 46
Возраст: 31

Рейтинг



I'll try to find that, but I'm still confused about adding entities, then adding it appropriately to the code, then placing it in the fgd for use. I'm experimenting it a bit starting with text using this tutorial here which worked, but I still can't figure out how to do graphics in hud. If someone can hand out a more compatible tutorial for hud sprites in XashXT, I would truly appreciate it.

__________________
CRxTRDude
-----------------------
Nikki Shore blog / XashXT Cookbook (CSM)

Сообщить модератору | | IP: Записан
Сообщение: 137294

Старое сообщение 07-05-2014 11:41
- За что?
Ku2zoff
Мастер Ёда из Деревни Дуракоф

Дата регистрации: Apr 2007
Проживает: В Деревне дураков
Сообщений: 6749
Возраст: 33

Рейтинг



AFAIR, entity for adding custom hud icons called hud_sprite.

Сообщить модератору | | IP: Записан
Сообщение: 137296

Старое сообщение 07-05-2014 11:56
- За что?
CRxTRDude
Dude extraordinare

Дата регистрации: Apr 2014
Проживает: (void)
Сообщений: 46
Возраст: 31

Рейтинг



I saw the hud_sprite in the code alright, but is there a way to utilize the hud_sprite as a trigger target similar to env_message?

You call the sprite name defined in hud.txt or something. This can be useful for adding stuff in the hud such as documents that the player reads or when the player is on the phone and the sprite for the person the player is talking to is there (which is the purpose of why I'm asking). This can also supplement a cellphone weapon that can only be used when the player is in a brush entity trigger.

__________________
CRxTRDude
-----------------------
Nikki Shore blog / XashXT Cookbook (CSM)

Сообщить модератору | | IP: Записан
Сообщение: 137310

Старое сообщение 07-05-2014 14:35
- За что?
CRxTRDude
Dude extraordinare

Дата регистрации: Apr 2014
Проживает: (void)
Сообщений: 46
Возраст: 31

Рейтинг



Nevermind.

Ku2zoff, domded, you were both right for one thing. There is an entity called hud_sprite ready for mapping.

Damn, I just want to sit myself in the corner and rethink of myself.

But then now that there is something to display the hud, the problem now is to make a cellphone weapon that can only be used on a specific spot/ brush entity, which I'll be placing in a new post.

Yeah, about the placement, can there be some way to modify the entity so that the sprite can be positioned anywhere like an X & Y parameter?

Again, sorry if I bothered you guys.

__________________
CRxTRDude
-----------------------
Nikki Shore blog / XashXT Cookbook (CSM)

Сообщить модератору | | IP: Записан
Сообщение: 137395

Старое сообщение 09-05-2014 15:10
- За что?
Тема: (Опционально)
Ваш ответ:



Переводчик транслита


[проверить длину сообщения]
Опции: Автоматическое формирование ссылок: автоматически добавлять [url] и [/url] вокруг интернет адресов.
Уведомление по E-Mail: отправить вам уведомление, если кто-то ответил в тему (только для зарегистрированных пользователей).
Отключить смайлики в сообщении: не преобразовывать текстовые смайлики в картинки.
Показать подпись: добавить вашу подпись в конец сообщения (только зарегистрированные пользователи могут иметь подписи).

Временная зона GMT. Текущее время 22:05. Новая тема    Ответить
  Предыдущая тема   Следующая тема
HLFX.Ru Forum HLFX.Ru Forum > Разработка игр > Наши проекты > XashXT > Making sprites for the hud?
Placing some face sprite in the hud
Версия для печати | Отправить тему по E-Mail | Подписаться на эту тему

Быстрый переход:
Оцените эту тему:

Правила Форума:
Вы not можете создавать новые темы
Вы not можете отвечать в темы
Вы not можете прикреплять вложения
Вы not можете редактировать ваши сообщения
HTML Код ВЫКЛ
vB Код ВКЛ
Смайлики ВКЛ
[IMG] Код ВКЛ
 

< Обратная связь - HLFX.ru >

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