Skip to content

Commit

Permalink
Added weather effects: env_rain, env_snow, func_rainvolume and func_s…
Browse files Browse the repository at this point in the history
…nowvolume.
  • Loading branch information
FreeSlave committed Jul 21, 2024
1 parent 9501cea commit e0dc8a5
Show file tree
Hide file tree
Showing 17 changed files with 2,531 additions and 17 deletions.
1 change: 1 addition & 0 deletions cl_dll/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ set (CLDLL_SOURCES
death.cpp
demo.cpp
entity.cpp
environment.cpp
ev_common.cpp
events.cpp
flashlight.cpp
Expand Down
3 changes: 3 additions & 0 deletions cl_dll/cdll_int.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
#include "IParticleMan_Active.h"
#include "CBaseParticle.h"

#include "environment.h"

IParticleMan *g_pParticleMan = NULL;

void CL_LoadParticleMan( void );
Expand Down Expand Up @@ -418,6 +420,7 @@ int DLLEXPORT HUD_VidInit( void )
if (g_pParticleMan)
{
g_pParticleMan->ResetParticles();
g_Environment.Reset();
}
#endif

Expand Down
2 changes: 2 additions & 0 deletions cl_dll/cl_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ void VectorScale( const float *in, float scale, float *out );
float VectorNormalize( float *v );
void VectorInverse( float *v );

float UTIL_ApproachAngle( float target, float value, float speed );

// extern vec3_t vec3_origin;
extern float vec3_origin[3];

Expand Down
Loading

0 comments on commit e0dc8a5

Please sign in to comment.