Player losing voice on bleed out

Post » Mon Jul 28, 2014 12:18 am

I've been trying to figure out how to work around/fix this. I'm doing this all with scripting. I've set the player's actor base as essential so the player cannot die. So instead of dying, the player will go into bleed out, and will fire the event OnEnterBleedout(). I get the player out of the bleed out by simply restoring health.

The player is now fine, but the voice is gone. By voice I mean the little grunts that are made by swinging weapons, etc. The shout voices still work as well as all the other sounds. Has anyone ever ran into this problem? Is there any way I can restore the voice after the bleed out? Any help/suggestion is appreciated, I'm running out of ideas.

User avatar
chinadoll
 
Posts: 3401
Joined: Tue Aug 22, 2006 5:09 am

Post » Mon Jul 28, 2014 5:13 am

I'd say it's because the player isn't ment to not die. You'll want to restore the player after dying (going into bleed out), with disable -> resurrect -> enable.

Or contact the maker of http://www.nexusmods.com/skyrim/mods/16311/? and ask how he did it.

User avatar
Toby Green
 
Posts: 3365
Joined: Sun May 27, 2007 5:27 pm

Post » Mon Jul 28, 2014 12:05 am

Here's the code I'm using for my own Mod. And I don't get the bug you've described, so something inside my code prevents it from having no voice?

Event OnUpdate()    If PlayerREF.IsInKillmove() && PlayerREF.GetActorValue("health") <= 1        ActorBase akTarget = PlayerREF.GetBaseObject() as ActorBase            akTarget.setEssential(false)        PlayerREF.SetNoBleedoutRecovery(true)        SetToggleOptionValue(PlayerEssential, !PlayerEssentialToggle)        Debug.Messagebox("Player Essential State has been turned off!")    EndIf    If PlayerREF.IsBleedingOut()        PlayerREF.PlayIdle(bleedoutstop)        Utility.wait(2)        Game.ForceFirstPerson()        PlayerREF.RestoreActorValue("health", 25)            EndIf    RegisterForSingleUpdate(1)EndEvent   

The OnUpdate runs only in combat and when the player is dying.

User avatar
Petr Jordy Zugar
 
Posts: 3497
Joined: Tue Jul 03, 2007 10:10 pm

Post » Sun Jul 27, 2014 2:20 pm

Thanks for the reply. I tried the disable, res, enable and it didn't seem to do anything.

Also, the Essential Player Mod actually have someone commented about this same issue. When they recover from bleed out, they also lose player voice/grunts.

User avatar
MR.BIGG
 
Posts: 3373
Joined: Sat Sep 08, 2007 7:51 am

Post » Sun Jul 27, 2014 7:46 pm

See my second post...;)

User avatar
Tracy Byworth
 
Posts: 3403
Joined: Sun Jul 02, 2006 10:09 pm

Post » Sun Jul 27, 2014 1:23 pm

I don't know if IsBleedingOut() is the same state of the actor as if the actor went to the event OnEnterBleedOut().

Anyway, I've simplified my code down to just setting the player actor base as essential. I go in game, kill my player, the player goes into bleed out, I restore some health, player gets out of bleedout and has no more voice.

User avatar
FABIAN RUIZ
 
Posts: 3495
Joined: Mon Oct 15, 2007 11:13 am

Post » Mon Jul 28, 2014 5:34 am

Hmm, for some reason, now my player doesn't even have to get into bleed out. I started a new game with no voice at start. This is weird because I already tried starting a new game, but the voice only went away when I entered bleed out. I am however using Skyrim Unbound, I'll try to see if that does anything,,

Edit: nvm, It's not Skyrim Unbound.

User avatar
Laura Wilson
 
Posts: 3445
Joined: Thu Oct 05, 2006 3:57 pm

Post » Mon Jul 28, 2014 1:39 am

Ok I've started a new game without my mod. Everything is perfect. The problem lies in setting the player as essential and/or entering bleed out state because of being essential. I used only the in game console to set the player as essential, and after kill > bleed out > restore health > get out of bleed out, there is no more voice.

So I guess my problem is how to restore the voice after I have set the player as essential and recovered from a bleed out (instead of dying).

Edit:

Actually, it'd be great if someone can confirm this is the case. I'd like to know if it's just my game. If anyone can go in game, and type in the console:

setessential 7 1

player.damageav health 9999

(then get out of console and watch yourself go into bleed out)

player.restoreav health 9999

(then get out of console and see if you can still make grunt sounds while doing power attacks)

User avatar
Louise Dennis
 
Posts: 3489
Joined: Fri Mar 02, 2007 9:23 pm

Post » Mon Jul 28, 2014 5:31 am

I can confirm lost grunt sounds on essential death via console. Player grunts are tight to a quests dialogue. You should figure if there's a condition that doesn't play grunt sounds if the player is dead.

However, I can not confirm lost grunt sounds on my Mod. They get restored. It's on a savegame though, try save and reloading and see if it fixes it?

User avatar
City Swagga
 
Posts: 3498
Joined: Sat May 12, 2007 1:04 am


Return to V - Skyrim