Raised This Month: $51 Target: $400
 12% 

Solved I want to change beam(tracer) color plz help..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
cswant2kr
Junior Member
Join Date: Mar 2020
Old 03-23-2020 , 22:36   I want to change beam(tracer) color plz help..
Reply With Quote #1

I get this plugin and this gun has red beam(tracer)
but I want to change red to blue.. what should I do?
Attached Files
File Type: sma Get Plugin or Get Source (zp_extra_ethereal.sma - 192 views - 17.8 KB)

Last edited by cswant2kr; 03-24-2020 at 23:45.
cswant2kr is offline
+ARUKARI-
AlliedModders Donor
Join Date: Jul 2004
Location: Japan
Old 03-23-2020 , 22:58   Re: I want to change beam(tracer) color plz help..
Reply With Quote #2

Quote:
Originally Posted by cswant2kr View Post
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(iEntiAttackerFloat:flDamageFloat:fDir[3], ptriDamageType)
{
    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
(iAttackerszClip)
    if(
szClip 1)
    return
    new 
flEnd[3]
    
get_tr2(ptrTR_vecEndPosflEnd)

    
    
message_begin(MSG_BROADCASTSVC_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(iEntiAttackerFloat:flDamageFloat:fDir[3], ptriDamageType)
{
    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
(iAttackerszClip)
    if(
szClip 1)
    return
    new 
flEnd[3]
    
get_tr2(ptrTR_vecEndPosflEnd)

    
    
message_begin(MSG_BROADCASTSVC_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()

__________________
GitHub
SteamWishlist

六四天安門事件
+ARUKARI- is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:47.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode