diff options
author | Tim Angus <tim@ngus.net> | 2001-09-09 03:08:28 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2001-09-09 03:08:28 +0000 |
commit | ba0f08ae97958db13ca16a1e82d141679bfb77f4 (patch) | |
tree | 7a888632ce3eddfcb3f5a1773cf26fb42c9eb308 /src | |
parent | b1a0342db1f0e1a02fed2f9996c8a23337e46f68 (diff) |
Added skeleton medistation
Diffstat (limited to 'src')
-rw-r--r-- | src/game/bg_misc.c | 42 | ||||
-rw-r--r-- | src/game/bg_public.h | 1 | ||||
-rw-r--r-- | src/game/g_buildable.c | 5 |
3 files changed, 48 insertions, 0 deletions
diff --git a/src/game/bg_misc.c b/src/game/bg_misc.c index 1a94a8c2..af7328c7 100644 --- a/src/game/bg_misc.c +++ b/src/game/bg_misc.c @@ -978,6 +978,22 @@ TA: human defense item "" //sounds }, +/*QUAKED team_human_medistat (0 0 1) (-16 -16 -16) (16 16 16) +TA: human defense item +*/ + { + "team_human_medistat", + "sound/items/holdable.wav", + { "models/buildables/medistat/medistat.md3", 0, 0, 0 }, + "icons/teleporter", //icon + "Human Medistation", //pickup + 0, + IT_BUILDABLE, + BA_H_MEDISTAT, + "", //precache + "" //sounds + }, + /*QUAKED team_human_reactor (0 0 1) (-16 -16 -16) (16 16 16) TA: human power item */ @@ -1291,6 +1307,32 @@ buildableAttributes_t bg_buildableList[ ] = qfalse //qboolean reactorTest; }, { + BA_H_MEDISTAT, //int buildNum; + "medistat", //char *buildName; + "team_human_medistat", //char *entityName; + { -40, -40, -4 }, //vec3_t mins; + { 40, 40, 4 }, //vec3_t maxs; + TR_GRAVITY, //trType_t traj; + 0.0, //float bounce; + 100, //int buildPoints; + 1000, //int health; + 50, //int damage; + 50, //int splashDamage; + 150, //int splashRadius; + MOD_HSPAWN, //int meansOfDeath; + BIT_HUMANS, //int team; + ( 1 << WP_HBUILD )|( 1 << WP_HBUILD2 ), //weapon_t buildWeapon; + BANIM_IDLE1, //int idleAnim; + 100, //int nextthink; + 0, //int turretFireSpeed; + 0, //int turretRange; + WP_NONE, //weapon_t turretProjType; + 0.707f, //float minNormal; + qfalse, //qboolean invertNormal; + qfalse, //qboolean creepTest; + qfalse //qboolean reactorTest; + }, + { BA_H_DEF1, //int buildNum; "plasmaturret", //char *buildName; "team_human_def1", //char *entityName; diff --git a/src/game/bg_public.h b/src/game/bg_public.h index c40ed9d7..a93b234b 100644 --- a/src/game/bg_public.h +++ b/src/game/bg_public.h @@ -403,6 +403,7 @@ typedef enum { BA_H_MCU, BA_H_DCC, + BA_H_MEDISTAT, BA_H_REACTOR, BA_H_REPEATER, diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index 5eb95341..2cc58041 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -1592,6 +1592,11 @@ gentity_t *G_buildItem( gentity_t *ent, buildable_t buildable, int distance, flo built->die = HSpawn_Die; break; + case BA_H_MEDISTAT: + built->think = HDCC_Think; + built->die = HSpawn_Die; + break; + case BA_H_REACTOR: built->die = HSpawn_Die; built->powered = built->active = qtrue; |