diff options
author | Tim Angus <tim@ngus.net> | 2003-08-01 02:04:03 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2003-08-01 02:04:03 +0000 |
commit | 176ad9f581c7612446d6cf04ff06c24b242fbed8 (patch) | |
tree | 3990e8da1a11d28a4d1631c436d6e2a9717bcfb1 /src/game | |
parent | beb34e28a4f933107a3fa08a306125a712e885ad (diff) |
* Jetpack media code
* Various other media issues
* Light flare tweaks
* I can spell, no really I can... (canon->cannon)
* Other stuff I forgot
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/bg_misc.c | 24 | ||||
-rw-r--r-- | src/game/bg_pmove.c | 6 | ||||
-rw-r--r-- | src/game/bg_public.h | 4 | ||||
-rw-r--r-- | src/game/g_active.c | 16 | ||||
-rw-r--r-- | src/game/g_missile.c | 6 | ||||
-rw-r--r-- | src/game/g_weapon.c | 8 | ||||
-rw-r--r-- | src/game/tremulous.h | 18 |
7 files changed, 41 insertions, 41 deletions
diff --git a/src/game/bg_misc.c b/src/game/bg_misc.c index 1b2f9777..75d2078e 100644 --- a/src/game/bg_misc.c +++ b/src/game/bg_misc.c @@ -1251,12 +1251,12 @@ classAttributes_t bg_classList[ ] = "default", //char *skinname; "alien_general_hud", //char *hudname; ( 1 << S1 )|( 1 << S2 )|( 1 << S3 ), //int stages - { -15, -15, -6 }, //vec3_t mins; - { 15, 15, 6 }, //vec3_t maxs; - { 15, 15, 6 }, //vec3_t crouchmaxs; + { -15, -15, -15 }, //vec3_t mins; + { 15, 15, 15 }, //vec3_t maxs; + { 15, 15, 15 }, //vec3_t crouchmaxs; { -15, -15, -4 }, //vec3_t deadmins; { 15, 15, 4 }, //vec3_t deadmaxs; - 7, 7, //int viewheight, crouchviewheight; + 0, 0, //int viewheight, crouchviewheight; SOLDIER_HEALTH, //int health; SOLDIER_REGEN, //int regenRate; SCA_WALLCLIMBER|SCA_CANJUMP|SCA_NOWEAPONDRIFT| @@ -2181,21 +2181,21 @@ weaponAttributes_t bg_weapons[ ] = WUT_HUMANS //WUTeam_t team; }, { - WP_LUCIFER_CANON, //int weaponNum; - LCANON_PRICE, //int price; + WP_LUCIFER_CANNON, //int weaponNum; + LCANNON_PRICE, //int price; ( 1 << S1 )|( 1 << S2 )|( 1 << S3 ), //int stages SLOT_WEAPON, //int slots; - "lcanon", //char *weaponName; - "Lucifer Canon", //char *weaponHumanName; - LCANON_AMMO, //int quan; + "lcannon", //char *weaponName; + "Lucifer Cannon", //char *weaponHumanName; + LCANNON_AMMO, //int quan; 0, //int clips; 0, //int maxClips; qfalse, //int infiniteAmmo; qtrue, //int usesEnergy; - LCANON_REPEAT, //int repeatRate1; - LCANON_CHARGEREPEAT, //int repeatRate2; + LCANNON_REPEAT, //int repeatRate1; + LCANNON_CHARGEREPEAT, //int repeatRate2; 0, //int repeatRate3; - LCANON_RELOAD, //int reloadTime; + LCANNON_RELOAD, //int reloadTime; qtrue, //qboolean hasAltMode; qfalse, //qboolean hasThirdMode; qtrue, //qboolean purchasable; diff --git a/src/game/bg_pmove.c b/src/game/bg_pmove.c index 16f67a6b..6181e66d 100644 --- a/src/game/bg_pmove.c +++ b/src/game/bg_pmove.c @@ -2530,7 +2530,7 @@ static void PM_Weapon( void ) } break; - case WP_LUCIFER_CANON: + case WP_LUCIFER_CANNON: attack1 = pm->cmd.buttons & BUTTON_ATTACK; attack2 = pm->cmd.buttons & BUTTON_ATTACK2; attack3 = pm->cmd.buttons & BUTTON_USE_HOLDABLE; @@ -2646,9 +2646,9 @@ static void PM_Weapon( void ) if( !BG_FindInfinteAmmoForWeapon( pm->ps->weapon ) ) { //special case for lCanon - if( pm->ps->weapon == WP_LUCIFER_CANON && attack1 ) + if( pm->ps->weapon == WP_LUCIFER_CANNON && attack1 ) { - ammo -= (int)( ceil( ( (float)pm->ps->stats[ STAT_MISC ] / (float)LCANON_TOTAL_CHARGE ) * 10.0f ) ); + ammo -= (int)( ceil( ( (float)pm->ps->stats[ STAT_MISC ] / (float)LCANNON_TOTAL_CHARGE ) * 10.0f ) ); //stay on the safe side if( ammo < 0 ) diff --git a/src/game/bg_public.h b/src/game/bg_public.h index 62ab7fab..dd2f6a15 100644 --- a/src/game/bg_public.h +++ b/src/game/bg_public.h @@ -34,7 +34,7 @@ #define CROUCH_VIEWHEIGHT 12 #define DEAD_VIEWHEIGHT -16 -#define LCANON_TOTAL_CHARGE 255 +#define LCANNON_TOTAL_CHARGE 255 // // config strings are a general means of communicating variable length strings @@ -328,7 +328,7 @@ typedef enum WP_FLAMER, WP_MASS_DRIVER, WP_PULSE_RIFLE, - WP_LUCIFER_CANON, + WP_LUCIFER_CANNON, WP_LAS_GUN, WP_PAIN_SAW, diff --git a/src/game/g_active.c b/src/game/g_active.c index ecae1f6c..4f6726d0 100644 --- a/src/game/g_active.c +++ b/src/game/g_active.c @@ -485,20 +485,20 @@ void ClientTimerActions( gentity_t *ent, int msec ) } //client is charging up an lcanon - if( client->ps.weapon == WP_LUCIFER_CANON ) + if( client->ps.weapon == WP_LUCIFER_CANNON ) { int ammo; - BG_unpackAmmoArray( WP_LUCIFER_CANON, client->ps.ammo, client->ps.powerups, &ammo, NULL, NULL ); + BG_unpackAmmoArray( WP_LUCIFER_CANNON, client->ps.ammo, client->ps.powerups, &ammo, NULL, NULL ); - if( client->ps.stats[ STAT_MISC ] < LCANON_TOTAL_CHARGE && ucmd->buttons & BUTTON_ATTACK ) - client->ps.stats[ STAT_MISC ] += ( 100.0f / LCANON_CHARGE_TIME ) * LCANON_TOTAL_CHARGE; + if( client->ps.stats[ STAT_MISC ] < LCANNON_TOTAL_CHARGE && ucmd->buttons & BUTTON_ATTACK ) + client->ps.stats[ STAT_MISC ] += ( 100.0f / LCANNON_CHARGE_TIME ) * LCANNON_TOTAL_CHARGE; - if( client->ps.stats[ STAT_MISC ] > LCANON_TOTAL_CHARGE ) - client->ps.stats[ STAT_MISC ] = LCANON_TOTAL_CHARGE; + if( client->ps.stats[ STAT_MISC ] > LCANNON_TOTAL_CHARGE ) + client->ps.stats[ STAT_MISC ] = LCANNON_TOTAL_CHARGE; - if( client->ps.stats[ STAT_MISC ] > ( ammo * LCANON_TOTAL_CHARGE ) / 10 ) - client->ps.stats[ STAT_MISC ] = ammo * LCANON_TOTAL_CHARGE / 10; + if( client->ps.stats[ STAT_MISC ] > ( ammo * LCANNON_TOTAL_CHARGE ) / 10 ) + client->ps.stats[ STAT_MISC ] = ammo * LCANNON_TOTAL_CHARGE / 10; } switch( client->ps.weapon ) diff --git a/src/game/g_missile.c b/src/game/g_missile.c index 303b192e..5efecd70 100644 --- a/src/game/g_missile.c +++ b/src/game/g_missile.c @@ -340,7 +340,7 @@ gentity_t *fire_luciferCanon( gentity_t *self, vec3_t start, vec3_t dir, int dam { gentity_t *bolt; int localDamage = (int)( ceil( ( (float)damage / - (float)LCANON_TOTAL_CHARGE ) * (float)LCANON_DAMAGE ) ); + (float)LCANNON_TOTAL_CHARGE ) * (float)LCANNON_DAMAGE ) ); VectorNormalize( dir ); @@ -350,7 +350,7 @@ gentity_t *fire_luciferCanon( gentity_t *self, vec3_t start, vec3_t dir, int dam bolt->think = G_ExplodeMissile; bolt->s.eType = ET_MISSILE; bolt->r.svFlags = SVF_USE_CURRENT_ORIGIN; - bolt->s.weapon = WP_LUCIFER_CANON; + bolt->s.weapon = WP_LUCIFER_CANNON; bolt->r.ownerNum = self->s.number; bolt->parent = self; bolt->damage = localDamage; @@ -365,7 +365,7 @@ gentity_t *fire_luciferCanon( gentity_t *self, vec3_t start, vec3_t dir, int dam bolt->s.pos.trType = TR_LINEAR; bolt->s.pos.trTime = level.time - MISSILE_PRESTEP_TIME; // move a bit on the very first frame VectorCopy( start, bolt->s.pos.trBase ); - VectorScale( dir, LCANON_SPEED, bolt->s.pos.trDelta ); + VectorScale( dir, LCANNON_SPEED, bolt->s.pos.trDelta ); SnapVector( bolt->s.pos.trDelta ); // save net bandwidth VectorCopy( start, bolt->r.currentOrigin ); diff --git a/src/game/g_weapon.c b/src/game/g_weapon.c index 968b2149..731f1269 100644 --- a/src/game/g_weapon.c +++ b/src/game/g_weapon.c @@ -333,7 +333,7 @@ void painSawFire( gentity_t *ent ) /* ====================================================================== -LUCIFER CANON +LUCIFER CANNON ====================================================================== */ @@ -348,7 +348,7 @@ void LCChargeFire( gentity_t *ent, qboolean secondary ) gentity_t *m; if( secondary ) - ent->client->ps.stats[ STAT_MISC ] = LCANON_SECONDARY_DAMAGE; + ent->client->ps.stats[ STAT_MISC ] = LCANNON_SECONDARY_DAMAGE; m = fire_luciferCanon( ent, muzzle, forward, ent->client->ps.stats[ STAT_MISC ] ); @@ -985,7 +985,7 @@ void FireWeapon2( gentity_t *ent ) groundPound( ent ); break; - case WP_LUCIFER_CANON: + case WP_LUCIFER_CANNON: LCChargeFire( ent, qtrue ); break; @@ -1055,7 +1055,7 @@ void FireWeapon( gentity_t *ent ) case WP_MASS_DRIVER: massDriverFire( ent ); break; - case WP_LUCIFER_CANON: + case WP_LUCIFER_CANNON: LCChargeFire( ent, qfalse ); break; case WP_LAS_GUN: diff --git a/src/game/tremulous.h b/src/game/tremulous.h index 35eb7a02..d21d5a62 100644 --- a/src/game/tremulous.h +++ b/src/game/tremulous.h @@ -315,15 +315,15 @@ #define PRIFLE_DMG HDM(20) #define PRIFLE_SPEED 1500 -#define LCANON_PRICE 400 -#define LCANON_AMMO 30 -#define LCANON_REPEAT 500 -#define LCANON_CHARGEREPEAT 1000 -#define LCANON_RELOAD 2000 -#define LCANON_DAMAGE HDM(200) -#define LCANON_SECONDARY_DAMAGE 20 -#define LCANON_SPEED 250 -#define LCANON_CHARGE_TIME 2000 +#define LCANNON_PRICE 400 +#define LCANNON_AMMO 30 +#define LCANNON_REPEAT 500 +#define LCANNON_CHARGEREPEAT 1000 +#define LCANNON_RELOAD 2000 +#define LCANNON_DAMAGE HDM(200) +#define LCANNON_SECONDARY_DAMAGE 20 +#define LCANNON_SPEED 250 +#define LCANNON_CHARGE_TIME 2000 #define LASGUN_PRICE 200 #define LASGUN_AMMO 300 |