Alien Swarm: Reactive Drop · handler “AlienSwarmReactiveDrop”
Version 3
Release notes
connection fix and other fixes.
- Released
- Size
- 1.6 KB
- Downloads
- 527
- Check
- Verified
- SHA-256
- bab40d3aee563987a3e7b7552a1eeb1dfd319f66bc34964566095744e4a552eb
Files 1
| Path | Size |
|---|---|
| handler.js | 4.3 KB |
handler.js
Plain textHub.Handler.Version = 3; // Released at https://hub.splitscreen.me/ on Thu Dec 29 2022 10:31:42 GMT+0000 (Coordinated Universal Time).
Hub.Handler.Id = "9NzREmD8de8AdnXHF";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";
Game.KillMutex = ["hl2_singleton_mutex"];
Game.DirSymlinkExclusions = ["reactivedrop\\cfg", "reactivedrop\\bin"];
Game.FileSymlinkExclusions = ["steam_api.dll", "steam_appid.txt", "autoexec.cfg", "engine.dll", "client.dll", "server.dll", "local_save.txt", "xinput1_3.dll"];
Game.FileSymlinkCopyInstead = ["steam.inf", "config.cfg"];
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.ExecutableName = "reactivedrop.exe";
Game.SteamID = "563560";
Game.GUID = "Alien Swarm Reactive Drop";
Game.GameName = "Alien Swarm: Reactive Drop";
Game.UseNucleusEnvironment = true;
Game.UseGoldberg = true;
Game.GoldbergNoLocalSave = true;
Game.LauncherTitle = "";
Game.WorkingFolder = "bin";
Game.MaxPlayersOneMonitor = 8;
Game.MaxPlayers = 8;
Game.Hook.ForceFocus = false;
Game.Hook.ForceFocusWindowName = "Alien Swarm: Reactive Drop";
//Game.DPIHandling = Nucleus.DPIHandling.InvScaled;
Game.HookFocus = true;
Game.Hook.DInputEnabled = false;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.Hook.CustomDllEnabled = false;
Game.SupportsKeyboard = true;
//Game.KeyboardPlayerFirst = true;
Game.XInputPlusDll = ["xinput1_3.dll"];
Game.UserProfileSavePath = "AppData\\Roaming\\Goldberg SteamEmu Saves\\563560";
Game.Description = "Host a friends only lobby and join in the other instances using the play with friends option.";
Game.PauseBetweenStarts = 30;
Game.Play = function() {
Context.StartArguments = " -window " + " -AlwaysFocus " + " -novid " + " -w " + Context.Width + " -h " + Context.Height;
// TODO: how to update these if it comes the case?
//patch dlls
//patch engine no sleep
Context.PatchFile(
System.IO.Path.Combine(Context.RootInstallFolder, "bin\\engine.dll"),
System.IO.Path.Combine(Context.RootFolder, "bin\\engine.dll"),
[0x8b, 0x01, 0x8b, 0x50, 0x3c, 0xff, 0xd2, 0x84, 0xc0, 0x75, 0x1a],
[0x8b, 0x01, 0x8b, 0x50, 0x3c, 0x90, 0x90]
);
//patch select weapon for players in briefing
Context.PatchFile(
System.IO.Path.Combine(Context.RootInstallFolder, "reactivedrop\\bin\\client.dll"),
System.IO.Path.Combine(Context.RootFolder, "reactivedrop\\bin\\client.dll"),
[0x0f, 0x84, 0xa8, 0x00, 0x00, 0x00, 0x53, 0x8d],
[0x90, 0x90, 0x90, 0x90, 0x90, 0x90]
);
//patch select weapon for players in briefing
Context.PatchFile(
System.IO.Path.Combine(Context.RootInstallFolder, "reactivedrop\\bin\\server.dll"),
System.IO.Path.Combine(Context.RootFolder, "reactivedrop\\bin\\server.dll"),
[0x74, 0x12, 0x46, 0x83, 0xfe, 0x20],
[0xeb]
);
var autoExec = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\reactivedrop\\cfg\\autoexec.cfg";
var lines = ["sv_lan 0", "sv_allow_lobby_connect_only 0", "rd_ready_mark_override 1"];
if (Player.IsKeyboardPlayer) {
lines.push("joystick 0");
lines.push("sk_autoaim_mode 1");
//lines.push("exec undo360controller.cfg");
} else {
lines.push("exec 360controller_pc.cfg");
lines.push("alias selectmarine selectmarine0");
lines.push('alias selectmarine0 "cl_selectsinglem 0 -1; alias selectmarine selectmarine1"');
lines.push('alias selectmarine1 "cl_selectsinglem 1 -1; alias selectmarine selectmarine2"');
lines.push('alias selectmarine2 "cl_selectsinglem 2 -1; alias selectmarine selectmarine3"');
lines.push('alias selectmarine3 "cl_selectsinglem 3 -1; alias selectmarine selectmarine4"');
lines.push('alias selectmarine4 "cl_selectsinglem 4 -1; alias selectmarine selectmarine5"');
lines.push('alias selectmarine5 "cl_selectsinglem 5 -1; alias selectmarine selectmarine6"');
lines.push('alias selectmarine6 "cl_selectsinglem 6 -1; alias selectmarine selectmarine7"');
lines.push('alias selectmarine7 "cl_selectsinglem 7 -1; alias selectmarine selectmarine0"');
lines.push("cl_timeout 999");
lines.push('bind "JOY8" "selectmarine"');
lines.push('bind "START" "selectmarine"');
lines.push('bind "POV_DOWN" "asw_squad_hotbar 4"');
lines.push('bind "DOWN" "asw_squad_hotbar 4"');
}
Context.WriteTextFile(autoExec, lines);
};