UFO: Alien Invasion
Loading...
Searching...
No Matches
e_event_actorshoot.h File Reference
#include "../../e_main.h"
Include dependency graph for e_event_actorshoot.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void CL_ActorDoShoot (const eventRegister_t *self, dbuffer *msg)
 Shoot with weapon.
int CL_ActorDoShootTime (const eventRegister_t *self, dbuffer *msg, eventTiming_t *eventTiming)
 Decides if following events should be delayed. If the projectile has a speed value assigned, the delay is relative to the distance the projectile flies. There are other fire definition related options that might delay the execution of further events.

Function Documentation

◆ CL_ActorDoShoot()

◆ CL_ActorDoShootTime()

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

Decides if following events should be delayed. If the projectile has a speed value assigned, the delay is relative to the distance the projectile flies. There are other fire definition related options that might delay the execution of further events.

Definition at line 36 of file e_event_actorshoot.cpp.

References CL_GetNextTime(), CL_OutsideMap(), cls, fireDef_t::delayBetweenShots, FIRESH_GetFiredef(), eventRegister_t::formatString, eventTiming_t::impactTime, INVSH_GetItemByIDX(), NET_ReadFormat(), eventTiming_t::nextTime, eventTiming_t::parsedDeath, SF_BOUNCED, eventTiming_t::shootTime, fireDef_t::speed, UNIT_SIZE, and VectorDist.