ChewySphincter        
Number of posts : 32
Age : 1931
Reputation : 0
Registration date : 2010-06-14
| Subject: changing HUD Fri Jun 18, 2010 7:27 am | |
| somone from kamuix lite was trying to work on a HUD that changes. if your nod its a nod symbol and if your gdi it is a gdi symbol. he said it would change if you teamswapped or whatever but idk if he even finished it. |
|
Soulhunter        
Number of posts : 259
Age : 34
Reputation : 14
Registration date : 2009-07-20
| Subject: Re: changing HUD Sat Jun 19, 2010 1:50 am | |
| You still play on the kamuix lite server? :p |
|
AssimilatedCrysis-(BDoD)        
Number of posts : 1613
Age : 35
Reputation : 99
Registration date : 2008-11-11
| Subject: Re: changing HUD Sat Jun 19, 2010 2:14 am | |
| kamuix sux =) st0rm ftw |
|
gnoepower        
Number of posts : 500
Age : 32
Reputation : 19
Registration date : 2009-05-25
| Subject: Re: changing HUD Sat Jun 19, 2010 3:10 am | |
| - crysis992 wrote:
- kamuix sux =)
st0rm ftw St0rm always lags me somehow. Well kamuix did to, and I like the added aspects from the st0rm cnc mode more. Kamuix just made so many extra things it kinda raped the gameplay after a while. I think it would be possible to create a hud like that, though never heard anyone trying nor do I have a clue how. |
|
mrackz        
Number of posts : 425
Age : 32
Reputation : 25
Registration date : 2009-08-12
| Subject: Re: changing HUD Sat Jun 19, 2010 3:58 am | |
| - Code:
-
TextureCount = hudini->Get_Int("General","TextureCount",0); HudTextures = new SimpleDynVecClass<Texture *>(); for (unsigned int i = 0;i < TextureCount;i++) { char section[10]; sprintf(section,"Texture%d",i); Texture *t = new Texture;
t->TextureNameNod = new char[260]; hudini->Get_String(section,"TextureNameNod","",t->TextureNameNod,260-1);
t->TextureNameGDI = new char[260]; hudini->Get_String(section,"TextureNameGDI","",t->TextureNameGDI,260-1);
t->TextureRender2DClass = CreateRender2DClass(); t->TextureRender2DClass->Set_Texture(t->TextureNameNod); t->QuadCount = hudini->Get_Int(section,"QuadCount",0); t->Quads = new Quad[t->QuadCount]; if (t->TextureRender2DClass->Texture->Initialized == false) { t->TextureRender2DClass->Texture->Init(); } unsigned int sz = t->TextureRender2DClass->Texture->Width; float size = (float)(1.0 / sz); for (unsigned int j = 0;j < t->QuadCount;j++) { char entry[50]; sprintf(entry,"Quad%dColor",j); t->Quads[j].Color = (*ColorLibrary)[hudini->Get_Int(section,entry,0)]; sprintf(entry,"Quad%dXPos",j); float QuadXPos = hudini->Get_Float(section,entry,0); sprintf(entry,"Quad%dYPos",j); float QuadYPos = hudini->Get_Float(section,entry,0); if (QuadXPos < 0) { QuadXPos += ScreenResolution->Right; } if (QuadYPos < 0) { QuadYPos += ScreenResolution->Bottom; } sprintf(entry,"Quad%dTop",j); float QuadTop = hudini->Get_Float(section,entry,0); sprintf(entry,"Quad%dLeft",j); float QuadLeft = hudini->Get_Float(section,entry,0); sprintf(entry,"Quad%dBottom",j); float QuadBottom = hudini->Get_Float(section,entry,0); sprintf(entry,"Quad%dRight",j); float QuadRight = hudini->Get_Float(section,entry,0); float QuadXSize = QuadRight - QuadLeft; float QuadYSize = QuadBottom - QuadTop; t->Quads[j].Position.Top = QuadYPos; t->Quads[j].Position.Left = QuadXPos; t->Quads[j].Position.Bottom = QuadYPos + QuadYSize; t->Quads[j].Position.Right = QuadXPos + QuadXSize; t->Quads[j].UV.Top = QuadTop * size; t->Quads[j].UV.Left = QuadLeft * size; t->Quads[j].UV.Bottom = QuadBottom * size; t->Quads[j].UV.Right = QuadRight * size; } HudTextures->Add(t); } |
|
ChewySphincter        
Number of posts : 32
Age : 1931
Reputation : 0
Registration date : 2010-06-14
| Subject: Re: changing HUD Sat Jun 19, 2010 1:34 pm | |
| kamuix was freaking awesome! sep for it lags a LOT lol thats about the only thing that sucked about it imo but im assuming that's the code for the changing hud? lol |
|
Good-One-Driver        
Number of posts : 877
Age : 32
Reputation : 11
Registration date : 2009-08-03
| Subject: Re: changing HUD Sat Jun 19, 2010 2:17 pm | |
| kamuix was good in the old days like 2006ish |
|
Soulhunter        
Number of posts : 259
Age : 34
Reputation : 14
Registration date : 2009-07-20
| Subject: Re: changing HUD Sun Jun 20, 2010 2:04 am | |
| Madrackz, is it the code from the RSF hud? :p |
|
gnoepower        
Number of posts : 500
Age : 32
Reputation : 19
Registration date : 2009-05-25
| Subject: Re: changing HUD Sun Jun 20, 2010 2:38 am | |
| If it is, it sin't very nice to post it without credits. If it is not than it is very nice off you to post it. |
|
Sponsored content        
| Subject: Re: changing HUD | |
| |
|