ChewySphincter        
Your Clan: Im not in a Clan
Number of posts: 32
Age: 1918
Credits: 1211
Reputation: 0
Registration date: 2010-06-15
 | Subject: changing HUD Fri Jun 18, 2010 8:27 pm | |
| 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: 255
Age: 21
Credits: 2603
Reputation: 14
Registration date: 2009-07-20
 | Subject: Re: changing HUD Sat Jun 19, 2010 2:50 pm | |
| You still play on the kamuix lite server? :p ________________________________________
|
|
crysis992        
Your Clan: Heroes of Solidarity
Number of posts: 1611
Age: 19
Credits: 1002133
Reputation: 95
Registration date: 2008-11-11
 | Subject: Re: changing HUD Sat Jun 19, 2010 3:14 pm | |
| kamuix sux =) st0rm ftw  ________________________________________  |
|
gnoepower        
Your Clan: -?- *Clan No Idea* -?-
Number of posts: 500
Age: 19
Credits: 2863
Reputation: 16
Registration date: 2009-05-25
 | Subject: Re: changing HUD Sat Jun 19, 2010 4:10 pm | |
| | 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: 414
Age: 20
Credits: 3556
Reputation: 26
Registration date: 2009-08-12
 | Subject: Re: changing HUD Sat Jun 19, 2010 4:58 pm | |
| | 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        
Your Clan: Im not in a Clan
Number of posts: 32
Age: 1918
Credits: 1211
Reputation: 0
Registration date: 2010-06-15
 | Subject: Re: changing HUD Sun Jun 20, 2010 2:34 am | |
| 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        
Your Clan: G1D
Number of posts: 840
Age: 19
Credits: 3119
Reputation: 1
Registration date: 2009-08-03
 | Subject: Re: changing HUD Sun Jun 20, 2010 3:17 am | |
| kamuix was good in the old days like 2006ish ________________________________________  www.snipersdream.freeforums.org |
|
Soulhunter        
Number of posts: 255
Age: 21
Credits: 2603
Reputation: 14
Registration date: 2009-07-20
 | Subject: Re: changing HUD Sun Jun 20, 2010 3:04 pm | |
| Madrackz, is it the code from the RSF hud? :p ________________________________________
|
|
gnoepower        
Your Clan: -?- *Clan No Idea* -?-
Number of posts: 500
Age: 19
Credits: 2863
Reputation: 16
Registration date: 2009-05-25
 | Subject: Re: changing HUD Sun Jun 20, 2010 3:38 pm | |
| 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. |
|