hey, can you use custom text decals/sprites with this?
Spoiler
TE_SetupBeamPoints
Syntax:
stock TE_SetupBeamPoints(const Float:start[3], const Float:end[3], ModelIndex, HaloIndex, StartFrame, FrameRate, Float:Life,
Float:Width, Float:EndWidth, FadeLength, Float:Amplitude, const Color[4], Speed)
Usage:
start Start position of the beam.
end End position of the beam.
ModelIndex Precached model index.
HaloIndex Precached model index.
StartFrame Initital frame to render.
FrameRate Beam frame rate.
Life Time duration of the beam.
Width Initial beam width.
EndWidth Final beam width.
FadeLength Beam fade time duration.
Amplitude Beam amplitude.
Color Color array (r, g, b, a).
Speed Speed of the beam.
Notes:
Sets up a point to point beam effect.
Return:
No return.
cuz I tried it and my game crashed (segmentation fault), the model is precached and everything.
here is the .VMT:
Code:
LightmappedGeneric
{
"$basetexture" "decals\custom\beampoint\c_text2"
"$translucent" "1"
"$decal" "1"
"$decalscale" "0.23"
}
is there something wrong?
it works fine with
PHP Code:
g_BeamSprite = PrecacheModel("materials/sprites/laserbeam.vmt", true);
but if I try it with my custom model the game crashes.