example
example

教程 人物PED添加和服务器直接替换的音效教程

VanZeng

曾凡
论坛元老
高级用户
认证用户
人物PED也就是模型添加式很简单的但还是有人不会所以我出一期教程然后就是服务器直接可以用的音效替换服务端画质还没研究出来所以以后再说
1.我先去5Mods随便下一个模型先 这是正常的PED的模型文件跟车辆一样YTD和YDD和YTF
1681392862805.png
2.我们需要一个模板例如1681392951037.png
3.把模型文件放进stream里然后进入ped.meta编辑
1681393054850.png
将Name改成模型名称我这里是belle所以我改belle然后将文件夹也改成对应名字其实什么都行然后放到资源文件夹里然后start 添加式PED的名字就行
然后这是__resource.lua

resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'

files {
'*.meta',
}
data_file 'PED_METADATA_FILE' '*.meta'

peds.meta

<?xml version="1.0" encoding="UTF-8"?>
<CPedModelInfo__InitDataList>
<InitDatas>
<Item>
<Name>belle</Name>
<ClipDictionaryName>move_f@generic</ClipDictionaryName>
<ExpressionSetName>expr_set_ambient_female</ExpressionSetName>
<Pedtype>CIVFEMALE</Pedtype>
<MovementClipSet>move_f@generic</MovementClipSet>
<StrafeClipSet>move_ped_strafing</StrafeClipSet>
<MovementToStrafeClipSet>move_ped_to_strafe</MovementToStrafeClipSet>
<InjuredStrafeClipSet>move_strafe_injured</InjuredStrafeClipSet>
<FullBodyDamageClipSet>dam_ko</FullBodyDamageClipSet>
<AdditiveDamageClipSet>dam_ad</AdditiveDamageClipSet>
<DefaultGestureClipSet>ANIM_GROUP_GESTURE_F_GENERIC</DefaultGestureClipSet>
<FacialClipsetGroupName>facial_clipset_group_gen_female</FacialClipsetGroupName>
<DefaultVisemeClipSet>ANIM_GROUP_VISEMES_F_LO</DefaultVisemeClipSet>
<PoseMatcherName>Male</PoseMatcherName>
<PoseMatcherProneName>Male_prone</PoseMatcherProneName>
<GetupSetHash>NMBS_SLOW_GETUPS</GetupSetHash>
<CreatureMetadataName>ambientPed_upperWrinkles</CreatureMetadataName>
<DecisionMakerName>DEFAULT</DecisionMakerName>
<MotionTaskDataSetName>STANDARD_PED</MotionTaskDataSetName>
<DefaultTaskDataSetName>STANDARD_PED</DefaultTaskDataSetName>
<PedCapsuleName>STANDARD_FEMALE</PedCapsuleName>
<RelationshipGroup>CIVMALE</RelationshipGroup>
<NavCapabilitiesName>STANDARD_PED</NavCapabilitiesName>
<PerceptionInfo>DEFAULT_PERCEPTION</PerceptionInfo>
<DefaultBrawlingStyle>BS_AI</DefaultBrawlingStyle>
<DefaultUnarmedWeapon>WEAPON_UNARMED</DefaultUnarmedWeapon>
<Personality>SERVICEMALES</Personality>
<CombatInfo>DEFAULT</CombatInfo>
<VfxInfoName>VFXPEDINFO_HUMAN_GENERIC</VfxInfoName>
<AmbientClipsForFlee>FLEE</AmbientClipsForFlee>
<AbilityType>SAT_NONE</AbilityType>
<ThermalBehaviour>TB_WARM</ThermalBehaviour>
<SuperlodType>SLOD_HUMAN</SuperlodType>
<ScenarioPopStreamingSlot>SCENARIO_POP_STREAMING_NORMAL</ScenarioPopStreamingSlot>
<DefaultSpawningPreference>DSP_NORMAL</DefaultSpawningPreference>
<IsStreamedGfx value="false" />
</Item>
</InitDatas>
</CPedModelInfo__InitDataList>
 

VanZeng

曾凡
论坛元老
高级用户
认证用户
这个是可以将线下的音效包搞成服务器替换的方法
 

VanZeng

曾凡
论坛元老
高级用户
认证用户
我只需要把音效包在OPENIV里打开然后将audio取出并建立__resource.lua
 

VanZeng

曾凡
论坛元老
高级用户
认证用户
这是模板

resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937"
files {
'audio/sfx/resident/explosions.awc',
'audio/sfx/resident/weapons.awc',
'audio/sfx/resident/vehicles.awc',
'audio/sfx/weapons_player/lmg_combat.awc',
'audio/sfx/weapons_player/lmg_mg_player.awc',
'audio/sfx/weapons_player/mgn_sml_am83_vera.awc',
'audio/sfx/weapons_player/mgn_sml_am83_verb.awc',
'audio/sfx/weapons_player/mgn_sml_sc__l.awc',
'audio/sfx/weapons_player/ptl_50cal.awc',
'audio/sfx/weapons_player/ptl_combat.awc',
'audio/sfx/weapons_player/ptl_pistol.awc',
'audio/sfx/weapons_player/ptl_px4.awc',
'audio/sfx/weapons_player/ptl_rubber.awc',
'audio/sfx/weapons_player/sht_bullpup.awc',
'audio/sfx/weapons_player/sht_pump.awc',
'audio/sfx/weapons_player/smg_micro.awc',
'audio/sfx/weapons_player/smg_smg.awc',
'audio/sfx/weapons_player/snp_heavy.awc',
'audio/sfx/weapons_player/snp_rifle.awc',
'audio/sfx/weapons_player/spl_grenade_player.awc',
'audio/sfx/weapons_player/spl_minigun_player.awc',
'audio/sfx/weapons_player/spl_prog_ar_player.awc',
'audio/sfx/weapons_player/spl_railgun.awc',
'audio/sfx/weapons_player/spl_rpg_player.awc',
'audio/sfx/weapons_player/spl_tank_player.awc',
}
data_file 'AUDIO_WAVEPACK' 'audio/sfx/resident'
data_file 'AUDIO_WAVEPACK' 'audio/sfx/weapons_player'
 

Yann

站长
管理成员
GTAOS管理组
认证卖家
认证用户
本 月 名 人 榜 最 佳
牛啊,感谢分享! (y)
 
顶部