DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
FishingConsumables.c
См. документацию.
2{
3 override void OnDebugSpawn()
4 {
5 GetInventory().CreateInInventory("Worm");
6 }
7};
8
13
15// Obsolete item prison //
18{
19 // replaces stray baits with hook + attachment combo
20 override void EEItemLocationChanged(notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
21 {
22 super.EEItemLocationChanged(oldLoc,newLoc);
23
24 string hookType = ConfigGetString("hookType");
25 if (GetGame().IsDedicatedServer() && hookType != string.Empty)
26 {
27 DeleteSafe();
28 vector spawnPos;
29 if (newLoc.GetType() == InventoryLocationType.GROUND)
30 spawnPos = newLoc.GetPos();
31 else
32 spawnPos = newLoc.GetParent().GetHierarchyRoot().GetPosition();
33
34 EntityAI newItem = EntityAI.Cast(GetGame().CreateObjectEx(hookType,spawnPos,ECE_PLACE_ON_SURFACE,RF_DEFAULT));
35 EntityAI worm = newItem.GetInventory().CreateAttachment("Worm");
36 MiscGameplayFunctions.TransferItemProperties(this,newItem);
37 MiscGameplayFunctions.TransferItemProperties(this,worm);
38 }
39 }
40};
41
42class Bait: BaitBase {};
const int ECE_PLACE_ON_SURFACE
Определения CentralEconomy.c:37
const int RF_DEFAULT
Определения CentralEconomy.c:65
Empty
Определения Hand_States.c:14
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
override void EEItemLocationChanged(notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
Определения FishingConsumables.c:20
Определения FishingConsumables.c:18
Определения FishingConsumables.c:42
Определения FishingConsumables.c:43
Определения FishingConsumables.c:10
Определения Building.c:6
override void OnDebugSpawn()
Определения FishingConsumables.c:3
Определения FishingConsumables.c:9
InventoryLocation.
Определения InventoryLocation.c:29
Определения InventoryItem.c:731
Определения FishingConsumables.c:12
Определения FishingConsumables.c:11
Определения EnConvert.c:106
proto native CGame GetGame()