AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Snowflakes problem (https://forums.alliedmods.net/showthread.php?t=293896)

xTr3m3r 02-14-2017 04:08

Snowflakes problem
 
Its me again. Hi!

Im trying to make the frostnades plugin with some snowflakes effect but I cant seem to get it right.
I tried using TE_EXPLOSION - Nope. I tried using TE_SPRITE_SPRAY - Nope again. I tried using TE_SPRAY - No luck. I tried also TE_PLAYERSPRITES but nope. What should I use If I want a sprite to be sprayed around the floor and stays for like 3-4 seconds and then disappear.. where is my mistake?

The snowflake effect on 1:00 in the video:
https://www.youtube.com/watch?v=X3B22MpocBI

P.S. I have the sprite.
Thanks!

SpannerSpammer 02-14-2017 17:15

Re: Snowflakes problem
 
Try a TE_SPRITETRAIL effect.

xTr3m3r 02-15-2017 11:28

Re: Snowflakes problem
 
works perfectly, thanks

p.s. i have some problems with positioning but im going to fix them :D

xTr3m3r 02-18-2017 14:55

Re: Snowflakes problem
 
https://www.youtube.com/watch?v=QPpk7mwbe6g

Is that effect TE_SPRITETRAIL as well? If so, how do I make the positioning like this so they can go randomly like in the video?

SpannerSpammer 02-19-2017 00:19

Re: Snowflakes problem
 
Yes, I believe it is the same effect. The Gauss Gun in HL uses this effect
to make those glowing balls when you shoot at or through a wall.
Code:

#define TE_SPRITETRAIL                15                // line of moving glow sprites with gravity, fadeout, and collisions
// byte (TE_SPRITETRAIL)
// coord, coord, coord (start)
// coord, coord, coord (end)
// short (sprite index)
// byte (count)
// byte (life in 0.1's)
// byte (scale in 0.1's)
// byte (velocity along vector in 10's)
// byte (randomness of velocity in 10's)

Set the end z co-ord above the start position to get sprites that shoot
upwards and play around with the last two message byte args to set the
speed and randomness of the effects.


All times are GMT -4. The time now is 20:46.

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