Bah, shoot me for not reading the code, and just the comments >.<
And maybe it was listed and I accidentally read over it.
Ok. One thing in your example poosh (although helpful nonetheless!) 1000 - 1000*7*.05 = 1000 - 1000*.35 = 1000*.65 = 650, not 750
Next, so basically, your dead ... friends? take 35% of their remaining dosh from the jackpot.
Subsequently, it can be seen that in the total yield for the wave is at max 2*AllZedsKilledByPlayers. A death can then been seen as a loss of total yield from the wave by:
CCoP = CurrentCashOfPlayer
Player Death = (CCoP - CCoP*.35[personal cash]) - (CCoP - CCoP*.35[jackpot])*.35 = .65CCoP - .65*.35CCoP = .65CCoP - .2275CCoP = .4225CCoP (remaining)
That means a player death on HoE results in a 57.75% loss of current cash on a death!
Back to my example. A player with 550 dies.. so he loses 35% of his current cash. Back to 357.5 right. The jackpot loses 35% of this, 125.125, from it's total value.
The previous jackpot would be reduced to 1800 - 125.125*4 = 1800 - 500.5 = 1299.5
Resulting in only 650 dosh for the surviving two from the jackpot. 550+650 = 1200.
Total Cash from the wave out of a 5100 max yield = 357.5*4 + 1300*2 = 1430 + 2400 = 3830 or 75% of the total yield of the wave.
Now keep in mind, the total yield of the wave is with 250 cash per player going in.
The numbers will change drastically as people with higher amounts of cash dies (this really supports the let the poor people die concept). You would much rather a guy with 250 cash to die (144.275 cash overall loss), as opposed to a guy with 1800 (1039.5 total cash loss. 630 from him, 409.5 from the jackpot).
A final concept to realize from this is that it is a very real possibility of getting extremely low wave cash bonuses on later waves because of 3-5 people dying and some of them holding on cash to buy better guns.
Figuratively speaking, it is much more beneficial in wave 8 going on 9, that you saving up for those 1500 pipes (yet only have 1200 and no one can spare) to give that money to someone who could buy a wep, if not multiple people. When you survive the next round, (or not), the cash that was potentially saved can make its way into your hands.
*please note that my max yield from the wave in the examples include the starting cash of a character. (which was 250*6 combined, or 1500. The figure 3830 listed above, could also show the total gained from the wave. 3830 - 1500 = 2330, out of a max 3600, or 64.72% of the wave's potential cash to give.