Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
stuffednotfr.c
Go to the documentation of this file.
1
class
StuffedNotfr
:
NotifierBase
2
{
3
void
StuffedNotfr
(
NotifiersManager
manager)
4
{
5
m_Active =
true
;
6
}
7
8
override
int
GetNotifierType()
9
{
10
return
eNotifiers
.NTF_STUFFED;
11
}
12
13
override
void
DisplayBadge()
14
{
15
float
volume =
m_Player
.m_PlayerStomach.GetStomachVolume();
16
eBadgeLevel
lvl = DetermineBadgeLevel(volume,
PlayerConstants
.BT_STOMACH_VOLUME_LVL3,
PlayerConstants
.BT_STOMACH_VOLUME_LVL3,
PlayerConstants
.BT_STOMACH_VOLUME_LVL3);
17
DisplayElementBadge
dis_elm =
DisplayElementBadge
.Cast(
GetVirtualHud
().
GetElement
(eDisplayElements.DELM_BADGE_STUFFED));
18
19
if
( dis_elm )
20
{
21
dis_elm.SetLevel(lvl);
22
}
23
}
24
25
override
void
HideBadge()
26
{
27
DisplayElementBadge
dis_elm =
DisplayElementBadge
.Cast(
GetVirtualHud
().
GetElement
(eDisplayElements.DELM_BADGE_STUFFED));
28
29
if
( dis_elm )
30
{
31
dis_elm.SetLevel(
eBadgeLevel
.NONE);
32
}
33
}
34
};
eBadgeLevel
eBadgeLevel
Definition:
_constants.c:1
GetElement
DisplayElementBase GetElement(eDisplayElements element_id)
Definition:
displaystatus.c:95
StuffedNotfr
Definition:
stuffednotfr.c:1
DisplayElementBadge
Definition:
badgebleeding.c:1
GetVirtualHud
VirtualHud GetVirtualHud()
Definition:
notifiersmanager.c:77
NotifiersManager
void NotifiersManager(PlayerBase player)
Definition:
notifiersmanager.c:36
PlayerConstants
Definition:
playerconstants.c:1
m_Player
DayZPlayer m_Player
Definition:
hand_events.c:42
NotifierBase
Definition:
notifierbase.c:1
eNotifiers
eNotifiers
Definition:
notifiersmanager.c:1
DAYZ
scripts_v1.24.157551
scripts
world
classes
playernotifiers
notifiers
stuffednotfr.c
Generated by
1.8.17