Song is const in ut99
I'm making an Unreal (227i) mutator
Code: Select all
if(LocalPlayer.RemoteRole == ROLE_AutonomousProxy) //find our local player...
won't work in singleplayer mode. Without changing RemoteRole to Role it won't work in multiplayer too.
Code: Select all
defaultproperties
{
RemoteRole=ROLE_SimulatedProxy
}
something's missing here.
1) :exclamation Make sure mutator is ROLE_SimulatedProxy :exclamation
2) :exclamation Make sure mutator is in server packages :exclamation
2.718281828459) make sure the mutator is net-relevant (otherwise it won't be ever replicated) - e.g., set its bAlwaysRelevant to true.
This version, v2, obsesses on your client and waits until your playerpawn exists
I presume, in case of 227i, that's still unreliable (after fixing net-relevancy). Where's the guarantee that replicated function call
Code: Select all
NewPlayer.ClientSetMusic(NewPlayer.Song,NewPlayer.SongSection,Level.CdTrack,MTRAN_FastFade)
from GameInfo.PostLogin won't be executed after derp.Timer()?
If there are two reliable function calls C1 and C2 and the call C1 is initiated before C2 on the host machine, then C1 is guaranteed to be executed before C2 on the target machine. Is there any strong ordering for calls of a reliably replicated function and a simulated function PostBeginPlay for a newly replicated actor?