Разработчик
Скриптер
Проверенный
Участник
Пользователь
- Сообщения
- 273
- Реакции
- 424
- Помог
- 5 раз(а)
ANARCHIST, Вот описание события (сообщения), меняйте в коде и добивайтесь того что вам нужно.
Код:
/**
* Makes a field of fire
*
* @note
* write_byte(TE_FIREFIELD)
* write_coord(origin)
* write_short(radius) (fire is made in a square around origin. -radius, -radius to radius, radius)
* write_short(modelindex)
* write_byte(count)
* write_byte(flags)
* write_byte(duration (in seconds) * 10) (will be randomized a bit)
*/
#define TE_FIREFIELD 123
/**
* Flags for the TE_FIREFIELD effect, controlling its performance and aesthetic
* features
*/
#define TEFIRE_FLAG_ALLFLOAT 1 // All sprites will drift upwards as they animate
#define TEFIRE_FLAG_SOMEFLOAT 2 // Some of the sprites will drift upwards. (50% chance)
#define TEFIRE_FLAG_LOOP 4 // If set, sprite plays at 15 fps, otherwise plays at whatever rate stretches the animation over the sprite's duration.
#define TEFIRE_FLAG_ALPHA 8 // If set, sprite is rendered alpha blended at 50% else, opaque
#define TEFIRE_FLAG_PLANAR 16 // If set, all fire sprites have same initial Z instead of randomly filling a cube.