UFO: Alien Invasion
Loading...
Searching...
No Matches
e_event_actorstartshoot.cpp File Reference
Include dependency graph for e_event_actorstartshoot.cpp:

Go to the source code of this file.

Functions

int CL_ActorStartShootTime (const eventRegister_t *self, dbuffer *msg, eventTiming_t *eventTiming)
 Decides if following events should be delayed.
void CL_ActorStartShoot (const eventRegister_t *self, dbuffer *msg)
 Starts shooting with actor.

Function Documentation

◆ CL_ActorStartShoot()

void CL_ActorStartShoot ( const eventRegister_t * self,
dbuffer * msg )

Starts shooting with actor.

Parameters
[in]selfPointer to the event structure that is currently executed
[in]msgThe netchannel message
See also
CL_ActorShootHidden
CL_ActorShoot
CL_ActorDoShoot
Todo
Improve detection of left- or right animation.
See also
EV_ACTOR_START_SHOOT

Definition at line 55 of file e_event_actorstartshoot.cpp.

References le_t::as, CL_CheckCameraRoute(), cls, Com_Error(), Com_Printf(), ERR_DROP, ET_ACTORHIDDEN, eventRegister_t::formatString, IS_SHOT_HEADGEAR, IS_SHOT_LEFT, IS_SHOT_RIGHT, LE_Get(), LE_GetAnim(), LE_IsLivingActor(), LE_IsStunned, le_t::left, le_t::model1, NET_ReadFormat(), R_AnimChange(), le_t::right, le_t::state, and le_t::type.

◆ CL_ActorStartShootTime()

int CL_ActorStartShootTime ( const eventRegister_t * self,
dbuffer * msg,
eventTiming_t * eventTiming )

Decides if following events should be delayed.

Definition at line 33 of file e_event_actorstartshoot.cpp.

References eventTiming_t::nextTime, eventTiming_t::parsedDeath, eventTiming_t::parsedShot, and eventTiming_t::shootTime.