();
179 | labelRT.anchorMin = labelRT.anchorMax = labelRT.pivot = new Vector2(0.5f, 0.5f);
180 | labelRT.anchoredPosition = new Vector2(0, 380);
181 | labelRT.sizeDelta = new Vector2(800, 50);
182 |
183 | float fadeDuration = 1f;
184 | float elapsed = 0f;
185 | while (elapsed < fadeDuration)
186 | {
187 | elapsed += Time.deltaTime;
188 | float alpha = Mathf.Clamp01(elapsed / fadeDuration);
189 | group.alpha = alpha;
190 | yield return null;
191 | }
192 | group.alpha = 1f;
193 |
194 | yield return new WaitForSeconds(displayDuration);
195 |
196 | elapsed = 0f;
197 | while (elapsed < fadeDuration)
198 | {
199 | elapsed += Time.deltaTime;
200 | float alpha = 1f - Mathf.Clamp01(elapsed / fadeDuration);
201 | group.alpha = alpha;
202 | yield return null;
203 | }
204 | group.alpha = 0f;
205 |
206 | Object.Destroy(screenshotPanel);
207 | }
208 |
209 | ///
210 | /// Deletes all screenshots from the Visionary screenshot directory.
211 | ///
212 | public static void DeleteAllScreenshots()
213 | {
214 | if (Directory.Exists(ScreenshotDirectory))
215 | {
216 | foreach (string file in Directory.GetFiles(ScreenshotDirectory, "*.png"))
217 | {
218 | File.Delete(file);
219 | NewMod.Instance.Log.LogInfo($"Deleted screenshot: {file}");
220 | }
221 | }
222 | }
223 | }
224 | }
225 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## NewMod Mod Documentation
2 |
3 | NewMod is a mod for Among Us that introduces a variety of new roles, unique abilities, and custom game modes, offering players exciting new ways to enjoy the game.
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | ---
19 |
20 | # 📑 Table Of Contents
21 | - [🚀 Releases](#-releases)
22 | - [📥 Installation](#-installation)
23 | - [✨ Features](#-features)
24 | - [🔗 Compatibility](#-compatibility)
25 | - [🤝 Contributing](#-contributing)
26 | - [👥 Credits](#-credits)
27 | - [⚠️ Disclaimer](#-disclaimer)
28 |
29 | ---
30 |
31 | # 🚀 Releases
32 |
33 | | Mod Version | Among Us - Version | Link |
34 | |-------------|---------------------|------|
35 | | v1.0.0 | 2024.8.13 & 2024.10.29 | [Download](https://github.com/CallOfCreator/NewMod/releases/download/v1.0.0/NewMod.dll) |
36 | | v1.1.0 | 2024.11.26 | [Download](https://github.com/CallOfCreator/NewMod/releases/download/V1.1.0/NewMod.dll) |
37 |
38 | ---
39 |
40 | # 📥 Installation
41 |
42 | 1. **Download the latest version of NewMod** for your Among Us installation from [here](https://github.com/CallOfCreator/NewMod/releases/latest).
43 | 2. Extract the contents into your Among Us folder.
44 | 3. Launch the game with `Among Us.exe`. The first run may take 4-5 minutes as the mod initializes.
45 |
46 | ---
47 |
48 | # ✨ Features
49 |
50 | ### **1. Crewmate Cam Access (F2)**
51 | - **🖥️ Description:** Allows crewmates to access security cameras from anywhere.
52 | - **👀 Strategic Use:** Monitor other players without needing to go to the security room.
53 |
54 | ### **2. Necromancer Role**
55 | - **🔮 Description:** A special Impostor role that can revive a dead player to join the Impostors.
56 | - **💨 Keybinds:** Press `F4` for teleport ability.
57 |
58 | ### **3. Revival Royale GameMode** *(currently unavailable)*
59 | - **⚔️ Description:** Every player is a Necromancer, competing to revive bodies. The first to reach a set number of revivals wins.
60 |
61 | ### **4. Energy Thief Role**
62 | - **💡 Description:** Drains energy from others, making them weaker.
63 |
64 | ### **5. Double Agent Role**
65 | - **🔍 Description:** Completes tasks but can sabotage neutrals and impostors after task completion.
66 |
67 | ### **6. Special Agent Role**
68 | - **🎖️ Description:** A neutral role that assigns missions to other players.
69 | - **📋 Mission Mechanics:** The assigned player must complete the mission or face penalties.
70 | - If the target fails the mission, the Special Agent loses a point toward their win condition.
71 | - **📹 Surveillance Option:** The Special Agent can monitor the target through a camera if enabled.
72 | - **🏆 Win Condition:** Successful mission completions contribute to the Special Agent’s victory.
73 |
74 | ### **7. Visionary Role**
75 | - **📸 Description:** A unique Crewmate role with the ability to take in-game screenshots to capture key moments like kills, venting, or suspicious activities.
76 | - **🖱️ How It Works:**
77 | - The Visionary can take multiple screenshots, but the limit depends on game settings.
78 | - If multiple screenshots are taken, the Visionary can open the in-game chat to see available screenshots (e.g., `/1`, `/2`) and select which one to display during a meeting.
79 | - **🧩 Strategy:** Use screenshots to catch impostors or prove innocence.
80 |
81 | ---
82 |
83 | # 🔗 Compatibility
84 |
85 | NewMod v1.1.0 is compatible with YanplaRoles, allowing for an enhanced experience with combined custom roles. Below is the supported version of YanplaRoles:
86 |
87 | | Mod Name | Mod Version | GitHub Link |
88 | |--------------|-------------|------------------------------------------------------|
89 | | YanplaRoles | v0.1.6+ | [Download](https://github.com/yanpla/yanplaRoles) |
90 |
91 | For more information on YanplaRoles, visit their official [GitHub page](https://github.com/yanpla/yanplaRoles).
92 |
93 | ---
94 |
95 | # 🤝 Contributing
96 |
97 | If you’d like to contribute, feel free to join and improve the project!
98 |
99 | ---
100 |
101 | # 👥 Credits
102 |
103 | - **MiraAPI**: [MiraAPI GitHub](https://github.com/Alll-Of-Us-Mods/MiraAPI) - Among Us modding API and utility library, with inspiration for the debug window and the derivation of the gold color from MiraAPIExample Mod.
104 | - **Reactor**: [Reactor GitHub](https://github.com/NuclearPowered/Reactor) - Modding API for Among Us.
105 | - **TownOfUs-R**: - Portions of code (PlayerById, GetClosestBody) and asset (ReviveSprite) derived from [Town-Of-Us-R](https://github.com/eDonnes124/Town-Of-Us-R).
106 | - **MoreGamemodes**: [MoreGamemodes](https://github.com/Rabek009/MoreGamemodes) - Derivation of IsActive and IsSabotage code.
107 | - **yanplaRoles**: [yanplaRoles](https://github.com/yanpla/yanplaRoles) - Portions of code (SavePlayerRole, GetPlayerRolesHistory).
108 |
109 | ---
110 |
111 | # ⚠️ Disclaimer
112 |
113 | NewMod is not affiliated with Among Us or Innersloth LLC, and the content contained herein is not endorsed or otherwise sponsored by Innersloth LLC. Portions of the materials contained herein are property of Innersloth LLC. © Innersloth LLC.
114 |
115 | ---
116 |
117 | Enjoy an enhanced Among Us experience with NewMod!
118 |
--------------------------------------------------------------------------------
/nuget.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------