User:Clairebun/Sandbox/LuaCFail

From SRB2 Wiki
Jump to navigation Jump to search

Don't fuck up your net consistency!

Having netsynch issues? Make sure your script isn't misusing any of the following:

Globals:

consoleplayer

displayplayer

curweather

globalweather

menuactive

devparm

Hooks

ViewpointSwitch

SeenPlayer

Functions

CV_FindVar() (local consvars)

R_SkinUsable()

R_PointToAngle()

R_PointToDist()

S_OriginPlaying()

S_IdPlaying()

S_SoundPlaying()

S_SpeedMusic()

S_GetMusicPosition()

S_GetMusicLength()

player_t

player.viewz

player.viewheight

player.deltaviewheight

player.bob

player.fovadd

Other

camera_t

consvar_t (if not a netvar)

patch_t (?)

Netvars (Currently are not properly synched if the player joins during intermission)

Doesn't desynch, but may cause problems in the future

secondarydisplayplayer