Instalează Steam
conectare
|
limbă
简体中文 (chineză simplificată)
繁體中文 (chineză tradițională)
日本語 (japoneză)
한국어 (coreeană)
ไทย (thailandeză)
български (bulgară)
Čeština (cehă)
Dansk (daneză)
Deutsch (germană)
English (engleză)
Español - España (spaniolă - Spania)
Español - Latinoamérica (spaniolă - America Latină)
Ελληνικά (greacă)
Français (franceză)
Italiano (italiană)
Bahasa Indonesia (indoneziană)
Magyar (maghiară)
Nederlands (neerlandeză)
Norsk (norvegiană)
Polski (poloneză)
Português (portugheză - Portugalia)
Português - Brasil (portugheză - Brazilia)
Русский (rusă)
Suomi (finlandeză)
Svenska (suedeză)
Türkçe (turcă)
Tiếng Việt (vietnameză)
Українська (ucraineană)
Raportează o problemă de traducere
You SHOULD use applycontext normally and then set applyworldcontext = true
Since Valve only checks if applyworldcontext in an if statement to determine to set it to world spawn or firing entity
Cite:
In rr_ProcessResponse:
local applycontext = null
local applycontexttoworld = false
if ( "applycontext" in resp )
{
applycontext = resp.applycontext
}
if ( "applycontexttoworld" in resp )
{
applycontexttoworld = resp.applycontexttoworld
}
[---snip---]
if ( "scenename" in resp )
{
scene = resp.scenename
local Func = func
if ( applycontext )
func = @( speaker, query ) g_rr.rr_ApplyContext( speaker, query, applycontext, applycontexttoworld, Func )
}
if ( ( "context" in contextData ) && ( typeof contextData.context != "table" ) )
{
local duration = contextData.duration
if ( duration == 0 )
duration = -1
if ( contexttoworld )
{
local world = Entities.FindByClassname( null, "worldspawn" )
if ( world )
world.SetContext( contextData.context, contextData.value.tostring(), duration )
}
else
speaker.SetContext( contextData.context, contextData.value.tostring(), duration )
}
I spent 8 hours of my life figuring this out, I hope nobody will make the same mistakes as me again.
Friendship ended with logic_choreographed_scene, now director_base_addon.nut is my new best friend