Files
DayZ-Epoch/SQF/dayz_code/loot/Loot.hpp
AirwavesMan 89bca2c94b Partly fix floating loot
This commit fixes partly the floating loot issue. The whole problem is not fixable. It is a problem with different components. The main point is that the position can be half water and half not. The second is the building collision and the collision of the loot object. Normally setPosATL should do its work but the object moves on the placement. Adding a special handling for buildings that are mostly over water did the best job so far.
With fixWaterPos = 1; in the building class which has those floating loot problems, the position gets converted to ASL which is better over water but not always. Some loot objects are still floating a bit but I could reach all of them. It is a way better as before.
2020-09-15 19:55:17 +02:00

14 lines
681 B
C++

#ifndef _INCLUDE_GUARD_LOOT
#define _INCLUDE_GUARD_LOOT
#include "\z\addons\dayz_code\Configs\CfgLoot\LootDefines.hpp"
#define Loot_GetGroup(name) (dz_loot_groups find (name))
#define Loot_Select(group, count) ([group, count] call dz_fn_loot_select)
#define Loot_SelectSingle(group) (Loot_Select(group, 1) select 0)
#define Loot_Spawn(def, loc, class) ([def, loc, class] call dz_fn_loot_spawn)
#define Loot_SpawnGroup(group, loc, class) ([group, loc, class] call dz_fn_loot_spawnGroup)
#define Loot_Insert(unit, group, count) ([unit, group, count] call dz_fn_loot_insert)
#define Loot_InsertCargo(object, group, count) ([object, group, count] call dz_fn_loot_insertCargo)
#endif