Changeset 114
- Timestamp:
- Jul 28, 2014, 11:27:14 PM (10 years ago)
- Location:
- binary-improvements
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/7dtd-server-fixes.csproj
r113 r114 61 61 <Compile Include="src\TelnetCommands\ListLandProtection.cs" /> 62 62 <Compile Include="src\TelnetCommands\RemoveLandProtection.cs" /> 63 <Compile Include="src\TelnetCommands\Version.cs" /> 63 64 </ItemGroup> 64 65 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> -
binary-improvements/7dtd-server-fixes/src/AssemblyInfo.cs
r79 r114 18 18 // and "{Major}.{Minor}.{Build}.*" will update just the revision. 19 19 20 [assembly: AssemblyVersion("0. 8.7.32040")]20 [assembly: AssemblyVersion("0.087.*")] 21 21 22 22 // The following attributes are used to specify the signing key for the assembly, -
binary-improvements/7dtd-server-fixes/src/CommandExtensions.cs
r113 r114 17 17 manager.m_GUIConsole.AddCommand (new SetTimeReal (manager.m_GUIConsole)); 18 18 manager.m_GUIConsole.AddCommand (new ShowInventory (manager.m_GUIConsole)); 19 manager.m_GUIConsole.AddCommand (new Version (manager.m_GUIConsole)); 19 20 } catch (Exception e) { 20 21 Log.Out ("Error registering custom commands: " + e); -
binary-improvements/7dtd-server-fixes/src/TelnetCommands/Kill.cs
r113 r114 20 20 public override void Run (string[] _params) 21 21 { 22 m_Console.SendResult("Command \"kill\" is currently not implemented!");23 return;24 /*25 22 try { 26 23 if (_params.Length != 1) { … … 29 26 } 30 27 31 ClientInfo ci = CommonMappingFunctions.GetClientInfoFromNameOrID (_params[0], false);28 ClientInfo ci = CommonMappingFunctions.GetClientInfoFromNameOrID (_params [0], false); 32 29 33 30 if (ci == null) { … … 36 33 } 37 34 38 EntityPlayer p = CommonMappingFunctions.GetEntityPlayer(ci); 39 p.Stats.Health.Value = 1; 40 p.Stats.SendAll(); 41 m_Console.SendResult ("Killed player " + _params[0]); 35 EntityPlayer p = CommonMappingFunctions.GetEntityPlayer (ci); 36 p.DamageEntity(new DamageSource(EnumDamageSourceType.Bullet), 9999, false); 37 m_Console.SendResult ("Killed player " + _params [0]); 42 38 } catch (Exception e) { 43 39 Log.Out ("Error in Kill.Run: " + e); 44 } */40 } 45 41 } 46 42 } -
binary-improvements/NamePatcher/ManualPatches.cs
r113 r114 83 83 84 84 85 md = getMethodInType (mainModule.GetType ("EntityPlayer").BaseType.Resolve (), (method, isConstructor, retType, paramCount, paramList) => { 86 return !isConstructor && method.IsPublic && paramCount == 3 && method.Name.Equals ("DamageEntity"); 87 } 88 ); 89 if (md != null) { 90 TypeDefinition typeDamageSource = md.Parameters[0].ParameterType.Resolve(); 91 renameMember (typeDamageSource, "DamageSource"); 92 } else { 93 Console.WriteLine ("FAILED: DamageSource"); 94 } 95 96 85 97 renameMember (mainModule.GetType ("ItemBlock").BaseType.Resolve (), "ItemBase"); 86 98
Note:
See TracChangeset
for help on using the changeset viewer.