blob: 76fba4422bd1a84f084a4620cca881b6ba225138 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
#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() {}
|