spirthack / CSGOSimple

A simple base for CS:GO internal hacks
http://csgosimple.eu
MIT License
399 stars 150 forks source link

GetStudioModel(Model()) is returning nullptr #112

Closed u20291022 closed 4 years ago

u20291022 commented 4 years ago

Im trying to do simple hitscan (with one hitbox)

`Vector Aimbot::Hitscan(C_BasePlayer* pEnt) {

if (g_Autowall.GetDamage(pEnt->GetHitboxPos(HITBOX_CHEST)))
    return pEnt->GetHitboxPos(HITBOX_CHEST);

return Vector(0.f, 0.f, 0.f);

}`

And I constantly get an error in GetHitboxPos(int hitbox) auto studio_model = g_MdlInfo->GetStudiomodel(GetModel());