nuclide/Source/gs-entbase/server/defs.h
Marco Hladik d8926097fa Added custom GLSL updates, that add monochrome rendering (for better 3D Anaglyph support)
Some minor fixes regarding the entry API.
Fixed explosion effects from not animating/looping properly.
2019-02-20 14:30:16 +01:00

41 lines
726 B
C

/***
*
* Copyright (c) 2016-2019 Marco 'eukara' Hladik. All rights reserved.
*
* See the file LICENSE attached with the sources for usage details.
*
****/
//#define GS_DEVELOPER
.float gflags;
enumflags
{
GF_CANRESPAWN,
GF_USE_RELEASED,
GF_IN_VEHICLE,
GF_FROZEN,
GF_SEMI_TOGGLED
};
void Effect_CreateSpark(vector pos, vector ang);
void Effect_BreakModel(vector mins, vector maxs,vector vel, float mat);
string Util_FixModel(string mdl)
{
int c = tokenizebyseparator(mdl, "/", "\\ ");
string newpath = "";
for (int i = 0; i < c; i++) {
newpath = sprintf("%s/%s", newpath, argv(i));
}
// Kill the first /
newpath = substring(newpath, 1, strlen(newpath)-1);
#if 1
return newpath;
#else
return mdl;
#endif
}