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

Temp Ent beams attached to client are invisible


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
HymnsForDisco
Junior Member
Join Date: Dec 2015
Old 12-18-2017 , 17:48   Temp Ent beams attached to client are invisible
Reply With Quote #1

I am writing a plugin where the player spawns a moving projectile, then a beam is created attached to the the client, and that projectile. The problem is that when the beam is created, it is not visible unless the player is looking away from the projectile / beam end point. The beam is most visible when facing directly away from the projectile, and fades out as I turn towards it. Here is the code where the beam is created

Code:
		TE_SetupBeamLaser(iClient, iHook, g_Sprite, 0, 0, 0, 10.0, 0.25, 0.25, 10, 0.0, {255, 255, 255, 255}, 0)
		TE_SendToClient(iClient);
iHook is the projectile entity index.

Edit: Upon reversing the order of the entities (setting iHook to the start point and iClient to the end point), the beam becomes visible when looking at the projectile. However, the beam is only visible when the projectile is near the centre of the field of view. I would like to be able to have this beam visible at all times, especially since the projectile will rarely be in the centre of the field of view.

Last edited by HymnsForDisco; 12-18-2017 at 17:54.
HymnsForDisco is offline
 



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 06:39.


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