Get more in line with upstream Nuclide, using env_sprite APIs
This commit is contained in:
parent
a1a7332836
commit
530a8b03fe
|
@ -5,7 +5,6 @@
|
|||
#define CLIENT
|
||||
#define HHDEATH
|
||||
#define CLASSIC_VGUI
|
||||
#define GS_RENDERFX
|
||||
|
||||
#includelist
|
||||
../../../src/shared/fteextensions.qc
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#define SERVER
|
||||
#define VALVE
|
||||
#define HHDEATH
|
||||
#define GS_RENDERFX
|
||||
|
||||
#includelist
|
||||
../../../src/shared/fteextensions.qc
|
||||
|
|
|
@ -71,9 +71,9 @@ FX_Lego(vector pos)
|
|||
|
||||
eSmoke.effects = EF_ADDITIVE;
|
||||
eSmoke.drawmask = MASK_ENGINE;
|
||||
eSmoke.maxframe = modelframecount(eSmoke.modelindex);
|
||||
eSmoke.loops = 0;
|
||||
eSmoke.framerate = 15;
|
||||
eSmoke.SetMaxFrame(modelframecount(eSmoke.modelindex));
|
||||
eSmoke.SetLoopFlag(false);
|
||||
eSmoke.SetFramerate(15);
|
||||
eSmoke.nextthink = time + 0.05f;
|
||||
|
||||
/* there are many different lego submodels */
|
||||
|
|
|
@ -80,11 +80,10 @@ FX_Soda(vector pos, int col)
|
|||
|
||||
eSoda.effects = EF_ADDITIVE;
|
||||
eSoda.drawmask = MASK_ENGINE;
|
||||
eSoda.maxframe = modelframecount(eSoda.modelindex);
|
||||
eSoda.loops = 0;
|
||||
eSoda.scale = 1.0f;
|
||||
eSoda.m_vecRenderColor = color;
|
||||
eSoda.framerate = 20;
|
||||
eSoda.SetMaxFrame(modelframecount(eSoda.modelindex));
|
||||
eSoda.SetLoopFlag(false);
|
||||
eSoda.SetRenderColor(color);
|
||||
eSoda.SetFramerate(20);
|
||||
eSoda.nextthink = time + 0.05f;
|
||||
|
||||
static void Soda_Remove(void) {
|
||||
|
@ -101,10 +100,10 @@ FX_Soda(vector pos, int col)
|
|||
eSodaPart.scale = 0.5f;
|
||||
eSodaPart.effects = EF_ADDITIVE;
|
||||
eSodaPart.drawmask = MASK_ENGINE;
|
||||
eSodaPart.maxframe = modelframecount(eSodaPart.modelindex);
|
||||
eSodaPart.loops = 1;
|
||||
eSodaPart.SetMaxFrame(modelframecount(eSodaPart.modelindex));
|
||||
eSodaPart.SetLoopFlag(true);
|
||||
eSodaPart.m_vecRenderColor = color;
|
||||
eSodaPart.framerate = 10;
|
||||
eSodaPart.SetFramerate(10);
|
||||
eSodaPart.touch = Soda_Remove;
|
||||
eSodaPart.nextthink = time + 0.1f;
|
||||
eSodaPart.velocity = randomvec() * 128;
|
||||
|
|
|
@ -160,10 +160,10 @@ w_sodalauncher_exhaust(player pl) {
|
|||
|
||||
eExhaust.effects = EF_ADDITIVE;
|
||||
eExhaust.drawmask = MASK_ENGINE;
|
||||
eExhaust.maxframe = modelframecount(eExhaust.modelindex);
|
||||
eExhaust.loops = 0;
|
||||
eExhaust.scale = 0.5f;
|
||||
eExhaust.framerate = 20;
|
||||
eExhaust.SetMaxFrame(modelframecount(eExhaust.modelindex));
|
||||
eExhaust.SetLoopFlag(false);
|
||||
eExhaust.SetScale(0.5f);
|
||||
eExhaust.SetFramerate(20);
|
||||
eExhaust.nextthink = time + 0.05f;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue