clientCmdBottomPrint

Barbarian
12-13-2002, 11:20 PM
Anyone know a way to get the output of clientCmdBottomPrint to stay up for more than a second or two? I made a little script to copy the output of whatever vote is started to bottomprint (since it's so easy to miss on large servers) and have the following code:

package BottomVote
{
function defaultMessageCallback(%m sgType, %msgString, %a1, %a2, %a3, %a4, %a5, %a6, %a7, %a8, %a9, %a10)
{
parent::defaultMessageCal lback(%msgType, %msgString, %a1, %a2, %a3, %a4, %a5, %a6, %a7, %a8, %a9, %a10);

%type=detag(%msgType);

if(%type !$= "VoteStarted")
return;

if($voteprintenable)
clientCmdBottomPrint(%msg String, 5, 2);


}
};

activatepackage(BottomVot e);

According to the depot function reference,

clientCmdBottomPrint( %message, %time, %lines )

is the specs for the function, but no matter what I put in %time, 1,2,3,4,5, etc., it only stays up for 1/2 a second or so.

GiftOfTheGame
12-14-2002, 12:15 AM
Im guessing this is tribes gay
err, tribes 2

·liquid·
12-14-2002, 12:29 AM
I think this may be the function you're looking for. Haven't tried it yet.
package extendVoteBP {
function initVote(%msgType, %msgString) {
parent::initVote(%msgType , %msgString);
if(!$BottomPrintActive) {
%yBind = strUpr(getField(moveMap.g etBinding(voteYes), 1));
%nBind = strUpr(getField(moveMap.g etBinding(voteNo), 1));
%message = detag(%msgString) @ "\nPress " @ %yBind @ " to vote YES or " @ %nBind @ " to vote NO.";
clientCmdBottomPrint(%mes sage, 20, 2);
}
}
}
activatePackage(extendVot eBP);

I bumped it to 20 seconds.

Barbarian
12-14-2002, 04:30 AM
It traps the function call fine, it just doesn't display for long. I'll try 20 though, maybe it's 1/4 seconds or something crazy.

Or milliseconds?

·liquid·
12-14-2002, 07:25 PM
Time goes by seconds for that arg.

Barbarian
12-15-2002, 01:11 AM
btw, does anyone normally get a bottomprint vote display? I remember having one once, then never had one again. It might have been with PJ or something...

edit: hmm, it's part of the default game, it's supposed to bottom print for 10 seconds, but I never get it...