Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
GroupChatChannel.c
Go to the documentation of this file.
1
class
GroupChatChannel
:
BaseChatChannel
2
{
3
//------------------------------------------------------------------------------------------------
4
override
bool
IsDelivering(BaseChatComponent sender, BaseChatComponent receiver)
5
{
6
SCR_PlayerController
senderPC =
SCR_PlayerController
.Cast(sender.GetOwner());
7
SCR_PlayerController
receiverPC =
SCR_PlayerController
.Cast(receiver.GetOwner());
8
if
(!receiverPC || !senderPC)
9
return
false
;
10
11
SCR_PlayerControllerGroupComponent senderGroup = SCR_PlayerControllerGroupComponent.Cast(senderPC.FindComponent(SCR_PlayerControllerGroupComponent));
12
SCR_PlayerControllerGroupComponent receiverGroup = SCR_PlayerControllerGroupComponent.Cast(receiverPC.FindComponent(SCR_PlayerControllerGroupComponent));
13
14
if
(!senderGroup || !receiverGroup)
15
return
false
;
16
17
return
senderGroup.GetGroupID() == receiverGroup.GetGroupID();
18
}
19
20
21
//------------------------------------------------------------------------------------------------
22
override
bool
IsAvailable(BaseChatComponent sender)
23
{
24
SCR_PlayerController
senderPC =
SCR_PlayerController
.Cast(sender.GetOwner());
25
if
(!senderPC)
26
return
false
;
27
28
SCR_PlayerControllerGroupComponent senderGroupController = SCR_PlayerControllerGroupComponent.Cast(senderPC.FindComponent(SCR_PlayerControllerGroupComponent));
29
30
return
senderGroupController && senderGroupController.GetGroupID() != -1;
31
}
32
};
BaseChatChannel
Definition
BaseChatChannel.c:13
GroupChatChannel
Definition
GroupChatChannel.c:2
SCR_PlayerController
Definition
SCR_PlayerController.c:31
scripts
GameCode
Network
GroupChatChannel.c
Generated by
1.17.0