More color fixes for railgun
Show other players' railgun color and their firetime state. Show snapshot client's color on world item models of railgun. Fix the impact mark using color2 (spiral) rather than color1 (beam). Credits go to Ensiform and Harekiet for the refire portion.
This commit is contained in:
parent
c52bfbd5a8
commit
53d89b6c10
5 changed files with 37 additions and 14 deletions
|
@ -294,6 +294,11 @@ static void CG_Item( centity_t *cent ) {
|
|||
|
||||
cent->lerpOrigin[2] += 8; // an extra height boost
|
||||
}
|
||||
|
||||
if( item->giType == IT_WEAPON && item->giTag == WP_RAILGUN ) {
|
||||
clientInfo_t *ci = &cgs.clientinfo[cg.snap->ps.clientNum];
|
||||
Byte4Copy( ci->c1RGBA, ent.shaderRGBA );
|
||||
}
|
||||
|
||||
ent.hModel = cg_items[es->modelindex].models[0];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue