Raised This Month: $ Target: $400
 0% 

Change beam color, hooking beam ents?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Drak
Veteran Member
Join Date: Jul 2005
Old 12-27-2007 , 14:22   Change beam color, hooking beam ents?
Reply With Quote #1

I can't figure out a way to hook 'beams'. (Tripmine lasers, the egon's weapon laser). What I'm trying to do, is change the color of the tripmine's beam.
Quote:
Originally Posted by HL SDK
void CTripmineGrenade :: MakeBeam( void )
{
TraceResult tr;

// ALERT( at_console, "serverflags %f\n", gpGlobals->serverflags );

UTIL_TraceLine( pev->origin, m_vecEnd, dont_ignore_monsters, ENT( pev ), &tr );

m_flBeamLength = tr.flFraction;

// set to follow laser spot
SetThink( BeamBreakThink );
pev->nextthink = gpGlobals->time + 0.1;

Vector vecTmpEnd = pev->origin + m_vecDir * 2048 * m_flBeamLength;

m_pBeam = CBeam::BeamCreate( g_pModelNameLaser, 10 );
m_pBeam->PointEntInit( vecTmpEnd, entindex() );
m_pBeam->SetColor( 0, 214, 198 );
m_pBeam->SetScrollRate( 255 );
m_pBeam->SetBrightness( 64 );
}
Is there anyway to change the color, or catch when the beam is created?
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
 



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 11:04.


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