R31: Instant-gib 3 TA: Nailgun

This commit is contained in:
2025-07-20 08:13:58 -03:00
parent f78ef8aff6
commit f78e3b1164
3 changed files with 9 additions and 1 deletions

View File

@@ -1699,7 +1699,7 @@ void BotChooseWeapon(bot_state_t *bs) {
newweaponnum = WP_PLASMAGUN;
} else if ( g_weaponarena.integer == 9 ) {
newweaponnum = WP_BFG;
} else if ( g_weaponarena.integer == 10 ) {
} else if ( g_instantgib.integer > 2 || g_weaponarena.integer == 10 ) {
newweaponnum = WP_NAILGUN;
} else if ( g_weaponarena.integer == 11 ) {
newweaponnum = WP_PROX_LAUNCHER;

View File

@@ -1996,6 +1996,10 @@ else
client->ps.stats[STAT_WEAPONS] |= ( 1 << WP_GAUNTLET );
client->ps.ammo[WP_GAUNTLET] = -1;
}
if(g_instantgib.integer > 2) {
client->ps.stats[STAT_WEAPONS] |= ( 1 << WP_NAILGUN );
client->ps.ammo[WP_NAILGUN] = -1;
}
}
if (g_weaponarena.integer == 1) {
client->ps.stats[STAT_WEAPONS] = ( 1 << WP_GAUNTLET );

View File

@@ -799,6 +799,10 @@ void Weapon_Nailgun_Fire (gentity_t *ent) {
m = fire_nail (ent, muzzle, forward, right, up );
m->damage *= s_quadFactor;
m->splashDamage *= s_quadFactor;
if (g_instantgib.integer > 2) {
m->damage = 800;
}
}
// VectorAdd( m->s.pos.trDelta, ent->client->ps.velocity, m->s.pos.trDelta ); // "real" physics