Raised This Month: $ Target: $400
 0% 

Snowflakes problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xTr3m3r
Member
Join Date: Feb 2010
Old 02-14-2017 , 04:08   Snowflakes problem
Reply With Quote #1

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!

Last edited by xTr3m3r; 02-18-2017 at 14:55.
xTr3m3r is offline
SpannerSpammer
Member
Join Date: Mar 2006
Old 02-14-2017 , 17:15   Re: Snowflakes problem
Reply With Quote #2

Try a TE_SPRITETRAIL effect.
__________________
[NeoTF|DEV]SpannerSpammer-[AoE]-
NeoTF Development Team.
http://steamcommunity.com/groups/neotf
SpannerSpammer is offline
xTr3m3r
Member
Join Date: Feb 2010
Old 02-15-2017 , 11:28   Re: Snowflakes problem
Reply With Quote #3

works perfectly, thanks

p.s. i have some problems with positioning but im going to fix them
xTr3m3r is offline
xTr3m3r
Member
Join Date: Feb 2010
Old 02-18-2017 , 14:55   Re: Snowflakes problem
Reply With Quote #4

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?
xTr3m3r is offline
SpannerSpammer
Member
Join Date: Mar 2006
Old 02-19-2017 , 00:19   Re: Snowflakes problem
Reply With Quote #5

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.
__________________
[NeoTF|DEV]SpannerSpammer-[AoE]-
NeoTF Development Team.
http://steamcommunity.com/groups/neotf
SpannerSpammer 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 20:46.


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