Blockland Forums > Modification Help

How does the MidAir message get sent to the client?

(1/3) > >>

TheGeek:
I'm making an add-on which shows new rewards (like the mid-air one), and i've already overwritten bottomprintall so it queues up messages. But for some odd reason, this doesn't affect the mid-air message. I've already tried overwriting commandtoclient to sniff all the commands being sent, but none are detected when someone is mid-aired.

So I'd like to know, how does the server tell the client someone has been mid-aired.

TheGeek:
The message is displayed on the bottom, so it must be bottomprint.

Spaceomega:
Not helping, but I have a question;  Rewards?

Like, as in something along the lines of Halo 2 "Badges"?  If so, that'd be quite cool.

Oxcorp:

--- Quote from: TheGeek on March 27, 2007, 03:42:08 PM ---The message is displayed on the bottom, so it must be bottomprint.

--- End quote ---
The same as rudy said only as bottom instead of center.
So it's like clientCmdBottomPrint("Hello World",10);
There's also serverCmdBottomPrint.

TheGeek:

--- Quote from: Spaceomega on March 27, 2007, 05:22:13 PM ---Not helping, but I have a question;  Rewards?

Like, as in something along the lines of Halo 2 "Badges"?  If so, that'd be quite cool.

--- End quote ---
It shows a message when you kill 3/5/7/9/11 people in a row, when you headshot someone, when you do x kills with weapon y, and some other stuff.
I'm also going to integrate kill ratios and stuff like that.
--- Quote from: Oxcorp on March 27, 2007, 07:54:22 PM ---
--- Quote from: TheGeek on March 27, 2007, 03:42:08 PM ---The message is displayed on the bottom, so it must be bottomprint.

--- End quote ---
The same as rudy said only as bottom instead of center.
So it's like clientCmdBottomPrint("Hello World",10);
There's also serverCmdBottomPrint.

--- End quote ---
serverCmdBottomPrint doesn't exist to my knowledge.
The problem is, normally, when you do 2 bottomprints after eachother, only the second one gets shown, because the second one overwrites the first one. I've modified the bottomprint function so it queues messages (it shows message 1, waits x seconds and then shows message 2). However, when I midair someone and a different message should be shown too, it only shows midair. That's why I need to know how the message is sent to the client.

Navigation

[0] Message Index

[#] Next page

Go to full version