Adblock breaks this site

[DOD 1.3] Scope Removal

Discussion in 'Programming General' started by pvash2, May 6, 2009.

  1. pvash2

    pvash2 Newcomer

    Joined:
    May 5, 2009
    Posts:
    23
    Referrals:
    0
    Sythe Gold:
    0
    [DOD 1.3] Scope Removal

    Thanks again to c0re on this one
    No need for OpenGL to do this :) Yay

    Code:
    void DOD_SniperRemoval()
    {
    	cl_entity_s *ent;
    	const char *sprite;
    	if(cvar.dod_removescope)
    	{
    		if ((strstr(sprite, "scope_enfield")||strstr(sprite, "spoce_k42")||strstr(sprite, "erm 43")))
    		{
    			ent->curstate.rendermode = kRenderTransTexture;
    			ent->curstate.renderamt = 5;
    		}
    	}
    }
     
< Boring programming forum - let's do something about it! | [DOD 1.3] Sequence Index >


 
 
Adblock breaks this site