mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-18 01:30:26 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user