Only allow for laser designator for vanilla compensation.

This commit is contained in:
jaynus 2015-04-12 16:38:43 -07:00
parent 509b5e1a05
commit db5d54dffd

View File

@ -19,8 +19,8 @@ _owner = _this select 1;
// Not in a vehicle....
// @TODO: handle lasering from turrets
if( (vehicle _owner) == _owner && alive _owner ) exitWith {
[(eyePos _owner), (eyeDirection _owner)]
if( (vehicle _emmiter) == _emmiter && alive _emmiter && (currentWeapon _emmiter) == "LaserDesignator") exitWith {
[(eyePos _emmiter), (eyeDirection _emmiter)]
};
[-1,-1]