Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_KickHintComponent.c
Go to the documentation of this file.
1
[
ComponentEditorProps
(
category
:
"GameScripted/KickHintComponent"
, description:
""
)]
2
class
SCR_KickHintComponentClass
:
ScriptComponentClass
3
{
4
}
5
6
class
SCR_KickHintComponent :
ScriptComponent
7
{
8
protected
ref
ScriptInvokerFloat
m_OnCriminalScoreIncreased
=
new
ScriptInvokerFloat
();
9
10
//------------------------------------------------------------------------------------------------
13
[
RplRpc
(
RplChannel
.Reliable,
RplRcver
.Owner)]
14
void
RPC_DoIncreaseCriminalScore
(
float
points)
15
{
16
m_OnCriminalScoreIncreased
.Invoke(points);
17
}
18
19
//------------------------------------------------------------------------------------------------
22
void
ShowUI
(
float
points)
23
{
24
SCR_HintManagerComponent.ShowCustomHint(
"#AR-FriendlyFire_Text"
,
"#AR-FriendlyFire_Title"
, 15);
25
}
26
27
//------------------------------------------------------------------------------------------------
31
void
NotifyClientCriminalScoreIncreased
(
SCR_ECrimeNotification
crime,
float
points)
32
{
33
Rpc
(
RPC_DoIncreaseCriminalScore
, points);
34
}
35
36
//------------------------------------------------------------------------------------------------
37
override
void
OnPostInit
(
IEntity
owner)
38
{
39
m_OnCriminalScoreIncreased
.Insert(
ShowUI
);
40
}
41
}
42
43
enum
SCR_ECrimeNotification
44
{
45
TEAMKILL
46
}
ComponentEditorProps
enum EAIGroupCombatMode ComponentEditorProps(category:"GameScripted/AI", description:"Component for utility AI system for groups")
Definition
SCR_AIGroupUtilityComponent.c:12
m_OnCriminalScoreIncreased
SCR_KickHintComponentClass m_OnCriminalScoreIncreased
SCR_ECrimeNotification
SCR_ECrimeNotification
Definition
SCR_KickHintComponent.c:44
TEAMKILL
@ TEAMKILL
Definition
SCR_KickHintComponent.c:45
RPC_DoIncreaseCriminalScore
void RPC_DoIncreaseCriminalScore(float points)
Definition
SCR_KickHintComponent.c:14
ShowUI
void ShowUI(float points)
Definition
SCR_KickHintComponent.c:22
NotifyClientCriminalScoreIncreased
void NotifyClientCriminalScoreIncreased(SCR_ECrimeNotification crime, float points)
Definition
SCR_KickHintComponent.c:31
ScriptInvokerFloat
ScriptInvokerBase< ScriptInvokerFloatMethod > ScriptInvokerFloat
Definition
SCR_ScriptInvokerHelper.c:58
category
params category
Definition
SCR_VehicleDamageManagerComponent.c:302
GenericComponent::Rpc
void Rpc(func method, void p0=NULL, void p1=NULL, void p2=NULL, void p3=NULL, void p4=NULL, void p5=NULL, void p6=NULL, void p7=NULL)
IEntity
Definition
IEntity.c:13
SCR_KickHintComponentClass
Definition
SCR_KickHintComponent.c:3
ScriptComponentClass
Definition
ScriptComponentClass.c:8
ScriptComponent
Definition
ScriptComponent.c:24
RplRpc
void RplRpc(RplChannel channel, RplRcver rcver, RplCondition condition=RplCondition.None, string customConditionName="")
Definition
EnNetwork.c:95
RplRcver
RplRcver
Definition
RplRcver.c:59
RplChannel
RplChannel
Communication channel. Reliable is guaranteed to be delivered. Unreliable not.
Definition
RplChannel.c:14
OnPostInit
@ OnPostInit
Definition
SndComponentCallbacks.c:15
scripts
Game
Components
SCR_KickHintComponent.c
Generated by
1.17.0