35 lines
838 B
C#
35 lines
838 B
C#
public class NetPackageResetHNStats : NetPackage
|
|
{
|
|
public NetPackageResetHNStats Setup()
|
|
{
|
|
return this;
|
|
}
|
|
|
|
public override void read(PooledBinaryReader _reader)
|
|
{
|
|
}
|
|
|
|
public override void write(PooledBinaryWriter _writer)
|
|
{
|
|
base.write(_writer);
|
|
}
|
|
|
|
public override void ProcessPackage(World _world, GameManager _callbacks)
|
|
{
|
|
//Log.Out("NetPackageResetHNStats-ProcessPackage 1");
|
|
if (_world == null || !_world.IsRemote())
|
|
{
|
|
//Log.Out("NetPackageResetHNStats-ProcessPackage 2");
|
|
return;
|
|
}
|
|
|
|
RebirthVariables.localConstants["$varFuriousRamsayHNKills_Cst"] = 0;
|
|
RebirthVariables.localConstants["$varFuriousRamsayHNHeadShots_Cst"] = 0;
|
|
}
|
|
|
|
public override int GetLength()
|
|
{
|
|
return 1;
|
|
}
|
|
}
|