Raised This Month: $ Target: $400
 0% 

TE_BEAMFOLLOW Sprite Bug


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 04-26-2013 , 07:32   TE_BEAMFOLLOW Sprite Bug
Reply With Quote #1

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
mottzi is offline
Send a message via MSN to mottzi
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 04-26-2013 , 07:45   Re: TE_BEAMFOLLOW Sprite Bug
Reply With Quote #2

Post your code.
__________________
Kia is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 04-26-2013 , 08:54   Re: TE_BEAMFOLLOW Sprite Bug
Reply With Quote #3

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

Last edited by mottzi; 04-26-2013 at 08:59.
mottzi is offline
Send a message via MSN to mottzi
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 04-26-2013 , 09:30   Re: TE_BEAMFOLLOW Sprite Bug
Reply With Quote #4

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.

Last edited by mottzi; 04-26-2013 at 13:15.
mottzi is offline
Send a message via MSN to mottzi
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 04-26-2013 , 13:31   Re: TE_BEAMFOLLOW Sprite Bug
Reply With Quote #5

Also, that it's an engine fault, not AMXX's one
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-26-2013 , 14:18   Re: TE_BEAMFOLLOW Sprite Bug
Reply With Quote #6

He knows.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



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 10:53.


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