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

◆ Capture()

void Capture ( DayZCreatureAI capAnimal)
private

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

158 {
159 if ( !IsAlive() )
160 {
161 if ( m_ParCapture )
162 m_ParCapture.Delete();
163 Delete();
164 return;
165 }
166
167 m_StoredCreature = capAnimal;
170 m_CaptureState = eCaptureState.CAPTUREFX;
171 m_DangerSound = m_StoredCreature.IsDanger();
172 m_CaptureSoundHash = m_StoredCreature.CaptureSound().Hash();
173 m_ReleaseSoundHash = m_StoredCreature.ReleaseSound().Hash();
174
175 //Resize particle upon capture as there is enough delay to be sure value is synced
176 ResizeParticle( capAnimal );
177
178 SetSynchDirty();
179
180 capAnimal.Delete();
183 }
eCaptureState
Определения EasterEgg.c:2
string m_CreatureType
Определения EasterEgg.c:17
void ResizeParticle(DayZCreatureAI capAnimal)
Определения EasterEgg.c:228
int m_CaptureState
Определения EasterEgg.c:19
int m_ReleaseSoundHash
Определения EasterEgg.c:34
const vector CAPTURE_VELOCITY
Определения EasterEgg.c:20
bool m_DangerSound
Определения EasterEgg.c:30
Particle m_ParCapture
Определения EasterEgg.c:23
enum eCaptureState m_StoredCreature
int m_CaptureSoundHash
Определения EasterEgg.c:33
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:8006
override int GetQuantityMax()
Определения ItemBase.c:8106
proto native void SetVelocity(notnull IEntity ent, vector vel)
Sets linear velocity (for Rigid bodies)

Перекрестные ссылки CAPTURE_VELOCITY, GetQuantityMax(), m_CaptureSoundHash, m_CaptureState, m_CreatureHash, m_CreatureType, m_DangerSound, m_ParCapture, m_ReleaseSoundHash, m_StoredCreature, ResizeParticle(), SetQuantity() и SetVelocity().

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