AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to make effect like this (https://forums.alliedmods.net/showthread.php?t=164220)

zhulo 08-08-2011 17:02

How to make effect like this
 
How to make effect with white falling dots like in this video?

http://www.youtube.com/watch?v=6bvY13FV3E0

Hunter-Digital 08-08-2011 17:13

Re: How to make effect like this
 
It may be one from many, you should search the plugin if you want that exact effect... but from that I see, the following messages *could* be used, from messages_const.inc:

Code:

#define TE_SPRITE_SPRAY            110      // Spray of alpha sprites
// write_byte(TE_SPRITE_SPRAY)
// write_coord(position.x)
// write_coord(position.y)
// write_coord(position.z)
// write_coord(velocity.x)
// write_coord(velocity.y)
// write_coord(velocity.z)
// write_short(sprite index)
// write_byte(count)
// write_byte(speed)
// write_byte(noise)

#define TE_SPRAY                    120      // Throws a shower of sprites or models
// write_byte(TE_SPRAY)
// write_coord(position.x)
// write_coord(position.y)
// write_coord(position.z)
// write_coord(direction.x)
// write_coord(direction.y)
// write_coord(direction.z)
// write_short(modelindex)
// write_byte(count)
// write_byte(speed)
// write_byte(noise)
// write_byte(rendermode)

#define TE_PLAYERSPRITES            121      // Sprites emit from a player's bounding box (ONLY use for players!)
// write_byte(TE_PLAYERSPRITES)
// write_short(playernum)
// write_short(sprite modelindex)
// write_byte(count)
// write_byte(variance) (0 = no variance in size) (10 = 10% variance in size)

And there could be more that can do the same effect or the exact effect by default.

These values are used in messages with SVC_TEMPENTITY, the contents of the message is described in the comments.

xPaw 08-08-2011 18:53

Re: How to make effect like this
 
I think it is TE_SPRITETRAIL

zhulo 08-08-2011 19:24

Re: How to make effect like this
 
Quote:

Originally Posted by xPaw (Post 1528611)
I think it is TE_SPRITETRAIL

YES! It is! :)


All times are GMT -4. The time now is 03:25.

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