Steam installeren
inloggen
|
taal
简体中文 (Chinees, vereenvoudigd)
繁體中文 (Chinees, traditioneel)
日本語 (Japans)
한국어 (Koreaans)
ไทย (Thai)
Български (Bulgaars)
Čeština (Tsjechisch)
Dansk (Deens)
Deutsch (Duits)
English (Engels)
Español-España (Spaans - Spanje)
Español - Latinoamérica (Spaans - Latijns-Amerika)
Ελληνικά (Grieks)
Français (Frans)
Italiano (Italiaans)
Bahasa Indonesia (Indonesisch)
Magyar (Hongaars)
Norsk (Noors)
Polski (Pools)
Português (Portugees - Portugal)
Português - Brasil (Braziliaans-Portugees)
Română (Roemeens)
Русский (Russisch)
Suomi (Fins)
Svenska (Zweeds)
Türkçe (Turks)
Tiếng Việt (Vietnamees)
Українська (Oekraïens)
Een vertaalprobleem melden
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