Froggod's Hunter server (Yard Sale!!!)
I have tried and failed to make the server (running EVO MOD) show the current flag return record on the map BEFORE it starts rather than just after. It is very annoying to finish a game and realize that if you had grabbed 3 more flags before returning them you could have set the record. SO... here are the current record holders as of 1/5/2011
$Host::HuntersRecords::CountAgentsOfFortune = "60";
$Host::HuntersRecords::CountCasern_Cavite = "92";
$Host::HuntersRecords::CountDustToDust = "133";
$Host::HuntersRecords::CountEscalade = "73";
$Host::HuntersRecords::CountFracas = "62";
$Host::HuntersRecords::CountMinotaurHunters = "98";
$Host::HuntersRecords::CountMinotaurUnderground = "119";
$Host::HuntersRecords::CountOasis_hunters = "98";
$Host::HuntersRecords::CountSunDried = "65";
$Host::HuntersRecords::CountTalus = "64";
$Host::HuntersRecords::CountUnderhill = "113";
$Host::HuntersRecords::NameAgentsOfFortune = "\x10\c7\c6Froggod\x11";
$Host::HuntersRecords::NameCasern_Cavite = "\x10\c7\c6Omega Supreme\x11";
$Host::HuntersRecords::NameDustToDust = "\x10\c7\c6Newbie2424\x11";
$Host::HuntersRecords::NameEscalade = "\x10\c7\c6Bloodspeweth\x11";
$Host::HuntersRecords::NameFracas = "\x10\c7\c6Bloodspeweth\x11";
$Host::HuntersRecords::NameMinotaurHunters = "\x10\c7\c6Bloodspeweth\x11";
$Host::HuntersRecords::NameMinotaurUnderground = "\x10\c7\c6hackysack\x11";
$Host::HuntersRecords::NameOasis_hunters = "\x10\c7\c6k3yp1ayer\x11";
$Host::HuntersRecords::NameSunDried = "\x10\c7\c6Bloodspeweth\x11";
$Host::HuntersRecords::NameTalus = "\x10\c7\c6Bloodspeweth\x11";
$Host::HuntersRecords::NameUnderhill = "\x10\c7\c6Bloodspeweth\x11";
I will continue to try to figure this out. I tried to make it do a centerprint message before match. I have tried to make the server send a simple chat message to everyone before match start. I can't seem to do it. Maybe if TribesNext doesn't mind I'll post them here once a month or something . and yes, I am very upset that I only hold one record on my own server
$Host::HuntersRecords::CountAgentsOfFortune = "60";
$Host::HuntersRecords::CountCasern_Cavite = "92";
$Host::HuntersRecords::CountDustToDust = "133";
$Host::HuntersRecords::CountEscalade = "73";
$Host::HuntersRecords::CountFracas = "62";
$Host::HuntersRecords::CountMinotaurHunters = "98";
$Host::HuntersRecords::CountMinotaurUnderground = "119";
$Host::HuntersRecords::CountOasis_hunters = "98";
$Host::HuntersRecords::CountSunDried = "65";
$Host::HuntersRecords::CountTalus = "64";
$Host::HuntersRecords::CountUnderhill = "113";
$Host::HuntersRecords::NameAgentsOfFortune = "\x10\c7\c6Froggod\x11";
$Host::HuntersRecords::NameCasern_Cavite = "\x10\c7\c6Omega Supreme\x11";
$Host::HuntersRecords::NameDustToDust = "\x10\c7\c6Newbie2424\x11";
$Host::HuntersRecords::NameEscalade = "\x10\c7\c6Bloodspeweth\x11";
$Host::HuntersRecords::NameFracas = "\x10\c7\c6Bloodspeweth\x11";
$Host::HuntersRecords::NameMinotaurHunters = "\x10\c7\c6Bloodspeweth\x11";
$Host::HuntersRecords::NameMinotaurUnderground = "\x10\c7\c6hackysack\x11";
$Host::HuntersRecords::NameOasis_hunters = "\x10\c7\c6k3yp1ayer\x11";
$Host::HuntersRecords::NameSunDried = "\x10\c7\c6Bloodspeweth\x11";
$Host::HuntersRecords::NameTalus = "\x10\c7\c6Bloodspeweth\x11";
$Host::HuntersRecords::NameUnderhill = "\x10\c7\c6Bloodspeweth\x11";
I will continue to try to figure this out. I tried to make it do a centerprint message before match. I have tried to make the server send a simple chat message to everyone before match start. I can't seem to do it. Maybe if TribesNext doesn't mind I'll post them here once a month or something . and yes, I am very upset that I only hold one record on my own server
Comments
* Edit * it was moved * edit *
Other than that, you will want to be looking here:
function HuntersGame::startMatch(%game) -> for the start of game version.
and
function HuntersGame::clientMissionDropReady(%game, %client) -> for when a client joins.
of course you could always try both of those.
* CenterPrint(%client, %message, %time_in_seconds, %lines);
centerprint(%client,"Current return record for this map" $Host::HuntersRecords::Count[$currentMission]),10,5);
this does not work. I know WHERE to put it I just don't know the right way to make it happen.
I also tried to pull this line right from the game. It's the one that prints the record AFTER the game. I stuck it at beggining of map but nothing happened..
messageClient( %client, 'setlinehud', "", '%1 holds the record with a return count of %2 flags!', $Host::HuntersRecords::Name[$currentMission], $Host::HuntersRecords::Count[$currentMission] );
}
That line is the one that prints the record holder at top of screen during game debrief. I just can't get it to work at beggining of the game where the "match starts in 5 seconds" text is sent. Do I have to change the 'setlinehud' to something else? It's VERY frustrating knowing the line but not how to make it show up somewhere else in the game!!!!
Can someone move this over to the code modification section so maybe they can help??
Thanks
Secondly, you don't need to worry about message length as it appears to you, so long as the ACTUAL message itself does not break the limit, you're fine. If it really bothers you that much, just use a variable like so:
I think also, you're thinking just a little too hard on the countdown one, just look in HuntersGame.cs for where the "mission countdown" is handled and slip a line in there using a similar %message format as above. Actually, if it's the mission countdown, you can completely "skip" over the client variable and go with MessageAll
SRGLINK