Remove unneeded isKindOf "Man" checks

"Man" includes animals and zombies:

https://community.bistudio.com/wiki/ArmA_2:_CfgVehicles#Man_Class_Vehicles
This commit is contained in:
ebaydayz
2016-11-23 14:43:59 -05:00
parent c202c697eb
commit ea389b59ea
7 changed files with 22 additions and 30 deletions

View File

@@ -5,7 +5,7 @@ if( (!isNull cursorTarget) && (player distance cursorTarget < 5) && (vehicle pla
_cTarget=cursorTarget;
_type = switch true do {
case (_cTarget isKindOf "Bag_Base_EP1"):{"open_backpack"}; //backpacks on ground
case ( (_cTarget isKindOf "Man") && (alive _cTarget) && !(isNull unitBackpack _cTarget) ):{"open_backpack"}; //Person with backpack
case ( (_cTarget isKindOf "CAManBase") && (alive _cTarget) && !(isNull unitBackpack _cTarget) ):{"open_backpack"}; //Person with backpack
default {"open_inventory"}; //unknown, play cloth sounds
//case (_cTarget isKindOf "Land_A_tent"):{"open_inventory"}; //Tents
//case (_cTarget isKindOf "StashSmall"):{"open_stash_sm"}; //dirt pile stash