Given a parent object and a weapon id, creates that countermeasure
| 3387 | |
| 3388 | // Given a parent object and a weapon id, creates that countermeasure |
| 3389 | void CreateCountermeasureFromObject(object *parent, int weapon_id) { |
| 3390 | ASSERT(parent != NULL); |
| 3391 | ASSERT(Weapons[weapon_id].used); |
| 3392 | |
| 3393 | if (Game_mode & GM_MULTI) |
| 3394 | MultiSendRequestCountermeasure(parent - Objects, weapon_id); |
| 3395 | else |
| 3396 | FireWeaponFromObject(parent, weapon_id, 5); |
| 3397 | } |
| 3398 | |
| 3399 | // Releases the guided missile of a passed in player |
| 3400 | void ReleaseGuidedMissile(int slot) { |
no test coverage detected