Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float C_TFCompoundBow::GetCurrentCharge(void)
- {
- double chargeTime = this->GetChargeBeginTime();
- if (chargeTime != 0.0f)
- {
- double currentTime = g_pGlobals->???AbsTime???;
- return Min(currentTime - chargeTime, 1.0f);
- }
- return 0.0f;
- }
- //This makes no sense, but...
- /*
- __text:00267480 ; C_TFCompoundBow::GetCurrentCharge(void)
- __text:00267480 __ZN15C_TFCompoundBow16GetCurrentChargeEv proc near
- __text:00267480 ; DATA XREF: __const:00CCC0E0o
- __text:00267480
- __text:00267480 var_4 = dword ptr -4
- __text:00267480 arg_0 = dword ptr 8
- __text:00267480
- __text:00267480 push ebp
- __text:00267481 mov ebp, esp
- __text:00267483 sub esp, 4
- __text:00267486 call ___i686_get_pc_thunk_cx
- __text:0026748B mov eax, [ebp+arg_0]
- __text:0026748E movss xmm2, dword ptr [eax+24B4h] ; GetChargeBeginTime
- __text:00267496 pxor xmm0, xmm0
- __text:0026749A movaps xmm1, xmm0
- __text:0026749D ucomiss xmm2, xmm0
- __text:002674A0 jp short loc_2674A4
- __text:002674A2 jz short loc_2674BD
- __text:002674A4
- __text:002674A4 loc_2674A4: ; CODE XREF: C_TFCompoundBow::GetCurrentCharge(void)+20j
- __text:002674A4 mov eax, ds:(g_pGlobals - 26748Bh)[ecx]
- __text:002674AA mov eax, [eax]
- __text:002674AC movss xmm1, dword ptr [eax+0Ch]
- __text:002674B1 subss xmm1, xmm2
- __text:002674B5 minss xmm1, ds:(flt_ABCAC8 - 26748Bh)[ecx]
- __text:002674BD
- __text:002674BD loc_2674BD: ; CODE XREF: C_TFCompoundBow::GetCurrentCharge(void)+22j
- __text:002674BD movss [ebp+var_4], xmm1
- __text:002674C2 fld [ebp+var_4]
- __text:002674C5 leave
- __text:002674C6 retn
- __text:002674C6 __ZN15C_TFCompoundBow16GetCurrentChargeEv endp
- */
Advertisement
Add Comment
Please, Sign In to add comment