mirror of
https://github.com/yquake2/rogue.git
synced 2024-11-26 06:00:50 +00:00
commit
3bf86f4d61
1 changed files with 7 additions and 19 deletions
|
@ -2268,7 +2268,7 @@ weapon_etf_rifle_fire(edict_t *ent)
|
||||||
{
|
{
|
||||||
vec3_t forward, right, up;
|
vec3_t forward, right, up;
|
||||||
vec3_t start, tempPt;
|
vec3_t start, tempPt;
|
||||||
int damage;
|
int damage = 10;
|
||||||
int kick = 3;
|
int kick = 3;
|
||||||
int i;
|
int i;
|
||||||
vec3_t offset;
|
vec3_t offset;
|
||||||
|
@ -2278,15 +2278,6 @@ weapon_etf_rifle_fire(edict_t *ent)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (deathmatch->value)
|
|
||||||
{
|
|
||||||
damage = 10;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
damage = 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ent->client->pers.inventory[ent->client->ammo_index] < ent->client->pers.weapon->quantity)
|
if (ent->client->pers.inventory[ent->client->ammo_index] < ent->client->pers.weapon->quantity)
|
||||||
{
|
{
|
||||||
VectorClear(ent->client->kick_origin);
|
VectorClear(ent->client->kick_origin);
|
||||||
|
@ -2341,7 +2332,11 @@ weapon_etf_rifle_fire(edict_t *ent)
|
||||||
PlayerNoise(ent, start, PNOISE_WEAPON);
|
PlayerNoise(ent, start, PNOISE_WEAPON);
|
||||||
|
|
||||||
ent->client->ps.gunframe++;
|
ent->client->ps.gunframe++;
|
||||||
|
|
||||||
|
if (!((int)dmflags->value & DF_INFINITE_AMMO))
|
||||||
|
{
|
||||||
ent->client->pers.inventory[ent->client->ammo_index] -= ent->client->pers.weapon->quantity;
|
ent->client->pers.inventory[ent->client->ammo_index] -= ent->client->pers.weapon->quantity;
|
||||||
|
}
|
||||||
|
|
||||||
ent->client->anim_priority = ANIM_ATTACK;
|
ent->client->anim_priority = ANIM_ATTACK;
|
||||||
|
|
||||||
|
@ -2403,18 +2398,11 @@ Heatbeam_Fire(edict_t *ent)
|
||||||
if (deathmatch->value)
|
if (deathmatch->value)
|
||||||
{
|
{
|
||||||
damage = HEATBEAM_DM_DMG;
|
damage = HEATBEAM_DM_DMG;
|
||||||
|
kick = 75; /* really knock 'em around in deathmatch */
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
damage = HEATBEAM_SP_DMG;
|
damage = HEATBEAM_SP_DMG;
|
||||||
}
|
|
||||||
|
|
||||||
if (deathmatch->value) /* really knock 'em around in deathmatch */
|
|
||||||
{
|
|
||||||
kick = 75;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
kick = 30;
|
kick = 30;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue