View Issue Details

IDProjectCategoryView StatusLast Update
0000800The Dark ModCodingpublic08.10.2017 17:38
ReporterSpringheel Assigned To 
Status newResolutionopen 
Summary0000800: Player reflection should be disabled when in water
DescriptionThe player reflection is all distorted when the player is in water because the *inside* of the mesh gets reflected as well. Best idea was to just disable it when player is in water.
TagsNo tags attached.




08.10.2017 17:34

developer   ~0009422

Last edited: 08.10.2017 17:38

View 2 revisions

From the lightgem code:

    // Make sure the player model is hidden in the lightgem renders
    renderEntity_t* prent = player->GetRenderEntity();
    const int pdef = player->GetModelDefHandle();
    const int playerid = prent->suppressSurfaceInViewID;
    const int psid = prent->suppressShadowInViewID;
    prent->suppressShadowInViewID = DARKMOD_LG_VIEWID;
    prent->suppressSurfaceInViewID = DARKMOD_LG_VIEWID;

    // And the player's head
    renderEntity_t* hrent = player->GetHeadEntity()->GetRenderEntity();
    const int hdef = player->GetHeadEntity()->GetModelDefHandle();
    const int headid = hrent->suppressSurfaceInViewID;
    const int hsid = hrent->suppressShadowInViewID;
    hrent->suppressShadowInViewID = DARKMOD_LG_VIEWID;
hrent->suppressSurfaceInViewID = DARKMOD_LG_VIEWID;

Issue History

Date Modified Username Field Change
03.06.2008 17:50 Springheel New Issue
08.10.2017 17:34 nbohr1more Note Added: 0009422
08.10.2017 17:38 nbohr1more Note Edited: 0009422 View Revisions