![]() |
Показать все 1 сообщений этой темы на одной странице |
HLFX.Ru Forum (https://hlfx.ru/forum/index.php)
- Half-Life SDK (https://hlfx.ru/forum/forumdisplay.php?forumid=8)
-- Custom DrawHudString Problem// Thirdperson //Hud Money (https://hlfx.ru/forum/showthread.php?threadid=2517)
Custom DrawHudString Problem// Thirdperson //Hud Money
Hi, I´m S34Qu4K3 from Spain and i have to write this in english beacause I don´t know russian
1)First Problem
I´ve made this tutorial from Wavelenght: http://articles.thewavelength.net/315/
I don´t have any problems with the cl_dll compilation but when I am in game (I use Single PLayer Source Code from HL SDK v 2.3) all the says are black, only work if I put ^0SomeText.
I think that the problem is here, in the saytext.cpp:
else |
{ |
gHUD.DrawHudString( LINE_START, y, 320, g_szLineBuffer[i] ,255, 255, 0, 0 ); |
} |
DrawConsoleString( LINE_START, y, g_szLineBuffer[i] ); |
1 | for (i=0 ; i<2 ; i++) // Determine x and y parts of velocity |
2 | if(bIsDashing && (! ( pmove->flags & FL_DUCKING))) |
3 | { |
4 | //Increase Speed |
5 | wishvel[i] = pmove->forward[i]*(fmove*200)+ pmove->right[i]*smove; |
6 |
7 | /*My attemps |
8 | gEngfuncs.pfnClientCmd( "thirdperson" ); |
9 | CAM_ToThirdPerson(); |
10 | gEngfuncs.pfnClientCmd("snapshot\n"); |
11 | CLIENT_COMMAND ( pmove, "thirdperson\n"); */ |
12 | } |
13 | else |
14 | wishvel[i] = pmove->forward[i]*fmove + pmove->right[i]*smove; |
15 |
16 | //etc... |
extern int m_iMoneyAmount; |
CHudHealth::Draw(float flTime) |
x = gHUD.DrawHudNumber(x + 300.0, y, DHN_3DIGITS | DHN_DRAWZERO, m_iMoneyAmount, r, g, b); |
Временная зона GMT. Текущее время 23:47. | Показать все 1 сообщений этой темы на одной странице |
На основе vBulletin версии 2.3.0
Авторское право © Jelsoft Enterprises Limited 2000 - 2002.
Дизайн и программирование: Crystice Softworks © 2005 - 2024