[WB] Heavy armor new footsteps sounds

正在查看此主题的用户

deadknight

Sergeant
Hi, I'm trying to add new footsteps sounds for heavy armors, but don't really know how to do it. For the moment I tried to replace all the footsteps sounds, but like expect, it feels weird to enter a city and hear light clothed civilians like they were wearing heavy armors...

Someone knows how to add specifics sounds for specifics clothes ? That would be very helpful, thanks in advance ! :smile:

PS : Sorry for my poor english...
 
Your first step is to remove or substitute the existing sound effects, found here (although you could leave the water in)
插入代码块:
("footstep_grass", sf_vol_4|sf_priority_1,["footstep_1.ogg","footstep_2.ogg","footstep_3.ogg","footstep_4.ogg"]),
 ("footstep_wood", sf_vol_5|sf_priority_1,["footstep_wood_1.ogg","footstep_wood_2.ogg","footstep_wood_4.ogg"]),
# ("footstep_wood", sf_vol_3|sf_priority_1,["footstep_stone_1.ogg","footstep_stone_3.ogg","footstep_stone_4.ogg"]),
 ("footstep_water", sf_vol_4|sf_priority_3,["water_walk_1.ogg","water_walk_2.ogg","water_walk_3.ogg","water_walk_4.ogg"]),
Then you need to figure out when agents are walking - use agent_get_speed every other frame or so to determine when they're walking.
Then you need to determine what sound the armour they're making should make - use agent_get_item_slot to check the chest piece. Then call agent_play_sound where appropriate, keeping in mind all this is being run on one interval and might be weird to hear every single agent marching with the same sound.
 
后退
顶部 底部