AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Rendering for Sprites (https://forums.alliedmods.net/showthread.php?t=157254)

S34Qu4K3 05-18-2011 15:00

Rendering for Sprites
 
Hi, if I create bubbles with a temp entity:
PHP Code:

message_begin(MSG_BROADCAST ,SVC_TEMPENTITY
write_byte(TE_BUBBLES)
write_coord(Origin[0]-5)
write_coord(Origin[1]-5)
write_coord(Origin[2]+25)
write_coord(Origin[0]+5)
write_coord(Origin[1]+5)
write_coord(Origin[2]+28)
write_coord(45)
write_short(g_bubbles)
write_byte(6)
write_coord(20)
message_end() 

The bubbles sprite shows the black background. How can I solve it?

Arkshine 05-18-2011 15:02

Re: Rendering for Sprites
 
Make your sprite transparent ?

S34Qu4K3 05-18-2011 15:03

Re: Rendering for Sprites
 
Yes

Tirant 05-19-2011 23:05

Re: Rendering for Sprites
 
I think it's probably your sprite, like Ark said. You need to recompile the sprite and make it rendermode transparent. I don't remember the exact term, but its not alpha color because that would mean green-screen style, and not solid cause thats what it is, but transparent will make it ghostlike making the image invisible depending on how dark the colors are.

S34Qu4K3 05-20-2011 09:13

Re: Rendering for Sprites
 
But is a Counter-Strike´s default sprite

ConnorMcLeod 05-20-2011 11:30

Re: Rendering for Sprites
 
Use another sprite then, sprites/bubble.spr for example.

S34Qu4K3 05-20-2011 13:15

Re: Rendering for Sprites
 
Solved, thank you


All times are GMT -4. The time now is 04:22.

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