View Single Post
Author Message
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 04-20-2017 , 12:32   Why sprite effect is visible through the wall?
Reply With Quote #1

I will give you this example. And who can tell me why this sprite effect is visible through the wall and how to prevent that?

PHP Code:
        new Float:atkOrigin[3]
        
pev(iEntpev_originatkOrigin)

        
message_begin (MSG_BROADCAST,SVC_TEMPENTITY)
        
write_byteTE_SPRITETRAIL 
        
engfunc(EngFunc_WriteCoordatkOrigin]) 
        
engfunc(EngFunc_WriteCoordatkOrigin])
        
engfunc(EngFunc_WriteCoordatkOrigin] + 200.0)
        
engfunc(EngFunc_WriteCoordatkOrigin]) 
        
engfunc(EngFunc_WriteCoordatkOrigin])
        
engfunc(EngFunc_WriteCoordatkOrigin] + 30.0)
        
write_short(explosive_sprite2
        
write_byte(20
        
write_byte(random_num(1,2)) 
        
write_byte(2
        
write_byte(15
        
write_byte(2
        
message_end() 
Krtola is offline
Send a message via Skype™ to Krtola