made smart blobs easier to dodge

This commit is contained in:
zicodxx 2007-04-19 22:17:46 +00:00
parent 0200658155
commit 6a4e2166c9
2 changed files with 10 additions and 2 deletions

View file

@ -1,5 +1,9 @@
D1X-Rebirth Changelog
20070420
--------
main/laser.c: made smart blobs easier to dodge
20070415
--------
main/multi.c: forbid % to read into multi messages to not mess up the string

View file

@ -1091,8 +1091,12 @@ void Laser_do_weapon_sequence(object *obj)
if (newhomers)
{
fix turn_radius;
turn_radius = 0x0014 * F1_0;
if (Weapon_info[obj->id].render_type == WEAPON_RENDER_POLYMODEL)
turn_radius = 0x0014 * F1_0; // homing missiles, mega missiles
else
turn_radius = 0x0020 * F1_0; // smart missile blobs
vm_vec_sub(&vector_to_object, &Objects[track_goal].pos, &obj->pos);
// we need normalized exact vectors here