Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_BayonetComponent.c
Go to the documentation of this file.
4
5class SCR_BayonetComponent : ScriptComponent
6{
8 protected const int BLOOD_STEP_SIZE = 10;
9 protected const float MAX_BLOOD_LEVEL = 255.0;
10
11 protected float m_fBloodStainLevel = 0;
12
13 //------------------------------------------------------------------------------------------------
20
21 //------------------------------------------------------------------------------------------------
22 [RplRpc(RplChannel.Reliable, RplRcver.Broadcast)]
23 protected void Rpc_AddBloodToBayonet()
24 {
26 return;
27
29 if (!materialComponent)
30 return;
31
33
34 materialComponent.SetUserParam2(Math.Clamp(m_fBloodStainLevel, 0.0, MAX_BLOOD_LEVEL));
35 }
36}
void AddBloodToBayonet()
Adds blood texture to bayonet.
SCR_BayonetComponentClass BLOOD_STEP_SIZE
Blood visibility steps - cannot be 0.
float m_fBloodStainLevel
void Rpc_AddBloodToBayonet()
const float MAX_BLOOD_LEVEL
proto external GenericComponent FindComponent(typename typeName)
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)
Definition Math.c:13
proto external GenericEntity GetOwner()
Get owner entity.
void RplRpc(RplChannel channel, RplRcver rcver, RplCondition condition=RplCondition.None, string customConditionName="")
Definition EnNetwork.c:95
RplRcver
Definition RplRcver.c:59
RplChannel
Communication channel. Reliable is guaranteed to be delivered. Unreliable not.
Definition RplChannel.c:14