8 string stepsCfgPath =
"CfgVehicles SurvivorBase AnimEvents Steps ";
10 for(
int i = 0; i < stepsCount; i++)
14 string stepPath = stepsCfgPath + stepName +
" ";
25 table.LoadTable(tableName);
39 if(soundBuilder == NULL)
110 string attachCfgPath =
"CfgVehicles SurvivorBase AnimEvents Attachments ";
112 for(
int i = 0; i < attachCount; i++)
116 string defPath = attachCfgPath + defName +
" ";
129 table =
new AttachmentSoundLookupTable();
130 table.LoadTable(tableName);
145 if(soundBuilder == NULL)
177 string cfgPath =
"CfgVehicles SurvivorBase AnimEvents SoundVoice ";
180 for(
int i = 0; i < childCount; i++)
184 string defPath = cfgPath + defName +
" ";
195 table.LoadTable(tableName);
199 if(
GetGame().ConfigGetText(defPath +
"noise", noiseName))
203 table.SetNoiseParam(np);
218 if(soundBuilder == NULL)
230 return table.GetNoiseParam();
254 string soundsCfgPath =
"CfgVehicles SurvivorBase AnimEvents Sounds ";
257 for(
int i = 0; i < soundCount; i++)
261 string soundPath = soundsCfgPath + soundName +
" ";
262 AnimSoundEvent soundEvent =
new AnimSoundEvent(soundPath);
263 if(soundEvent.IsValid())
273 if(soundEvent.m_iID == event_id)
329 pType.RegisterStepEvent(
"Step", 0.2);
331 pType.RegisterSoundEvent(
"Sound", -1);
332 pType.RegisterSoundEvent(
"SoundWeapon", 0.2);
333 pType.RegisterSoundEvent(
"SoundVoice", -1);
334 if(!
GetGame().IsDedicatedServer())
335 pType.RegisterSoundEvent(
"SoundAttachment", 0.2);
339 pType.RegisterVoiceSoundLookupTable(voiceTable2);
341 if(!
GetGame().IsDedicatedServer())
343 pType.RegisterParticleEvent(
"Particle", -1);
346 pType.RegisterStepSoundLookupTable(stepTable);
349 pType.RegisterAttachmentSoundLookupTable(attachTable);
354 pType.RegisterSoundTable(soundTable);
void PlayerVoiceLookupTable()
static private ref AnimSoundObjectBuilderBank m_instance
static AnimSoundObjectBuilderBank GetInstance()
class SoundLookupTable StepSoundLookupTable()
class DayZPlayerTypeStepSoundLookupTableImpl extends DayZPlayerTypeStepSoundLookupTable DayZPlayerTypeAttachmentSoundLookupTableImpl()
private autoptr map< int, StepSoundLookupTable > m_pSoundTables
class DayZPlayerTypeVoiceSoundLookupTableImpl extends DayZPlayerTypeVoiceSoundLookupTable DayZPlayerTypeSoundTableImpl()
private ref array< ref AnimSoundEvent > m_animSoundEvents
void DayZPlayerTypeVoiceSoundLookupTableImpl()
void DayZPlayerTypeRegisterSounds(DayZPlayerType pType)
private autoptr map< int, ref StepSoundLookupTable > m_pSoundTableInstances
void DayZPlayerTypeStepSoundLookupTableImpl()
class NoiseSystem NoiseParams()
proto native int ConfigGetChildrenCount(string path)
Get count of subclasses in config class on path.
proto native void ProfilerStop(string name)
Use for profiling code from start to stop, they must match have same name, look wiki pages for more i...
proto bool ConfigGetText(string path, out string value)
Get string value from config on path.
proto native void ProfilerStart(string name)
Use for profiling code from start to stop, they must match have same name, look wiki pages for more i...
proto native int ConfigGetInt(string path)
Get int value from config on path.
proto bool ConfigGetChildName(string path, int index, out string name)
Get name of subclass in config class on path.
SoundObjectBuilder GetSoundBuilder(int eventId, string slotName, int attachmentHash)
private autoptr map< int, StepSoundLookupTable > m_pSoundTables
private autoptr map< int, ref StepSoundLookupTable > m_pSoundTableInstances
static DayZPlayerTypeStepSoundLookupTableImpl GetInstance()
void DayZPlayerTypeStepSoundLookupTableImpl()
override SoundObjectBuilder GetSoundBuilder(int eventId, int pMovement, int pSurfaceHash, AnimBootsType pBoots)
static private ref DayZPlayerTypeStepSoundLookupTableImpl m_instance
override NoiseParams GetNoiseParams(int eventId)
override SoundObjectBuilder GetSoundBuilder(int eventId, int parameterHash)
static private ref DayZPlayerTypeVoiceSoundLookupTableImpl m_instance
void DayZPlayerTypeVoiceSoundLookupTableImpl()
private autoptr map< int, PlayerVoiceLookupTable > m_pSoundTables
private autoptr map< int, ref PlayerVoiceLookupTable > m_pSoundTableInstances
static DayZPlayerTypeVoiceSoundLookupTableImpl GetInstance()
SoundObjectBuilder GetSoundBuilder(int parameterHash)
proto native void SetVariable(string name, float value)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
DayZPlayerConstants
defined in C++
private void DayZPlayerType()
class DayZPlayerTypeAttachmentSoundLookupTable GetSoundEvent(int event_id)
proto native CGame GetGame()
proto native int Hash()
Returns hash of string.