Raised This Month: $32 Target: $400
 8% 

Transparent sprite


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sudzone
Member
Join Date: Jan 2010
Location: Bucharest
Old 05-31-2012 , 18:23   Transparent sprite
Reply With Quote #1

PHP Code:
stock show_medic(id) {
    
message_beginMSG_ALLSVC_TEMPENTITY );
    
write_byteTE_PLAYERATTACHMENT );
    
write_byteid );
    
write_coord45 );
    
write_shortgSpriteIndex2 ); 
    
write_short15 );
    
message_end();

I want sprite to be transparency, can help me someone? Thanks

Edit: i forgot, sprite is saved with alpha chanels

Last edited by sudzone; 05-31-2012 at 18:23.
sudzone is offline
Send a message via Yahoo to sudzone
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 05-31-2012 , 23:01   Re: Transparent sprite
Reply With Quote #2

Transparent sprites with "adaptive" will not work on TE_PLAYERATTACHMENT

You need to change the sprite to alphachannel.
__________________
  • ZapTic - Paintball (Version 7.1.3 b1303)
  • Your #1 CS Paintball Server since 2008
  • 85.131.163.101:27015
Leon M. is offline
sudzone
Member
Join Date: Jan 2010
Location: Bucharest
Old 06-01-2012 , 04:32   Re: Transparent sprite
Reply With Quote #3

Quote:
Originally Posted by Leon M. View Post
Transparent sprites with "adaptive" will not work on TE_PLAYERATTACHMENT

You need to change the sprite to alphachannel.
You can help me? i attach .spr file
Attached Files
File Type: zip health_zombie.zip (19.7 KB, 55 views)
sudzone is offline
Send a message via Yahoo to sudzone
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 06-01-2012 , 10:51   Re: Transparent sprite
Reply With Quote #4

Why I'm not surprised about the sprite? Sorry I can't, I'm a noob in editing sprites.
__________________
  • ZapTic - Paintball (Version 7.1.3 b1303)
  • Your #1 CS Paintball Server since 2008
  • 85.131.163.101:27015
Leon M. is offline
sudzone
Member
Join Date: Jan 2010
Location: Bucharest
Old 06-03-2012 , 09:44   Re: Transparent sprite
Reply With Quote #5

PHP Code:
stock show_medic(id) {
    
message_beginMSG_BROADCASTSVC_TEMPENTITY);
    
write_byteTE_BEAMPOINTS);
    
write_coord45);
    
write_shortgSpriteIndex2);
    
write_byte1);
    
write_byte1);
    
write_byte3);
    
write_byte33);
    
write_byte0);
    
write_byte255);
    
write_byte255);
    
write_byte255);
    
write_byte200);
    
write_byte0);
    
message_end();

I get this erorr -> Host_Error: CL_ParseServerMessage: Bad server message
I want sprite to be showed above head, anyone can help me?
sudzone is offline
Send a message via Yahoo to sudzone
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 06-03-2012 , 09:50   Re: Transparent sprite
Reply With Quote #6

It's TE_PLAYERATTACHMENT. Something is wrong with the sprite, maybe it isn't 256 colors or it isn't in the right format.
__________________

Last edited by <VeCo>; 06-03-2012 at 09:50.
<VeCo> 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 23:36.


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