Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Questions about playing sounds
TiManGames Offline
Senior Member

Posts: 517
Threads: 25
Joined: May 2015
Reputation: 11
#6
RE: Questions about playing sounds

(02-25-2018, 11:36 AM)werckm Wrote:
(02-24-2018, 09:25 PM)TiManGames Wrote:
(02-24-2018, 07:22 PM)werckm Wrote: Thank you!
Everything's clear now.

Another question: how do I get the enemy's state? HPL2 had GetEnemyStateName, but I can't find anything similar for HPL3.

I'm not sure, since every agent has different states. What are you trying to do?

I have a "Terry Akers" type of enemy (mindcoral/puppet_1/puppet_1.ent), and I'm trying to disable its "alerted" and "chase" music.
Or should I put Music_Stop somewhere else?

Okay - this is how you're going to stop the amb music for enemies:
Music_Stop(float afFadeTime, eMusicPrio); //This is the syntx, right?
/*Now, the musicPrio you can to choose are:
    eMusicPrio_BgAmb = 0, //Played as background for larger chunk of the level.
    eMusicPrio_SceneAmb = 1, //Played during a specifc scene
    eMusicPrio_MinorEvent = 2, //Eg Notice something weird. Never loop!
    eMusicPrio_AgentAmb = 3, //Used by AI code only!
    eMusicPrio_AgentToAmbTransition = 4, //Used by AI code only!
    eMusicPrio_BigEvent = 5,  //Eg find important character. Never loop!
    eMusicPrio_AgentAlert = 6, //Used by AI code only!
    eMusicPrio_AgentToAlertTransition = 7, //Used by AI code only!
    eMusicPrio_AgentHunt = 8, //Used by AI code only!
    eMusicPrio_AgentToHuntTransition = 9, //Used by AI code only!
    eMusicPrio_OverrideAll = 10, //Used when you want to override all AI code!
*/

This forum is dead
02-25-2018, 04:15 PM
Find


Messages In This Thread
Questions about playing sounds - by werckm - 02-24-2018, 04:03 PM
RE: Questions about playing sounds - by werckm - 02-24-2018, 07:22 PM
RE: Questions about playing sounds - by werckm - 02-25-2018, 11:36 AM
RE: Questions about playing sounds - by TiManGames - 02-25-2018, 04:15 PM
RE: Questions about playing sounds - by werckm - 02-25-2018, 05:05 PM
RE: Questions about playing sounds - by werckm - 02-25-2018, 07:01 PM
RE: Questions about playing sounds - by werckm - 02-26-2018, 09:36 PM



Users browsing this thread: 2 Guest(s)