Raised This Month: $ Target: $400
 0% 

FSB_AllowOverflow, Streak Sprites help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
YakumoHiratsuhi
Veteran Member
Join Date: Dec 2010
Location: Dreαmlαnd.
Old 04-08-2011 , 12:45   FSB_AllowOverflow, Streak Sprites help
Reply With Quote #1

Well, i figured out how to do the streak sprites like in CSO, but i'm very noob at scripting graphical effects, i want that only the player that did the frag see the streak sprite, the others not, but for testing i used MSG_ALL.

also the sprite only has 1 frame, so i have to do a task to make it last longer, but it throws me that error: FSB_ALLOWOVERFLOW and all that stuff.

also, what's the origin i must write to make it appear in front of the player? yeah im noob at origins too
PHP Code:
public KillSprite(id)
{
    
// Excedded sprites or bot
    
if(g_streak[id] > || is_user_bot(id))
        return;
    
    static 
origin[3]
    
get_user_origin(idorigin)
    
    
message_begin(MSG_ALLSVC_TEMPENTITY)
    
write_byte(TE_SPRITE)
    
write_coord(origin[0])
    
write_coord(origin[1]-3)
    
write_coord(origin[2]-3)
    
write_short(g_spriteindex[g_streak[id]])
    
write_byte(random_num(510))
    
write_byte(200)
    
message_end()
    
    
set_task(0.3"KillSprite"id_,_"a"5)
    

g_spriteindex is the global var that indexes the sprites, and g_streak is the number of the kill it will show.

ie; g_streak[id] = 4;

g_spriteindex[g_streak[id]]
this will show the '4 KILL!' sprite and so.

Sorry for my stupid english D:
__________________
"Podra parecer ridiculo o imposible, pero este es el camino que seguimos los verdaderos hombres, si hay un muro en el camino, lo derribamos, si no hay camino, haremos uno, con nuestras propias manos, porque el magma de nuestro corazón arde en llamas."

Last edited by YakumoHiratsuhi; 04-08-2011 at 12:53.
YakumoHiratsuhi is offline
Send a message via MSN to YakumoHiratsuhi
 


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 19:46.


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