Item strobe effect (pre-0-18-00 VMs)
Client-side
This commit is contained in:
Victor Chow 2001-11-12 00:56:53 +00:00
parent fc52427dc8
commit b3ac854a9b

View file

@ -447,6 +447,15 @@ static void CG_Item( centity_t *cent ) {
// add to refresh list
trap_R_AddRefEntityToScene(&ent);
// add strobe effect -- should make this toggle?
if ( ( item->giType == IT_WEAPON ) ||
( item->giType == IT_ARMOR ) ||
( item->giType == IT_AMMO) ||
( item->giType == IT_HOLDABLE) ) {
ent.customShader = cgs.media.itemStrobeShader;
trap_R_AddRefEntityToScene(&ent);
}
#ifdef MISSIONPACK
if ( item->giType == IT_WEAPON && wi->barrelModel ) {
refEntity_t barrel;