UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
e_event_actorstartshoot.h File Reference
#include "../../e_main.h"

Go to the source code of this file.

Functions

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

Function Documentation

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_s::as, CL_CheckCameraRoute(), cls, Com_Error(), Com_Printf(), ERR_DROP, ET_ACTORHIDDEN, IS_SHOT_HEADGEAR, IS_SHOT_LEFT, IS_SHOT_RIGHT, client_static_s::isOurRound(), LE_Get(), LE_GetAnim(), LE_IsLivingActor(), LE_IsStunned, le_s::left, le_s::model1, NET_ReadFormat(), R_AnimChange(), le_s::right, le_s::state, and le_s::type.

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_s::nextTime, eventTiming_s::parsedDeath, eventTiming_s::parsedShot, and eventTiming_s::shootTime.