SRB2 Message Board  

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

Reply
 
Thread Tools Search this Thread
Old 11-17-2017   #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 11-17-2017   #2
Rapidgame7
Rookie modder
 
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.
__________________
Ever tried to start a project until you find out it's too complicated then you abandon it
Rapidgame7 is offline   Reply With Quote
Old 11-17-2017   #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 11-18-2017   #4
Rapidgame7
Rookie modder
 
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.
__________________
Ever tried to start a project until you find out it's too complicated then you abandon it

Last edited by Rapidgame7; 11-18-2017 at 09:53 AM. Reason: txet
Rapidgame7 is offline   Reply With Quote
Old 11-18-2017   #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 03:48 AM.


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