HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

SetcinematicScene

07-31-2006, 01:18 PM#1
Doomhammer
I'm about to finish my cinematics for multiplayer. Major parts of my code are cinematic scenes, with individual text and individual 'speaker' depending on player race. As the whole thing is thought to be played online, too, and I'm more than sick of desyncs, I'd like to know whether a setup as follows would cause desyncs or not.

Code:
    set p = GetLocalPlayer() 
   
    if GetPlayerRace(p) == RACE_HUMAN then
        set r = 0
    elseif GetPlayerRace(p) == RACE_ORC
        set r = 1
    elseif GetPlayerRace(p) == RACE_UNDEAD
        set r = 2
    elseif GetPlayerRace(p) == RACE_NIGHTELF
        set r = 3
    endif

    set utype[0] = 'hspt'
    set utype[1] = 'nw2w'
    set utype[2] = 'uktn'
    set utype[3] = 'Ewrd'

   //introstring array...filled up with strings

call SetCinematicScene(utype[r], GetPlayerColor(p), "", introstring[r], 4.00, 4.00)