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

HLFX.Ru Forum (https://hlfx.ru/forum/index.php)
- Half-Life SDK (https://hlfx.ru/forum/forumdisplay.php?forumid=8)
-- AddToFullPack (https://hlfx.ru/forum/showthread.php?threadid=4092)


Отправлено MisterDeath 12-09-2013 в 16:51:

Half-Life AddToFullPack

I can make invisible entity ONLY for the owner of this entity... but this code dont work...

Can help me ???

C++ Source Code:
1
int AddToFullPack( struct entity_state_s *state, int e, edict_t *ent, edict_t *host, int hostflags, int player, unsigned char *pSet )
2
{
3
  if( ent->v.owner != host->v.owner )
4
  {
5
    if ( state->skin == 666 )
6
    {
7
      state->effects |= EF_NODRAW;
8
    }
9
  }
10
}


None player can see this entity, including the owner...

__________________
hl 4 ever


Отправлено Дядя Миша 12-09-2013 в 17:37:

Just replace

C++ Source Code:
state->effects |= EF_NODRAW;

with
C++ Source Code:
return 0;

__________________
My Projects: download page

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

Цитата:

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


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

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