Upload from upload_mods.ps1
This commit is contained in:
34
Scripts/Network/NetPackageResetHNStats.cs
Normal file
34
Scripts/Network/NetPackageResetHNStats.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user