Raised This Month: $ Target: $400
 0% 

Sort of get player location


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 07-03-2014 , 07:13   Re: Sort of get player location
Reply With Quote #3

Quote:
Originally Posted by devilicioux View Post
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_EntvOriginvEnd );
    
set_pevi_EntLASERMINE_BEAMTHINKfCurrTime 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(0TR_vecEndPosvEnd);
                        
    
DrawLaser(i_EntvOriginvEnd );
    
set_pevi_EntLASERMINE_BEAMTHINKfCurrTime 0.1 );

klippy 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 21:11.


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