Spent 45 minutes working on this. Did some extra debugging and this is called for infantry when they're placed in the Grinder. When placing vehicles in the grinder something else is called.
This isn't actually tested for issues, just checked if it looked correct when placing Initiate in the Grinder.
@JMP 0x0051986E _Grinder_Get_Soylent_Infantry_Cap_Soylent_Value _Grinder_Get_Soylent_Infantry_Cap_Soylent_Value: call dword [edx+2BCh] ; get soylent with Grinder infantry mov ecx, [esi+0x6C0] ; Get TechoTypeClass pointer? mov ecx, [ecx+0x610] ; Cost push edx lea edx, [eax+eax] ; set edx to soylent*2 cmp edx, ecx ; compare soylent*2 with cost jle .Dont_Adjust mov eax, ecx ; if soylent*2 is higher set to cost .Dont_Adjust: pop edx jmp 0x00519874
Edited by Iran, 10 January 2014 - 09:09 AM.