Network Replication...?

I've been beating around the bush here for a while now, like nearly everyone who's bothered to sign up to this part of the forum. Yet there is one aspect of scripting I cannot ever get my head around. Network Replicaion...
I mean, how are you supposed to tell what kind of replication you need for the variables? I find it an impossibility!
Here's some example of what I mean:
Any help on this issue appreciated =)

I mean, how are you supposed to tell what kind of replication you need for the variables? I find it an impossibility!
Here's some example of what I mean:
- Code: Select all
//
// network replication
//
replication
{
// server to client
reliable if ((Role == ROLE_Authority) && (bNetOwner))
ClipCount, bZoomed, bHasSilencer, bHasLaser, ModBaseAccuracy, ModReloadCount, ModAccurateRange, ModReloadTime, ModRecoilStrength;
// Things the client should send to the server
//reliable if ( (Role<ROLE_Authority) )
//LockTimer, Target, LockMode, TargetMessage, TargetRange, bCanTrack, LockTarget;
// Functions client calls on server
reliable if ( Role < ROLE_Authority )
ReloadAmmo, LoadAmmo, CycleAmmo, LaserOn, LaserOff, LaserToggle, ScopeOn, ScopeOff, ScopeToggle, PropagateLockState, ServerForceFire,
ServerGenerateBullet, ServerGotoFinishFire, ServerHandleNotify, StartFlame, StopFlame, ServerDoneReloading, DestroyOnFinish;
// Functions Server calls in client
reliable if ( Role == ROLE_Authority )
RefreshScopeDisplay, ReadyClientToFire, SetClientAmmoParams, ClientDownWeapon, ClientActive, ClientReload;
}
Any help on this issue appreciated =)