mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-23 04:12:39 +00:00
Let's actually use MOD_CHAINGUN! From Ensiform.
This commit is contained in:
parent
56a918b9ac
commit
f40042113a
1 changed files with 6 additions and 5 deletions
|
@ -155,12 +155,13 @@ void SnapVectorTowards( vec3_t v, vec3_t to ) {
|
|||
|
||||
#ifdef MISSIONPACK
|
||||
#define CHAINGUN_SPREAD 600
|
||||
#define CHAINGUN_DAMAGE 7
|
||||
#endif
|
||||
#define MACHINEGUN_SPREAD 200
|
||||
#define MACHINEGUN_DAMAGE 7
|
||||
#define MACHINEGUN_TEAM_DAMAGE 5 // wimpier MG in teamplay
|
||||
|
||||
void Bullet_Fire (gentity_t *ent, float spread, int damage ) {
|
||||
void Bullet_Fire (gentity_t *ent, float spread, int damage, int mod ) {
|
||||
trace_t tr;
|
||||
vec3_t end;
|
||||
#ifdef MISSIONPACK
|
||||
|
@ -225,7 +226,7 @@ void Bullet_Fire (gentity_t *ent, float spread, int damage ) {
|
|||
else {
|
||||
#endif
|
||||
G_Damage( traceEnt, ent, ent, forward, tr.endpos,
|
||||
damage, 0, MOD_MACHINEGUN);
|
||||
damage, 0, mod);
|
||||
#ifdef MISSIONPACK
|
||||
}
|
||||
#endif
|
||||
|
@ -853,9 +854,9 @@ void FireWeapon( gentity_t *ent ) {
|
|||
break;
|
||||
case WP_MACHINEGUN:
|
||||
if ( g_gametype.integer != GT_TEAM ) {
|
||||
Bullet_Fire( ent, MACHINEGUN_SPREAD, MACHINEGUN_DAMAGE );
|
||||
Bullet_Fire( ent, MACHINEGUN_SPREAD, MACHINEGUN_DAMAGE, MOD_MACHINEGUN );
|
||||
} else {
|
||||
Bullet_Fire( ent, MACHINEGUN_SPREAD, MACHINEGUN_TEAM_DAMAGE );
|
||||
Bullet_Fire( ent, MACHINEGUN_SPREAD, MACHINEGUN_TEAM_DAMAGE, MOD_MACHINEGUN );
|
||||
}
|
||||
break;
|
||||
case WP_GRENADE_LAUNCHER:
|
||||
|
@ -884,7 +885,7 @@ void FireWeapon( gentity_t *ent ) {
|
|||
weapon_proxlauncher_fire( ent );
|
||||
break;
|
||||
case WP_CHAINGUN:
|
||||
Bullet_Fire( ent, CHAINGUN_SPREAD, MACHINEGUN_DAMAGE );
|
||||
Bullet_Fire( ent, CHAINGUN_SPREAD, CHAINGUN_DAMAGE, MOD_CHAINGUN );
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue