[Help!] Laser Problems - Sprites vs Mesh

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

MP_Duke

Banned
May 23, 2002
711
0
0
43
www.geocities.com
Here, look in INFc_Weapon, FireTracer() and scroll down to the end of the function:
Code:
// LaserSight !!
	Other = PawnOwner.TraceShot(HitLocation,HitNormal,EndTrace,Start);
	if (Other != None)
	{
        	DrawLaserDot(HitLocation, HitNormal);
	}
	else if ( LaserPoint != None )
	{
		LaserPoint.Destroy();
		LaserPoint = None;
	}
You can modify this function and overwrite it in UN_Mk23 to check if Other is a Pawn or not like this:
Code:
	// LaserSight !!
	Other = PawnOwner.TraceShot(HitLocation,HitNormal,EndTrace,Start);
	if ( Pawn(Other) != None)
             DrawSpriteDot(HitLocation, HitNormal);
	else if( Other != None )
             DrawLaserDot(HitLocation, HitNormal);
	else if ( LaserPoint != None )
	{
		LaserPoint.Destroy();
		LaserPoint = None;
	}
Now write a function DrawSpriteDot that is similar to DrawLaserDot only it spawns the sprite version.
 
Last edited:

UN17

Taijutsu Specialist
Dec 7, 2003
675
0
16
Wow, I gotta overwrite the entire FireTracer function? Darn. I was hoping not to have to do that, but ok! Thanks for the deep investigation for me. Too bad Epic doesn't support Unreal 1.5 engine. Their documentation of the 2.5 engine is awesome. Tons of tips and tricks.