Simplify logic for robot to drop proximity bomb
This commit is contained in:
parent
ff1247fe72
commit
84fb22aafe
|
@ -756,18 +756,15 @@ multi_do_robot_fire(char *buf)
|
||||||
{
|
{
|
||||||
// Drop proximity bombs
|
// Drop proximity bombs
|
||||||
vm_vec_add(&gun_point, &Objects[botnum].pos, &fire);
|
vm_vec_add(&gun_point, &Objects[botnum].pos, &fire);
|
||||||
|
Laser_create_new_easy( &fire, &gun_point, botnum, PROXIMITY_ID, 1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
calc_gun_point(&gun_point, &Objects[botnum], gun_num);
|
calc_gun_point(&gun_point, &Objects[botnum], gun_num);
|
||||||
}
|
|
||||||
robptr = &Robot_info[Objects[botnum].id];
|
robptr = &Robot_info[Objects[botnum].id];
|
||||||
|
|
||||||
if (gun_num == -1)
|
|
||||||
Laser_create_new_easy( &fire, &gun_point, botnum, PROXIMITY_ID, 1);
|
|
||||||
else
|
|
||||||
Laser_create_new_easy( &fire, &gun_point, botnum, robptr->weapon_type, 1);
|
Laser_create_new_easy( &fire, &gun_point, botnum, robptr->weapon_type, 1);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
multi_explode_robot_sub(int botnum, int killer)
|
multi_explode_robot_sub(int botnum, int killer)
|
||||||
|
|
Loading…
Reference in a new issue