ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
Breath mod fix

Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  01:58:44  24 February 2012
profilee-mailreply Message URLTo the Top
Llynix
(Novice)
 
On forum: 12/19/2011
 

Message edited by:
Don Reba
02/24/2012 3:33:58
Messages: 47
I had a small problem with this minimod in that if the actor got killed when tired, the breathing and heartbeat sounds would continue to play from his corpse. By simply adding two lines (in bold) the sounds stop when the actor dies. Just thought I'd share this as it might help some users of this mod if they have similar problems.

function atmen()
        local ausdauer = db.actor.power
        if ausdauer <= .9 then
                if db.actor:alive()then
                        if timer(breath,"breath") == true then
                                local breath_sound = xr_sound.get_safe_sound_object([[characters_voice\human_03\breath_at]])
                                breath_sound:play_no_feedback(db.actor, sound_object.s2d, 0, vector(), 1 / (ausdauer / (1 - ausdauer)))
                                breath = 2202
                        end
                end
        elseif ausdauer > .9 then
                reset_timer("breath")
                if breath ~= 1 then breath = 1 end
        end
        if ausdauer < .3 then
                if db.actor:alive()then
                        if timer(heart,"heart") == true then
                                local hbeat_sound = xr_sound.get_safe_sound_object([[heart\2]])
                                hbeat_sound:play_no_feedback(db.actor, sound_object.s2d, 0, vector(), 2.0)
                                heart = 7514
                        end
                end
  19:46:11  24 February 2012
profilee-mailreply Message URLTo the Top
ThunderFreak
Senior Resident
 

 
On forum: 08/07/2009
Messages: 685
Thanks for that fix. I really appreciate it.

I know now why it didn't happen to me. I called the breathing function from another script that was already checking if the actor is alive.
  20:14:56  24 February 2012
profilee-mailreply Message URLTo the Top
LoNer1
Настоящий Cталкер, Русская Версия
(Resident)

 

 
On forum: 10/23/2009
Messages: 1890

---QUOTATION---
Thanks for that fix. I really appreciate it.

I know now why it didn't happen to me. I called the breathing function from another script that was already checking if the actor is alive.
---END QUOTATION---



The breath mod? with the gas tanks on the suits? were is that one...
  01:10:19  25 February 2012
profilee-mailreply Message URLTo the Top
Derranged
Senior Resident
 

 
On forum: 04/12/2010
Messages: 1009

---QUOTATION---
Thanks for that fix. I really appreciate it.

I know now why it didn't happen to me. I called the breathing function from another script that was already checking if the actor is alive.

The breath mod? with the gas tanks on the suits? were is that one...
---END QUOTATION---



No, it's when you become exhausted you will hear your heart beat. It's in the download section, when you go to it the name is Atmen... And the dialogue in the scripts are in German. You might have to google translate that if you are fussy! xD
  14:08:55  25 February 2012
profilee-mailreply Message URLTo the Top
ThunderFreak
Senior Resident
 

 
On forum: 08/07/2009
Messages: 685
The breath mod is not only when wearing a gas mask or a suit. When the actor is exhausted you should her him breathing with or without masks.
  22:31:07  21 March 2012
profilee-mailreply Message URLTo the Top
Majorsoft
(Senior)
 
On forum: 08/10/2009
 

Message edited by:
Majorsoft
03/23/2012 1:54:03
Messages: 131
Correction

Hi - Stalker!

Can you please update your Breath-mod with fix ? Not all stalkers knows how to edit your scripts...

On your page with download is still script.atmen with breath-heartbeat continue after die.

Hail! and thanx for your realy smart work...

apropos -what your attack.script ? Any news ? I think...it'd be fine more respawn coordinates.

z.o.n.e.w.i.t.h.y.o.u.
  12:27:07  24 March 2012
profilee-mailreply Message URLTo the Top
ThunderFreak
Senior Resident
 

 
On forum: 08/07/2009
Messages: 685
Sorry, but at the moment I'm quite busy scripting for the Redux Mod for CoP.
I'll prepare an updated package for the breath (german 'atmen') and after upload I'll post the link.

... and for the attack mod. Fell free to add more coordinates if the 2 spawn places are to less for you.
  20:50:16  24 March 2012
profilee-mailreply Message URLTo the Top
LoNer1
Настоящий Cталкер, Русская Версия
(Resident)

 

 
On forum: 10/23/2009
Messages: 1890

---QUOTATION---
Thanks for that fix. I really appreciate it.

I know now why it didn't happen to me. I called the breathing function from another script that was already checking if the actor is alive.

The breath mod? with the gas tanks on the suits? were is that one...

No, it's when you become exhausted you will hear your heart beat. It's in the download section, when you go to it the name is Atmen... And the dialogue in the scripts are in German. You might have to google translate that if you are fussy! xD
---END QUOTATION---



Ohhh! i have that one in PPx translated
 
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-2021 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.