Local time:changing HUD
Welcome to Renegadeskins! You'll need to login in order to fully use all the features and view all the sections of this site.


Registration is free and will only take a few seconds of your time.
Features of a registred account:
-Your allowed to post and comment Skins.
-No Ads.
-Free 200 MB webspace for your skins.
And much more


Forum Statistics: 2657 Threads | 17936 Posts | 1107 Users | Welcome to our newest member Markerz
 
HomeFAQSearchMemberlistUsergroupsRegisterStaffLog in

Share | 
 

 changing HUD

View previous topic View next topic Go down 
AuthorMessage
ChewySphincter  
  
   Member


Your Clan: Im not in a Clan

Number of posts: 32

Age: 1918

Credits: 1211

Reputation: 0

Registration date: 2010-06-15


PostSubject: 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.
Back to top Go down
View user profile
Soulhunter  
  
   Moderator


Number of posts: 255

Age: 21

Credits: 2603

Reputation: 14

Registration date: 2009-07-20


PostSubject: Re: changing HUD   Sat Jun 19, 2010 2:50 pm

You still play on the kamuix lite server? :p

________________________________________

Back to top Go down
View user profile
crysis992  
  
   Admin


Your Clan: Heroes of Solidarity

Number of posts: 1611

Age: 19

Credits: 1002133

Reputation: 95

Registration date: 2008-11-11


PostSubject: Re: changing HUD   Sat Jun 19, 2010 3:14 pm

kamuix sux =)

st0rm ftw Very Happy

________________________________________
Back to top Go down
View user profile http://www.renegadeskins.net
gnoepower  
  
   Active Member


Your Clan: -?- *Clan No Idea* -?-

Number of posts: 500

Age: 19

Credits: 2863

Reputation: 16

Registration date: 2009-05-25


PostSubject: Re: changing HUD   Sat Jun 19, 2010 4:10 pm

crysis992 wrote:
kamuix sux =)

st0rm ftw Very Happy

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.
Back to top Go down
View user profile
mrackz  
  
   Member


Number of posts: 414

Age: 20

Credits: 3556

Reputation: 26

Registration date: 2009-08-12


PostSubject: 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);
   }
Back to top Go down
View user profile
ChewySphincter  
  
   Member


Your Clan: Im not in a Clan

Number of posts: 32

Age: 1918

Credits: 1211

Reputation: 0

Registration date: 2010-06-15


PostSubject: 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
Back to top Go down
View user profile
Good-One-Driver  
  
   VIP


Your Clan: G1D

Number of posts: 840

Age: 19

Credits: 3119

Reputation: 1

Registration date: 2009-08-03


PostSubject: Re: changing HUD   Sun Jun 20, 2010 3:17 am

kamuix was good in the old days like 2006ish

________________________________________

www.snipersdream.freeforums.org
Back to top Go down
View user profile http://www.snipersdream.freeforums.org
Soulhunter  
  
   Moderator


Number of posts: 255

Age: 21

Credits: 2603

Reputation: 14

Registration date: 2009-07-20


PostSubject: Re: changing HUD   Sun Jun 20, 2010 3:04 pm

Madrackz, is it the code from the RSF hud? :p

________________________________________

Back to top Go down
View user profile
gnoepower  
  
   Active Member


Your Clan: -?- *Clan No Idea* -?-

Number of posts: 500

Age: 19

Credits: 2863

Reputation: 16

Registration date: 2009-05-25


PostSubject: 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.
Back to top Go down
View user profile
 

changing HUD

View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
 :: Forum :: Request Section-
Jump to: