Raised This Month: $ Target: $400
 0% 

Add new HUD 'Elements'


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 02-06-2005 , 15:33   Add new HUD 'Elements'
Reply With Quote #1

If i were to make some sprites, would I be able to add them to the in-game HUD? Like say i wanted to add a sprite similar to how the defusal kit sprite is shown, but above it and when someones health is less tahn 50? (I know how to do the health part...) If it is possible, how would you tell the game where to place the sprite?
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-06-2005 , 16:28  
Reply With Quote #2

You have to put it in the sprites folder and edit the sprites.txt file client-side, which is impossible.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 02-06-2005 , 17:48  
Reply With Quote #3

what if i put the sprites in the folder, and have the client himself edit the sprites.txt?
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-06-2005 , 18:15  
Reply With Quote #4

If you could get every single person that plays on that server to do that, you could get it to work.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 02-06-2005 , 18:27  
Reply With Quote #5

but how? (not how as in to edit it but how as in how to place it on the screen!)
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-06-2005 , 18:33  
Reply With Quote #6

Code:
message_begin(MSG_ONE,get_user_msgid("StatusIcon"),{0,0,0},id); write_byte(status); // status (0=hide, 1=show, 2=flash) write_string(spritename); // sprite name write_byte(r); // red write_byte(g); // green write_byte(b); // blue message_end();
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 02-07-2005 , 18:33  
Reply With Quote #7

what does "StatusIcon" hook to? and how would u specifify 'coords' for the sprite on the hud?
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-07-2005 , 19:46  
Reply With Quote #8

It makes an icon appear where the defusal kit icon, buy zone icon, VIP escape zone icon, hostage rescue zone, T escape zone, and bomb icons appear.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 02-07-2005 , 21:58  
Reply With Quote #9

does statusicon only hook for counter-strike?
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-07-2005 , 22:19  
Reply With Quote #10

Yes.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:16.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode