DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ Release()

void Release ( vector pos)
private

См. определение в файле EasterEgg.c строка 185

186 {
187 if ( g_Game.IsServer() )
188 {
189 m_CaptureState = eCaptureState.RELEASEFX;
190 m_CreatureHash = 0;
191 SetSynchDirty();
192
193 g_Game.CreateObject( m_CreatureType, pos, false, true );
194 m_CreatureType = "";
195
196 DecreaseHealth( "", "", GetMaxHealth() * 0.4 );
197 SetQuantity( GetQuantityMin(), false );
199
200 if ( !IsAlive() )
201 {
202 if ( m_ParCapture )
203 m_ParCapture.Delete();
204 Delete();
205 }
206 }
207 }
DayZGame g_Game
Определения DayZGame.c:3942
eCaptureState
Определения EasterEgg.c:2
string m_CreatureType
Определения EasterEgg.c:17
int m_CaptureState
Определения EasterEgg.c:19
const vector CAPTURE_VELOCITY
Определения EasterEgg.c:20
Particle m_ParCapture
Определения EasterEgg.c:23
int m_CreatureHash
Определения EasterEgg.c:18
override bool SetQuantity(float value, bool destroy_config=true, bool destroy_forced=false, bool allow_client=false, bool clamp_to_stack_max=true)
Set item quantity[related to varQuantity... config entry], destroy_config = true > if the quantity re...
Определения ItemBase.c:8230
override int GetQuantityMin()
Определения ItemBase.c:8382
proto native void SetVelocity(notnull IEntity ent, vector vel)
Sets linear velocity (for Rigid bodies)

Перекрестные ссылки CAPTURE_VELOCITY, g_Game, GetQuantityMin(), m_CaptureState, m_CreatureHash, m_CreatureType, m_ParCapture, SetQuantity() и SetVelocity().

Используется в ContactEvent().