Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс PlateCarrierVest
+ Граф наследования:PlateCarrierVest:

Закрытые члены

override void OnWasAttached (EntityAI parent, int slot_id)
 
override void OnDebugSpawn ()
 

Подробное описание

Методы

◆ OnDebugSpawn()

override void OnDebugSpawn ( )
inlineprivate
16 {
18 if ( Class.CastTo(entity, this) )
19 {
20 entity.GetInventory().CreateInInventory( "PlateCarrierPouches" );
21 entity.GetInventory().CreateInInventory( "PlateCarrierHolster" );
22 }
23 }
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition Building.c:6
Definition EntityAI.c:95
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

Перекрестные ссылки Class::CastTo().

◆ OnWasAttached()

override void OnWasAttached ( EntityAI parent,
int slot_id )
inlineprivate
4 {
5 super.OnWasAttached( parent, slot_id );
6
7 if ( GetGame().IsServer() && parent.IsInherited( DayZInfected ) )
8 {
9 float coef = Math.RandomFloatInclusive( 0.2, 0.4 );
10 SetHealth01( "", "", coef);
11 }
12 }
Definition ZombieBase.c:2
Definition EnMath.c:7
proto native CGame GetGame()
static float RandomFloatInclusive(float min, float max)
Returns a random float number between and min [inclusive] and max [inclusive].
Definition EnMath.c:106

Перекрестные ссылки GetGame() и Math::RandomFloatInclusive().


Объявления и описания членов класса находятся в файле: