 |
 |
 |
|
 |
 |
 |
|
 |
 |
|
|
|
|
01:58:44 24 February 2012 |
|
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 |
|
1 | All Messages |
|
|
|
» » |
|
All short dates are in Month-Day-Year format. |
 |
|
 |
|
|
|
 |
 |
 |