#include "simulation/Elements.h" //#TPT-Directive ElementClass Element_VRSG PT_VRSG 176 Element_VRSG::Element_VRSG() { Identifier = "DEFAULT_PT_VRSG"; Name = "VRSG"; Colour = PIXPACK(0xFE68FE); MenuVisible = 0; MenuSection = SC_GAS; Enabled = 1; Advection = 1.0f; AirDrag = 0.01f * CFDS; AirLoss = 0.99f; Loss = 0.30f; Collision = -0.1f; Gravity = 0.0f; Diffusion = 0.75f; HotAir = 0.000f * CFDS; Falldown = 0; Flammable = 500; Explosive = 0; Meltable = 0; Hardness = 0; Weight = 1; Temperature = 522.0f + 273.15f; HeatConduct = 251; Description = "Gas Virus. Turns everything it touches into virus."; State = ST_GAS; Properties = TYPE_GAS|PROP_DEADLY; LowPressure = IPL; LowPressureTransition = NT; HighPressure = IPH; HighPressureTransition = NT; LowTemperature = 673.0f; LowTemperatureTransition = PT_VIRS; HighTemperature = ITH; HighTemperatureTransition = NT; Update = &Element_VIRS::update; Graphics = &Element_VRSG::graphics; } //#TPT-Directive ElementHeader Element_VRSG static int graphics(GRAPHICS_FUNC_ARGS) int Element_VRSG::graphics(GRAPHICS_FUNC_ARGS) { *pixel_mode &= ~PMODE; *pixel_mode |= FIRE_BLEND; *firer = *colr/2; *fireg = *colg/2; *fireb = *colb/2; *firea = 125; *pixel_mode |= NO_DECO; return 1; } Element_VRSG::~Element_VRSG() {}