summaryrefslogtreecommitdiff
path: root/src/cgame/cg_event.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2001-10-12 17:06:11 +0000
committerTim Angus <tim@ngus.net>2001-10-12 17:06:11 +0000
commit4ebd5a54a81b878827a6ed2f52174e6841a4616c (patch)
tree6f8dd59e1f6fd64aa78f47108b8887d8ad4c1e4d /src/cgame/cg_event.c
parent1342d53528fb2a68d7dfe920c53834ce73cd9f4e (diff)
Tesla Gen and effects
Diffstat (limited to 'src/cgame/cg_event.c')
-rw-r--r--src/cgame/cg_event.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/cgame/cg_event.c b/src/cgame/cg_event.c
index 29b77974..adf51128 100644
--- a/src/cgame/cg_event.c
+++ b/src/cgame/cg_event.c
@@ -889,6 +889,17 @@ void CG_EntityEvent( centity_t *cent, vec3_t position )
}
break;
+ case EV_TESLATRAIL:
+ DEBUGNAME("EV_TESLATRAIL");
+ cent->currentState.weapon = WP_TESLAGEN;
+ // if the end was on a nomark surface, don't make an explosion
+ CG_TeslaTrail( es->origin2, es->pos.trBase );
+ if ( es->eventParm != 255 ) {
+ ByteToDir( es->eventParm, dir );
+ CG_MissileHitWall( es->weapon, es->clientNum, position, dir, IMPACTSOUND_DEFAULT );
+ }
+ break;
+
case EV_BULLET_HIT_WALL:
DEBUGNAME("EV_BULLET_HIT_WALL");
ByteToDir( es->eventParm, dir );