dimanche 9 mars 2014

[Source] No Fog (no DirectX) topic




Dunno if that has been posted before.
Simply put that into your entity iteration.


Code:


if (sClassname.find("FogController") != std::string::npos)
{
        static DWORD dwFogEnable = source_engine::StaticData::pBaseClient->GetNetvarOffset("DT_FogController", "m_fog.enable");
        *(byte*)(pBaseEntity + dwFogEnable) = 0;               
        continue;
}


current offset:

Code:


        m_fog.enable = 0xA0C

You can also disable the fog outside of the map with DT_Local::m_skybox3d.fog.enable = 0x184.
I didn't do it because the fog outside of the map doesn't matter anyways.





Aucun commentaire:

Enregistrer un commentaire