Quote:
Originally Posted by cswant2kr
I get this plugin and this gun has red beam(tracer)
but I want to change red to blue.. what should I do?
|
Try replace this.
PHP Code:
public TraceAttack(iEnt, iAttacker, Float:flDamage, Float:fDir[3], ptr, iDamageType)
{
if( !is_user_alive(iAttacker) || !g_has_ethereal[iAttacker])
return
new iWeapon = get_user_weapon(iAttacker)
if( iWeapon !=CSW_UMP45 )
return
new szClip
get_user_weapon(iAttacker, szClip)
if(szClip < 1)
return
new flEnd[3]
get_tr2(ptr, TR_vecEndPos, flEnd)
message_begin(MSG_BROADCAST, SVC_TEMPENTITY )
write_byte(TE_BEAMENTPOINT)
write_short(iAttacker | 0x1000)
write_coord_f(flEnd[0])
write_coord_f(flEnd[1])
write_coord_f(flEnd[2])
write_short(g_beamSpr)
write_byte(0) // framerate
write_byte(0) // framerate
write_byte(1) // life
write_byte(5) // width
write_byte(0)// noise
write_byte(255)// r, g, b
write_byte(0)// r, g, b
write_byte(0)// r, g, b
write_byte(255) // brightness
write_byte(200) // speed
message_end()
}
to
PHP Code:
public TraceAttack(iEnt, iAttacker, Float:flDamage, Float:fDir[3], ptr, iDamageType)
{
if( !is_user_alive(iAttacker) || !g_has_ethereal[iAttacker])
return
new iWeapon = get_user_weapon(iAttacker)
if( iWeapon !=CSW_UMP45 )
return
new szClip
get_user_weapon(iAttacker, szClip)
if(szClip < 1)
return
new flEnd[3]
get_tr2(ptr, TR_vecEndPos, flEnd)
message_begin(MSG_BROADCAST, SVC_TEMPENTITY )
write_byte(TE_BEAMENTPOINT)
write_short(iAttacker | 0x1000)
write_coord_f(flEnd[0])
write_coord_f(flEnd[1])
write_coord_f(flEnd[2])
write_short(g_beamSpr)
write_byte(0) // framerate
write_byte(0) // framerate
write_byte(1) // life
write_byte(5) // width
write_byte(0)// noise
write_byte(0)// r, g, b
write_byte(0)// r, g, b
write_byte(255)// r, g, b
write_byte(255) // brightness
write_byte(200) // speed
message_end()
}
__________________