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

HLFX.Ru Forum (https://hlfx.ru/forum/index.php)
- Half-Life SDK (https://hlfx.ru/forum/forumdisplay.php?forumid=8)
-- Host_Error: EV_Precache: 'events/GrenadeLauncher.sc' Precache can only be done in sp (https://hlfx.ru/forum/showthread.php?threadid=2519)


Отправлено S34Qu4K3 02-01-2011 в 18:28:

Host_Error: EV_Precache: 'events/GrenadeLauncher.sc' Precache can only be done in sp

Hi again

I´ve made a remake of Secondary Fire of the HL MP5 (My code is attached)

I can compile the hl.dll perfectly but when I write "give weapon_grenadelauncher" in the console I have the following error:

code:
Host_Error: EV_Precache: 'events/GrenadeLauncher.sc' Precache can only be done in spawn functions Netchan_Clear() : reliable length not 0, reliable_sequence: 57, incoming_reliable_acknowledged:


I´ve used the .sc file of the RPG beacause i´m using the v_rpg.mdl


Отправлено PoD-Stas 02-01-2011 в 18:32:

S34Qu4K3 so Precache GrenadeLauncher.sc in spawn What problems?)


Отправлено S34Qu4K3 02-01-2011 в 18:40:

C++ Source Code:
1
void CGrenadeLauncher::Spawn( )
2
 
3
{
4
  m_usGrenadeLauncher = PRECACHE_EVENT( 1, "events/GrenadeLauncher.sc" );
5
  //...


??

EDIT: I have the same error


Отправлено Дядя Миша 02-01-2011 в 18:46:

S34Qu4K3 and now add in W_Precache (in weapons.cpp) new line

C++ Source Code:
UTIL_PrecacheOtherWeapon( "weapon_GrenadeLauncher" );

__________________
My Projects: download page

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

Цитата:

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


Отправлено S34Qu4K3 02-01-2011 в 19:16:

OMG, you are right ^^
No problems but when i try to shot, nothing happens


Отправлено Дядя Миша 02-01-2011 в 20:19:

may be the way it should be?

__________________
My Projects: download page

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

Цитата:

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


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

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