SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Editing > Editing Help

Reply
 
Thread Tools Search this Thread
Old 4 Weeks Ago   #1
jameds
James
Default Drawing on a specific player's scores HUD.

I have a script that sets a "blind timer" when a player is tagged.
I want to draw on that player's HUD, but the scores HUD hook doesn't take a player parameter.
jameds is offline   Reply With Quote
Old 4 Weeks Ago   #2
Rapidgame7
pressure pressure pressure
 
Rapidgame7's Avatar
Default

It actually does.
When making a function for the HUD hook, the second argument passed to the function is a player.
__________________
Quote:
<Steel Titanium> so many eggman laughs
<Rapidgame7> hehehe HEHE HEhEhe
<Rapidgame7> AAAAAUUUUGGGGH
Rapidgame7 is offline   Reply With Quote
Old 4 Weeks Ago   #3
jameds
James
Default

I'm talking about the scores hud hook.
It only has one parameter, a drawer.
jameds is offline   Reply With Quote
Old 4 Weeks Ago   #4
Rapidgame7
pressure pressure pressure
 
Rapidgame7's Avatar
Default

Oh, I didn't read that.
You could make a local variable outside (and above) a game HUD hook.
This hook would make a comparison to see if the current focused player is blind or not, and stores it in the local variable, which the score HUD would read and draw accordingly.
It won't update when the current player is not blind anymore when the scoreboard is open, though.
__________________
Quote:
<Steel Titanium> so many eggman laughs
<Rapidgame7> hehehe HEHE HEhEhe
<Rapidgame7> AAAAAUUUUGGGGH

Last edited by Rapidgame7; 4 Weeks Ago at 09:53 AM. Reason: txet
Rapidgame7 is offline   Reply With Quote
Old 4 Weeks Ago   #5
jameds
James
Default

That does the trick, thank you very much!
jameds is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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. The time now is 06:16 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.