Raised This Month: $140 Target: $400
 35% 

Why sprite effect is visible through the wall?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 04-20-2017 , 11: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
PartialCloning
Senior Member
Join Date: Dec 2015
Old 04-26-2017 , 10:10   Re: Why sprite effect is visible through the wall?
Reply With Quote #2

Upload the sprite you're using. I tested it with a different sprite and it's not visible through the wall.
PartialCloning is offline
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 04-27-2017 , 03:23   Re: Why sprite effect is visible through the wall?
Reply With Quote #3

Quote:
Originally Posted by PartialCloning View Post
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
Krtola is offline
Reply


Thread Tools
Display Modes

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 02:08.


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