|
UFO: Alien Invasion
|
Client side entity spawning from map entity string. More...
#include "cl_spawn.h"#include "../client.h"#include "../cgame/cl_game.h"#include "cl_particle.h"#include "../../shared/parse.h"
Go to the source code of this file.
Data Structures | |
| struct | localEntityParse_t |
| struct | spawn_t |
Macros | |
| #define | MISC_MODEL_GLOW 9 |
| #define | SPAWNFLAG_NO_DAY 8 |
| #define | MIN_AMBIENT_COMPONENT 0.1 |
| #define | MIN_AMBIENT_SUM 0.50 |
Functions | |
| static void | SP_worldspawn (const localEntityParse_t *entData) |
| static void | SP_misc_model (const localEntityParse_t *entData) |
| static void | SP_misc_particle (const localEntityParse_t *entData) |
| static void | SP_misc_sound (const localEntityParse_t *entData) |
| static void | SP_light (const localEntityParse_t *entData) |
| static void | CL_SpawnCall (const localEntityParse_t *entData) |
| Finds the spawn function for the entity and calls it. | |
| void | CL_SpawnParseEntitystring (void) |
| Parse the map entity string and spawns those entities that are client-side only. | |
Variables | |
| static const value_t | localEntityValues [] |
| static const spawn_t | spawns [] |
Client side entity spawning from map entity string.
Definition in file cl_spawn.cpp.
| #define MIN_AMBIENT_COMPONENT 0.1 |
Definition at line 110 of file cl_spawn.cpp.
Referenced by SP_worldspawn().
| #define MIN_AMBIENT_SUM 0.50 |
Definition at line 111 of file cl_spawn.cpp.
Referenced by SP_worldspawn().
| #define MISC_MODEL_GLOW 9 |
Definition at line 32 of file cl_spawn.cpp.
Referenced by SP_misc_model().
| #define SPAWNFLAG_NO_DAY 8 |
Definition at line 33 of file cl_spawn.cpp.
Referenced by SP_light(), SP_misc_particle(), and SP_misc_sound().
|
static |
Finds the spawn function for the entity and calls it.
Definition at line 288 of file cl_spawn.cpp.
References localEntityParse_t::classname, Q_streq, and spawns.
Referenced by CL_SpawnParseEntitystring().
Parse the map entity string and spawns those entities that are client-side only.
Definition at line 308 of file cl_spawn.cpp.
References localEntityParse_t::attenuation, cl, CL_SpawnCall(), Com_EParseValue(), Com_Error(), Com_Parse(), localEntityParse_t::entnum, localEntityParse_t::entStringPos, ERR_DROP, LM_Think(), localEntityValues, localEntityParse_t::maxLevel, localEntityParse_t::maxMultiplayerTeams, OBJZERO, PATHFINDING_HEIGHT, Q_streq, localEntityParse_t::scale, SND_VOLUME_DEFAULT, SOUND_ATTN_IDLE, TEAM_MAX_HUMAN, v, VectorSet, and localEntityParse_t::volume.
Referenced by CL_ViewLoadMedia().
|
static |
| entData | The structure that holds the data we parsed from the script |
Definition at line 259 of file cl_spawn.cpp.
References CL_GetConfigStringInteger(), localEntityParse_t::color, CS_LIGHTMAP, localEntityParse_t::light, localEntityParse_t::origin, R_AddStaticLight(), SPAWNFLAG_NO_DAY, and localEntityParse_t::spawnflags.
|
static |
Definition at line 203 of file cl_spawn.cpp.
References localEntityParse_t::angles, localEntityParse_t::anim, localModel_t::animname, Com_Error(), Com_Printf(), localEntityParse_t::entnum, ERR_DROP, localEntityParse_t::frame, localModel_t::frame, localModel_t::id, LM_AddModel(), LM_GetByID(), LMT_Init(), MISC_MODEL_GLOW, localEntityParse_t::model, localEntityParse_t::origin, Q_strncpyz(), RF_PULSE, localEntityParse_t::scale, localEntityParse_t::skin, localModel_t::skin, localEntityParse_t::spawnflags, localEntityParse_t::tagname, localModel_t::tagname, localEntityParse_t::target, localModel_t::target, localEntityParse_t::targetname, and localModel_t::think.
|
static |
Definition at line 242 of file cl_spawn.cpp.
References CL_AddMapParticle(), CL_GetConfigStringInteger(), CS_LIGHTMAP, localEntityParse_t::entStringPos, localEntityParse_t::origin, localEntityParse_t::particle, SPAWNFLAG_NO_DAY, localEntityParse_t::spawnflags, and localEntityParse_t::wait.
|
static |
Definition at line 249 of file cl_spawn.cpp.
References localEntityParse_t::attenuation, CL_GetConfigStringInteger(), CS_LIGHTMAP, LE_AddAmbientSound(), localEntityParse_t::noise, localEntityParse_t::origin, SPAWNFLAG_NO_DAY, localEntityParse_t::spawnflags, and localEntityParse_t::volume.
|
static |
Definition at line 114 of file cl_spawn.cpp.
References localEntityParse_t::ambientDayColor, localEntityParse_t::ambientNightColor, AngleVectors(), cl, CL_GetConfigStringInteger(), cl_teamnum, ColorNormalize(), Com_Printf(), CS_LIGHTMAP, Cvar_SetValue(), localEntityParse_t::dayLight, localEntityParse_t::daySunAngles, localEntityParse_t::daySunColor, GAME_IsMultiplayer(), i, localEntityParse_t::maxLevel, localEntityParse_t::maxMultiplayerTeams, MIN_AMBIENT_COMPONENT, MIN_AMBIENT_SUM, localEntityParse_t::nightLight, localEntityParse_t::nightSunAngles, localEntityParse_t::nightSunColor, refdef, TEAM_CIVILIAN, TEAM_DEFAULT, Vector2Copy, Vector2NotEmpty, Vector4Copy, Vector4Set, VectorCopy, VectorNotEmpty, VectorScale, VectorSet, VectorSum, and WEATHER_NONE.
|
static |
Definition at line 73 of file cl_spawn.cpp.
Referenced by CL_SpawnParseEntitystring().
|
static |
Definition at line 275 of file cl_spawn.cpp.
Referenced by CL_SpawnCall(), and ED_CallSpawn().