Post by Pilot on Oct 14, 2014 3:54:53 GMT -5
Perhaps the most important building in the whole game.
Why?
If Police HQ is renamed, Hardwar's navigation screen will crash the game.
Did you know that Police HQ starts with 100,000 cash? After I noticed something yesterday I started a new game and ran a test, after starting a fresh game the first thing I did was stop by police HQ verify the hangar's cash then proceeded to bounty hunt a pirate worth 781 cash (it had just robbed a merchant without killing it) upon returning to Police HQ they had 99,219 cash.
I wanted to check Teeth's online game, but unfortunately (after several hours of trying) I couldn't get my past my *insert list of explicit words here* router's port-forwarding.
Since Teeth's server is running with MSGC on it should be even more interesting.
In side the quote is two comments from the MSGCv9.c source code.
/* Begins a comment,
ends the comment. */
/*
This function will check the money from the police.
If they have less than 50 000 credit it will take money from police HQ to give them.
It will only check the police pilot which are not walking in buildings owned by the police
or which are walking in such a building, but whose first command is GoBg.
Because, the police moth do respwann to quickly and are not limited in number...
*/
/*
Will check all police which are not dead.
Those who are in hangars with no moth will request a taxi to go to the local moth factory.
They will buy any special moth available in the factory.
*/
}
"if they" refers to police pilots (p_pilot).
Assuming a player never kills a pirate. . . Snowballs chance in [ . . . ]!
Any way a respawned police pilot will buy a taxi ride from their respawn point (Police HQ, Police Garrison, etc.) to Highrise Motors. At that time the code, CheckPoliceMoney, checks whether the p_pilot has more than 50 000 in cash, since AIs also start with $10000. The code finds 10 000 < 50 000 so Police HQ bails them out by giving them 50 000 to go to Highrise Motors to buy a Police Moth, Deaths Head, or Swallow. Additionally spending -$112 to -$500 (roughly) for a Taxi ride. (Spawn the lot of them in Silver-Ys I say!)
Since no players have cashed any bounties, do Police pilots get payed bounties?? Police HQ presumably still has 100 000 in cash. With a failed patrol one of them has respawned without a moth! And it happens they have less than 50 000 cash, since they just came from Limbo.
Now Police HQ gives them 50 000 of their initial 100 000 capital and now have 50 000 left for bounties, AH! another failed patrol. . . 50 000 minus 50 000 to equip the respawned p_pilot. Hmm. . . no cash remains in Police HQ.
Well good thing no one is collecting . . . bounties, Crash Override was just killed by Riedquat . . . But wait Riequat still got paid the bounty . . . That means Police HQ now has a balance of -$2000, NO NEGATIVE WITHDRAWS!! Eh, that rule is only for players . . . ?
I wonder, if renaming Police HQ crashes the game, does having a negative cash also cause problems in the game?
Thankfully Taxis are largely ignored by pirates, merchants, and players, since it has a similar code implemented.
Why?
If Police HQ is renamed, Hardwar's navigation screen will crash the game.
Did you know that Police HQ starts with 100,000 cash? After I noticed something yesterday I started a new game and ran a test, after starting a fresh game the first thing I did was stop by police HQ verify the hangar's cash then proceeded to bounty hunt a pirate worth 781 cash (it had just robbed a merchant without killing it) upon returning to Police HQ they had 99,219 cash.
I wanted to check Teeth's online game, but unfortunately (after several hours of trying) I couldn't get my past my *insert list of explicit words here* router's port-forwarding.
Since Teeth's server is running with MSGC on it should be even more interesting.
In side the quote is two comments from the MSGCv9.c source code.
/* Begins a comment,
ends the comment. */
/*
This function will check the money from the police.
If they have less than 50 000 credit it will take money from police HQ to give them.
It will only check the police pilot which are not walking in buildings owned by the police
or which are walking in such a building, but whose first command is GoBg.
Because, the police moth do respwann to quickly and are not limited in number...
*/
/*
Will check all police which are not dead.
Those who are in hangars with no moth will request a taxi to go to the local moth factory.
They will buy any special moth available in the factory.
*/
}
"if they" refers to police pilots (p_pilot).
Assuming a player never kills a pirate. . . Snowballs chance in [ . . . ]!
Any way a respawned police pilot will buy a taxi ride from their respawn point (Police HQ, Police Garrison, etc.) to Highrise Motors. At that time the code, CheckPoliceMoney, checks whether the p_pilot has more than 50 000 in cash, since AIs also start with $10000. The code finds 10 000 < 50 000 so Police HQ bails them out by giving them 50 000 to go to Highrise Motors to buy a Police Moth, Deaths Head, or Swallow. Additionally spending -$112 to -$500 (roughly) for a Taxi ride. (Spawn the lot of them in Silver-Ys I say!)
Since no players have cashed any bounties, do Police pilots get payed bounties?? Police HQ presumably still has 100 000 in cash. With a failed patrol one of them has respawned without a moth! And it happens they have less than 50 000 cash, since they just came from Limbo.
Now Police HQ gives them 50 000 of their initial 100 000 capital and now have 50 000 left for bounties, AH! another failed patrol. . . 50 000 minus 50 000 to equip the respawned p_pilot. Hmm. . . no cash remains in Police HQ.
Well good thing no one is collecting . . . bounties, Crash Override was just killed by Riedquat . . . But wait Riequat still got paid the bounty . . . That means Police HQ now has a balance of -$2000, NO NEGATIVE WITHDRAWS!! Eh, that rule is only for players . . . ?
I wonder, if renaming Police HQ crashes the game, does having a negative cash also cause problems in the game?
Thankfully Taxis are largely ignored by pirates, merchants, and players, since it has a similar code implemented.