ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
Gas mask sound

Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  17:10:43  20 July 2012
profilee-mailreply Message URLTo the Top
YellowElephat
Senior Resident
 

 
On forum: 03/16/2009
Messages: 187
Gas mask sound

I found that People Soup mod was a gas mask sound, when you put it on. I wonder how it's done, it really adds a lot of mood then playing like this.

I found the sound file for this gas_mask_idle and it's related to a script called hidden_slots.script .
And I don't know that's next?

I think need to add a line in bind_stalker , but i don't know if I need any other scripts for it to work ? So maybe somebody can help me with this ?
  18:52:45  20 July 2012
profilee-mailreply Message URLTo the Top
r_populik
Senior Resident
 

 
On forum: 11/06/2011
Messages: 213

---QUOTATION---
Gas mask sound

I found that People Soup mod was a gas mask sound, when you put it on. I wonder how it's done, it really adds a lot of mood then playing like this.

I found the sound file for this gas_mask_idle and it's related to a script called hidden_slots.script .
And I don't know that's next?

I think need to add a line in bind_stalker , but i don't know if I need any other scripts for it to work ? So maybe somebody can help me with this ?
---END QUOTATION---



You can simply create this effect from scratch. First of all copy gas_mask_idle.ogg to gamedata\sounds\actor.
Next you have to create snd_breath.script file with such content:

    ---------------------????????????? ???? ??????? ??? ?????? ?????-----------------------------
    -- The table contains a section of suits with a helmet. Supplement those that are in your mod!
    local outfits = {
    ["ecolog_outfit"]=true,
    ["specops_outfit"]=true,
    ["specops_outfit_bad"]=true
    }

    -- the sound of breathing ( Need file sounds\actor\gas_mask_idle.ogg )
    local snd            = xr_sound.get_safe_sound_object([[actor\gas_mask_idle]])

    -- call from update (actor_binder:update(delta) )
    function sound_update()
        local outfit = db.actor:item_in_slot(6)
        if outfit and outfits[outfit:section()]  then
            if not snd:playing() then snd:play_at_pos(db.actor, vector ():set (0, 0, 0), 0, sound_object.s2d) end
        else
            if snd:playing() then snd:stop() end
        end
    end
    ---------------------------------------------------------------------------------------------



Next open bind_stalker.script and after this:

function actor_binder:update(delta)


add this:

    snd_breath.sound_update() -- sound of breathing



That's all. You can of course add another outfits to snd_breath.script .
Credits to Charsi from AMK forum and Vandr from forum.stalker.pl
  20:16:02  20 July 2012
profilee-mailreply Message URLTo the Top
YellowElephat
Senior Resident
 

 
On forum: 03/16/2009
Messages: 187
Thanks !!! Everything worked perfectly
  18:32:36  22 July 2012
profilee-mailreply Message URLTo the Top
PressurE
Senior Resident
 

 
On forum: 09/07/2009
 

Message edited by:
PressurE
07/22/2012 18:32:58
Messages: 276
Thanks r_populik for posting this! I use this in OGSE and it works great.
 
Each word should be at least 3 characters long.
Search:    
Search conditions:    - spaces as AND    - spaces as OR   
 
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
 

All short dates are in Month-Day-Year format.


 

Copyright © 1995-2022 GSC Game World. All rights reserved.
This site is best viewed in Internet Explorer 4.xx and up and Javascript enabled. Webmaster.
Opera Software products are not supported.
If any problem concerning the site functioning under Opera Software appears apply
to Opera Software technical support service.