Quote:
Originally Posted by devilicioux
I am not sure but try this out ..
Register touch with the Laser entity .. and get player origin when the touch function gets called ..
|
You can't do that, since temporary entities can't be touched(he talks about laser sprite, not lasermine entity on the wall).
In
ltm_Think(i_Ent) forward, in this switch case
PHP Code:
case BEAMBREAK_THINK:
you should find this piece of code(you could just search for it)
PHP Code:
if( fBeamthink < fCurrTime && get_pcvar_num(g_LVISIBLE))
{
DrawLaser(i_Ent, vOrigin, vEnd );
set_pev( i_Ent, LASERMINE_BEAMTHINK, fCurrTime + 0.1 );
}
and replace it with this code(not tested, I just thought of that code, but it should work if i haven't missed something)
PHP Code:
if( fBeamthink < fCurrTime && get_pcvar_num(g_LVISIBLE))
{
if(fFraction < 1.0)
get_tr2(0, TR_vecEndPos, vEnd);
DrawLaser(i_Ent, vOrigin, vEnd );
set_pev( i_Ent, LASERMINE_BEAMTHINK, fCurrTime + 0.1 );
}