AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   TE_BEAMFOLLOW Sprite Bug (https://forums.alliedmods.net/showthread.php?t=214380)

mottzi 04-26-2013 07:32

TE_BEAMFOLLOW Sprite Bug
 
Hi Guys,

Im giving trails to a player using the TE BEAMFOLLOW message.

My Problem is: with some sprites there is a weird bug. The trail gets attached to the player, then dissappears after 2 seconds, and shows up again, just to dissapear again after 3 seconds and so on.

Is this problem known? Are there any solutions?

Regards
Mottzi

Kia 04-26-2013 07:45

Re: TE_BEAMFOLLOW Sprite Bug
 
Post your code.

mottzi 04-26-2013 08:54

Re: TE_BEAMFOLLOW Sprite Bug
 
PHP Code:

public Util_TE_BEAMFOLLOW(identityspritelifewidthredgreenbluebrightness

    
message_begin(id MSG_ONE MSG_ALLSVC_TEMPENTITY_id); 
    
write_byte(TE_BEAMFOLLOW); 
    
write_short(entity); 
    
write_short(sprite); 
    
write_byte(life); // life in 0.1's 
    
write_byte(width); // line width in 0.1's 
    
write_byte(red); 
    
write_byte(green); 
    
write_byte(blue); 
    
write_byte(brightness); 
    
message_end(); 


public 
setTrail(id){
        new 
players[32], numplayer 
        get_players
(playersnum
        
        for(new 
inum i++) 
        { 
            
player players[i
            if( 
g_bSeeTrails[player] ) 
            { 
                
Util_TE_BEAMFOLLOW(playeridgl_sprite20525500100
            } 
        }


The bug is only showing up with one sprite. With all others it work

mottzi 04-26-2013 09:30

Re: TE_BEAMFOLLOW Sprite Bug
 
I found the bug: My plugin (or CS) somehow cant handle Sprites with Animations.

Solution: Delete the animations in the sprite file, and it works just fine.

meTaLiCroSS 04-26-2013 13:31

Re: TE_BEAMFOLLOW Sprite Bug
 
Also, that it's an engine fault, not AMXX's one

ConnorMcLeod 04-26-2013 14:18

Re: TE_BEAMFOLLOW Sprite Bug
 
He knows.


All times are GMT -4. The time now is 10:53.

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