Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //----- (0000000180053480) ----------------------------------------------------
- __int64 __fastcall CRoach::Spawn(__int64 a1)
- {
- __int64 v1; // rbx
- _QWORD *v2; // rcx
- __int64 v3; // rax
- __int64 v4; // rax
- __int64 v5; // rax
- __int64 v6; // rax
- __int64 v7; // r10
- __int64 v8; // r8
- int v9; // er8
- float *v10; // rax
- __int64 v11; // rdx
- __int64 v12; // rcx
- __int64 result; // rax
- float v14; // xmm0_4
- __int64 v15; // [rsp+20h] [rbp-28h]
- int v16; // [rsp+28h] [rbp-20h]
- __int64 v17; // [rsp+2Ch] [rbp-1Ch]
- int v18; // [rsp+34h] [rbp-14h]
- // virtual void Spawn()
- // this
- // ... Spawn
- // ... ,asdasd
- // .,.a sdjh
- // asdflk;l1-2-0
- //
- v1 = a1; // this
- Precache();
- SET_MODEL(pev, "models/npc_roach.vmd");
- UTIL_SetSize(pev, Vector(-1.0, 1.0, 0.0), Vector( 4.0, 4.0, 4.0 ));
- *(_DWORD *)(pev + 584) = 5.0;
- *(_DWORD *)(pev + 580) = 5.0;
- *(_DWORD *)(pev + 448) = 2;
- *(_DWORD *)(pev + 456) = 7;
- *(_DWORD *)(pev + 594) = 2;
- *(_DWORD *)(pev + 532) = *(_DWORD *)(pev + 144);
- *(_DWORD *)(pev + 528) = 1127481344;
- *(_QWORD *)(pev + 204) = 0i64;
- *(_DWORD *)(pev + 212) = 0;
- *(_DWORD *)(pev + 176) = 10;
- v5 = qword_1800A2420(*(unsigned int *)(pev + 416));
- *(_DWORD *)(pev + 356) = sub_18005FFE0(v5, 10);
- *(_DWORD *)(pev + 464) &= 0xFFFFFFE4;
- *(_DWORD *)(pev + 464) |= 4u;
- CBaseMonster::SetEyePosition(v1);
- *(_DWORD *)(pev + 452) = 134223105;
- *(_DWORD *)(pev + 460) = 0x2000;
- *(_DWORD *)(pev + 436) = 1;
- *(_DWORD *)(pev + 432) = 0;
- *(_DWORD *)(pev + 512) = 1065353216;
- *(_DWORD *)(pev + 516) = 1065353216;
- *(_DWORD *)(pev + 660) = 1036831949;
- *(_DWORD *)(pev + 400) |= 0x200u;
- *(_DWORD *)(pev + 408) |= 8u;
- v7 = qword_1800A2420(*(unsigned int *)(pev + 416));
- v8 = 0i64;
- for( int i = 0; i < 8; i++ )
- sub_18005FE70(v7, pev + 388, i);
- sub_180008250(this, 0);
- sub_180008250(this, 1);
- sub_180008060(this);
- qword_1800A23E8(pev);
- *(_DWORD *)(pev + 428) = 0;
- *(float *)(this + 152) = gpGlobals->time + 1.0;
- *(float *)(this + 156) = gpGlobals->time + 2.0;
- V_RandomFloat(v12, v11);
- *(_DWORD *)(this + 180) = 0;
- *(_QWORD *)(this + 184) = -1i64;
- *(float *)(this + 160) = gpGlobals->time + 5.0;
- }
- // 180008250: using guessed type __int64 __fastcall sub_180008250(_QWORD, _QWORD);
- // 18005FE70: using guessed type __int64 __fastcall sub_18005FE70(_QWORD, _QWORD, _QWORD);
- // 1800743A0: using guessed type __int64 __fastcall V_RandomFloat(_QWORD, _QWORD);
- // 1800A22B8: using guessed type __int64 qword_1800A22B8;
- // 1800A23E8: using guessed type __int64 (__fastcall *qword_1800A23E8)(_QWORD);
- // 1800A2400: using guessed type __int64 (__fastcall *SET_MODEL)(_QWORD, _QWORD);
- // 1800A2408: using guessed type __int64 (__fastcall *UTIL_SetSize)(_QWORD, _QWORD, _QWORD);
- // 1800A2420: using guessed type __int64 (__fastcall *qword_1800A2420)(_QWORD);
- //----- (0000000180053710) ----------------------------------------------------
- __int64 __fastcall CRoach::Precache(__int64 a1) // PRECACHE
- {
- __int64 v1; // rsi
- unsigned __int64 v2; // rbx
- unsigned __int64 v3; // rdi
- __int64 result; // rax
- v1 = a1;
- PRECACHE_MODEL("models/npc_roach.vmd");
- PRECACHE_MODEL("models/gibs/roach_squashed_gibs.vmd");
- PRECACHE_SOUND("npc/roach_idle1.wav");
- PRECACHE_SOUND("npc/roach_idle2.wav");
- PRECACHE_SOUND("npc/roach_idle3.wav");
- PRECACHE_SOUND("npc/roach_death1.wav");
- PRECACHE_SOUND("npc/roach_death2.wav");
- *(_DWORD *)(v1 + 188) = -1;
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement