AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=43)
-   -   Why sprite effect is visible through the wall? (https://forums.alliedmods.net/showthread.php?t=296415)

Krtola 04-20-2017 11:32

Why sprite effect is visible through the wall?
 
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() 


PartialCloning 04-26-2017 10:10

Re: Why sprite effect is visible through the wall?
 
Upload the sprite you're using. I tested it with a different sprite and it's not visible through the wall.

Krtola 04-27-2017 03:23

Re: Why sprite effect is visible through the wall?
 
Quote:

Originally Posted by PartialCloning (Post 2515741)
Upload the sprite you're using. I tested it with a different sprite and it's not visible through the wall.

You can find .spr here https://forums.alliedmods.net/showthread.php?t=270471


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

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