X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=cl_particles.c;h=3cd14019b0292435810e4e154748f8210a0ad0d5;hp=51fe7c242e2dff5046ef555d7515a40c8dfeb38f;hb=93aadab2b3dc04d31969cd7a000d0c43573d8913;hpb=96175f8db661871ffa3a16a20f68cf8552250dcf;ds=sidebyside diff --git a/cl_particles.c b/cl_particles.c index 51fe7c24..3cd14019 100644 --- a/cl_particles.c +++ b/cl_particles.c @@ -120,10 +120,8 @@ typedef struct particleeffectinfo_s } particleeffectinfo_t; -#define MAX_PARTICLEEFFECTNAME 256 char particleeffectname[MAX_PARTICLEEFFECTNAME][64]; -#define MAX_PARTICLEEFFECTINFO 4096 particleeffectinfo_t particleeffectinfo[MAX_PARTICLEEFFECTINFO]; @@ -169,7 +167,6 @@ int ramp3[8] = {0x6d, 0x6b, 6, 5, 4, 3}; //static int explosparkramp[8] = {0x4b0700, 0x6f0f00, 0x931f07, 0xb7330f, 0xcf632b, 0xe3974f, 0xffe7b5, 0xffffff}; -#define MAX_PARTICLETEXTURES 1024 // particletexture_t is a rectangle in the particlefonttexture typedef struct particletexture_s { @@ -218,6 +215,8 @@ cvar_t cl_decals_visculling = {CVAR_SAVE, "cl_decals_visculling", "1", "perform cvar_t cl_decals_time = {CVAR_SAVE, "cl_decals_time", "20", "how long before decals start to fade away"}; cvar_t cl_decals_fadetime = {CVAR_SAVE, "cl_decals_fadetime", "1", "how long decals take to fade away"}; cvar_t cl_decals_newsystem = {CVAR_SAVE, "cl_decals_newsystem", "0", "enables new advanced decal system"}; +cvar_t cl_decals_newsystem_intensitymultiplier = {CVAR_SAVE, "cl_decals_newsystem_intensitymultiplier", "2", "boosts intensity of decals (because the distance fade can make them hard to see otherwise)"}; +cvar_t cl_decals_models = {CVAR_SAVE, "cl_decals_models", "0", "enables decals on animated models (if newsystem is also 1)"}; cvar_t cl_decals_bias = {CVAR_SAVE, "cl_decals_bias", "0.125", "distance to bias decals from surface to prevent depth fighting"}; @@ -500,6 +499,8 @@ void CL_Particles_Init (void) Cvar_RegisterVariable (&cl_decals_time); Cvar_RegisterVariable (&cl_decals_fadetime); Cvar_RegisterVariable (&cl_decals_newsystem); + Cvar_RegisterVariable (&cl_decals_newsystem_intensitymultiplier); + Cvar_RegisterVariable (&cl_decals_models); Cvar_RegisterVariable (&cl_decals_bias); }