AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   beam / line thru walls (https://forums.alliedmods.net/showthread.php?t=237176)

waza123a 03-19-2014 11:59

beam / line thru walls
 
I'm trying to make a line from players eyes, this line must go thru walls, please help how to make it go thru walls,

what I have is, this, laser/line which go until wall/object.

PHP Code:

    get_user_origin(ide3)

    
message_beginMSG_BROADCAST,SVC_TEMPENTITY)

    
write_byte (TE_BEAMENTPOINT)
    
write_short(id 0x1000)

    
    
write_coord (e[0])
    
write_coord (e[1])
    
write_coord (e[2])
    
    
write_short(sprite)
    
write_byte (0)                              
    
write_byte (1)                             
    
write_byte (1)
    
write_byte (5)                           
    
write_byte (0)    
    

    
write_byte (rgb[0])     
    
write_byte (rgb[1])
    
write_byte (rgb[2])

    
    
write_byte (255)                             
    
write_byte (10)                              
    
message_end() 

EDIT:

job done, was hard. p.m if need solution.


All times are GMT -4. The time now is 05:56.

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