UFO: Alien Invasion
e_event_actorappear.cpp File Reference
Include dependency graph for e_event_actorappear.cpp:

Go to the source code of this file.

Functions

int CL_ActorAppearTime (const eventRegister_t *self, dbuffer *msg, eventTiming_t *eventTiming)
 Decides if following events should be delayed. More...
 
static void CL_DrawLineOfSight (const le_t *watcher, const le_t *target)
 draw a simple 'spotted' line from a spotter to the spotted More...
 
void CL_ActorAppear (const eventRegister_t *self, dbuffer *msg)
 

Function Documentation

◆ CL_ActorAppear()

void CL_ActorAppear ( const eventRegister_t self,
dbuffer msg 
)
See also
CL_ActorAddToTeamList
G_AppearPerishEvent
CL_ActorAdd
Note
EV_ACTOR_APPEAR

Definition at line 79 of file e_event_actorappear.cpp.

References _, le_t::aabb, ACTOR_SIZE_2x2, ACTOR_SIZE_NORMAL, le_t::addFunc, le_t::angle, le_t::angles, le_t::bodySkin, cl, CL_ActorAddToTeamList(), CL_ActorConditionalMoveCalc(), CL_AddActor(), CL_AddUGV(), CL_CheckCameraRoute(), CL_CountVisibleEnemies(), CL_DrawLineOfSight(), cls, Com_Error(), Com_Printf(), Com_sprintf(), le_t::contents, CONTENTS_ACTOR, CONTENTS_DEADACTOR, csi, Cvar_SetValue(), directionAngles, ERR_DROP, ET_ACTOR, ET_ACTOR2x2, le_t::fieldSize, le_t::flags, eventRegister_t::formatString, GAME_TeamIsKnown(), le_t::gender, Grid_PosToVec(), le_t::headSkin, HUD_DisplayMessage(), client_static_t::isOurRound(), LE_Add(), LE_CenterView(), LE_Get(), LE_GetDrawModel(), LE_IsDead, LE_IsLivingActor(), LE_IsStunned, LE_Lock(), LE_NotFoundError, LE_SetThink(), LE_Unlock(), le_t::left, LET_StartIdle(), clientBattleScape_t::mapData, le_t::maxHP, le_t::maxMorale, le_t::maxTU, le_t::model1, le_t::model2, le_t::modelnum1, le_t::modelnum2, teamDef_t::name, NET_ReadFormat(), NET_ReadShort(), clientBattleScape_t::numEnemiesSpotted, csi_t::numTeamDefs, le_t::origin, player_dead_maxs, player_maxs, player_mins, le_t::pnum, le_t::pos, le_t::right, mapData_t::routing, selActor, AABB::setMaxs(), AABB::setMins(), SKIP_LOCAL_ENTITY, le_t::state, le_t::team, client_static_t::team, TEAM_CIVILIAN, le_t::teamDef, csi_t::teamDef, le_t::type, le_t::ucn, and YAW.

◆ CL_ActorAppearTime()

int CL_ActorAppearTime ( const eventRegister_t self,
dbuffer msg,
eventTiming_t eventTiming 
)

Decides if following events should be delayed.

Definition at line 38 of file e_event_actorappear.cpp.

References cls, client_static_t::isOurRound(), and eventTiming_t::nextTime.

◆ CL_DrawLineOfSight()

static void CL_DrawLineOfSight ( const le_t watcher,
const le_t target 
)
static

draw a simple 'spotted' line from a spotter to the spotted

Definition at line 52 of file e_event_actorappear.cpp.

References CL_ParticleSpawn(), ptl_t::color, EYE_HT_CROUCH, EYE_HT_STAND, LE_IsCivilian, LE_IsCrouched, le_t::origin, VectorCopy, and VectorSet.

Referenced by CL_ActorAppear().