DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
Worm.c
См. документацию.
1class Worm extends Edible_Base
2{
3 override bool CanBeCookedOnStick()
4 {
5 return false;
6 }
7
8 override bool CanBeCooked()
9 {
10 return false;
11 }
12
13 override bool IsMeat()
14 {
15 return true;
16 }
17
18 override void OnWasAttached(EntityAI parent, int slot_id)
19 {
20 super.OnWasAttached(parent, slot_id);
21
22 if (InventorySlots.GetSlotName(slot_id) == "Bait")
23 {
24 SetAnimationPhase("bait_unhooked",1);
25 SetAnimationPhase("bait_hooked",0);
26 }
27 }
28
29 override void OnWasDetached(EntityAI parent, int slot_id)
30 {
31 super.OnWasDetached(parent, slot_id);
32
33 if (InventorySlots.GetSlotName(slot_id) == "Bait")
34 {
35 SetAnimationPhase("bait_unhooked",0);
36 SetAnimationPhase("bait_hooked",1);
37 }
38 }
39}
override bool CanBeCookedOnStick()
Определения Worm.c:3
override void OnWasAttached(EntityAI parent, int slot_id)
Определения Worm.c:18
override bool IsMeat()
Определения Worm.c:13
override void OnWasDetached(EntityAI parent, int slot_id)
Определения Worm.c:29
override bool CanBeCooked()
Определения Worm.c:8
Определения Edible_Base.c:2
Определения Building.c:6
static proto native owned string GetSlotName(int id)
converts slot_id to string
provides access to slot configuration
Определения InventorySlots.c:6