TE_Setupbeamlaser spawns at wrong location
Hi guys.
Code:
public Action:TestCommand_Used(client, args) Clientid and targetid are definately correct because the nicknames in the debugline are as well. I'm using L4D2 btw. Any ideas? I'm clueless on that one. Also, I wanted to play a laserbeam-sound but unfortunately I can't find any in the L4D2-soundlib, although I'm sure that I just haven't looked properly yet. Maybe one of you can give me the path of a useable soundfile, I'm pretty sure I heard one in a l4d2-plugin before. Thanks in advance! House |
Re: TE_Setupbeamlaser spawns at wrong location
No ideas?
|
Re: TE_Setupbeamlaser spawns at wrong location
Try different beam materials...
or quick try this. Haven't tested now because using another computer
Spoiler
Just aim someone human player and use command sm_beam Have read that it could make beam but you see it from up to down or vice versa. But not show better from sides... Assuming now. |
Re: TE_Setupbeamlaser spawns at wrong location
No difference, sorry :(
What I've also noticed on both commands: Sometimes the game just crashes (only the client not the server, no error message on both sides, the server just registers a timeout). I mean, wtf? |
Re: TE_Setupbeamlaser spawns at wrong location
for HaloIndex use g_sprite aswell.
also the origins of the entities are used for the start/end points so if both entities are clients then the origin is at the feet so it will be feet to feet. i'd also move the tempent setup to just before where you send it, no point setting it up if you're not going to send it because of certain conditions. |
Re: TE_Setupbeamlaser spawns at wrong location
Still no difference. Also there is no connection between the feet.
|
Re: TE_Setupbeamlaser spawns at wrong location
try using TE_SetupBeamPoints instead and use the client/target eye posisiton as the start/end points, also add a check to see if client/target is a alive unless you want to be able to track them when they're dead too.
|
Re: TE_Setupbeamlaser spawns at wrong location
That works, but has the disadvantage that it's not attached to the players.
|
Re: TE_Setupbeamlaser spawns at wrong location
I update my post #3
Ok, TE_SetupBeamLaser works but maybe not way you like it. It have laser effect. You can see beam from one direction (look entity where beam start) and when your view is close between two entities. Otherwise it fade out when look other way or move far. But try this, using env_beam (I tested in Cs:s)
Spoiler
* by the way... can be done custom TempEnts ?? *edit Here, I made stock in same code... this should be included in SM sdktools. TE_SetupBeamEnts() PHP Code:
|
Re: TE_Setupbeamlaser spawns at wrong location
Unfortunately, none of these examples are working, no errors, nothing happens. I'm using "materials/sprites/laserbeam.vmt".
|
All times are GMT -4. The time now is 13:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.