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

HLFX.Ru Forum (https://hlfx.ru/forum/index.php)
- Half-Life SDK (https://hlfx.ru/forum/forumdisplay.php?forumid=8)
-- paranoia render player model bug (https://hlfx.ru/forum/showthread.php?threadid=3267)


Отправлено daku 19-02-2012 в 12:59:

paranoia render player model bug

Hi i must fix it

but i don't know how, look at video you thould know

http://www.youtube.com/watch?v=cl5wayWprw4


Отправлено Ku2zoff 19-02-2012 в 13:43:

I've got this bug sometime... I don't remebmer what exactly causes it, maybe absence of GL_SetupTextureHeader() in model rendering code. Try to put this line into player model rendering function (StudioDrawPlayer) in GameStudioModelRenderer.cpp

C++ Source Code:
m_pStudioHeader = (studiohdr_t *)IEngineStudio.Mod_Extradata (m_pRenderModel);
IEngineStudio.StudioSetHeader( m_pStudioHeader );
IEngineStudio.SetRenderModel( m_pRenderModel );
if (cv_renderer->value && cv_nsr->value) GL_SetupTextureHeader(); // here it is


Отправлено daku 20-02-2012 в 17:10:

pasted to the end of the function and it did not find anything on the same;/


Отправлено Ku2zoff 21-02-2012 в 01:33:

C++ Source Code:
int CGameStudioModelRenderer::[b][color=red]_[/color]StudioDrawPlayer[/b]( int flags, entity_state_t *pplayer )

not
C++ Source Code:
int CGameStudioModelRenderer::[b]StudioDrawPlayer[/b]( int flags, entity_state_t *pplayer )


Отправлено daku 21-02-2012 в 11:52:

now weapon model has player skin ;/


Отправлено Ku2zoff 21-02-2012 в 12:28:

Paste string

C++ Source Code:
if (cv_renderer->value && cv_nsr->value) GL_SetupTextureHeader();

in p_model rendering code if it absent there.

Добавлено 21-02-2012 в 19:28:

This bug is a result of incomplete copy-paste of BUzer's code. In standard StudioModelRenderer you may copy-paste all strings commented //buz from Paranoia SRC into your code and all will be ok. But in custom StudioModelRenderer you also must copy-paste these strings inside new functions.


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

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