mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
removed the bounceing. and multiple shotgun shite
This commit is contained in:
parent
e6739e0e3e
commit
86e98c0e07
|
@ -592,7 +592,7 @@ void projectile::tick()
|
|||
{
|
||||
int numbounces;
|
||||
vel.y += 0.25f;
|
||||
move_point(&pos, &vel, 0.9f, &numbounces);
|
||||
move_point(&pos, &vel, 0.25f, &numbounces);
|
||||
bounce -= numbounces;
|
||||
}
|
||||
else
|
||||
|
@ -983,14 +983,12 @@ int player::handle_weapons()
|
|||
100,
|
||||
this,
|
||||
1, projectile::PROJECTILE_FLAGS_EXPLODE, 0, SOUND_ROCKET_EXPLODE, WEAPON_ROCKET);
|
||||
p->bounce = 1;
|
||||
create_sound(pos, SOUND_ROCKET_FIRE);
|
||||
break;
|
||||
}
|
||||
case WEAPON_SHOTGUN:
|
||||
{
|
||||
int shotspread = min(2, weapons[active_weapon].ammo);
|
||||
weapons[active_weapon].ammo -= shotspread - 1; // one will be taken later
|
||||
int shotspread = 2;
|
||||
for(int i = -shotspread; i <= shotspread; i++)
|
||||
{
|
||||
float a = get_angle(direction);
|
||||
|
|
Loading…
Reference in a new issue