Certainly! I can help you understand how to add new roles and features to your SCP Exiled server, including a Class D rebel, a janitor under the scientist role, customizable class spawning for Player 1, and a new SCP mask similar to those on other servers. Here's how you can implement these features:
1. Adding a Class D Rebel
Description:
The Class D Rebel is a variation of the standard Class D personnel but with a rebellious streak. This character can have different objectives or abilities compared to regular Class D personnel.
Implementation Steps:
-
Modify or Create a New Class Script:
- Navigate to your server's game files, typically located in the
Scripts or Roles folder.
- Duplicate the existing Class D script (e.g.,
ClassD.cs) and rename it to ClassDRebel.cs.
-
Customize the ClassDRebel Script:
- Open
ClassDRebel.cs in a code editor.
- Change the class name within the script to
ClassDRebel.
- Modify properties such as health, speed, and inventory to differentiate from standard Class D.
- Assign unique abilities or access levels if desired.
-
Set Objectives and Abilities:
- Define the Class D Rebel's objectives. For example, they might aim to escape while hindering other Class D personnel or collaborate with certain SCPs.
- Add any special abilities, such as increased stealth or access to specific areas.
-
Integrate the Class into the Game:
- Update the role management system to include the new Class D Rebel.
- Ensure the game recognizes this class during role assignment at the start of a round.
Testing:
- Start a test game and verify that the Class D Rebel can be assigned to players.
- Check that the class functions as intended and that abilities and objectives are working.
2. Adding a Janitor Under the Scientist Role
Description:
The Janitor is a support role under the scientist category, responsible for cleanup and maintenance within the facility. This character adds diversity to the scientist team with unique abilities.
Implementation Steps:
-
Create the Janitor Class Script:
- Duplicate the scientist class script (e.g.,
Scientist.cs) and rename it to Janitor.cs.
- Open
Janitor.cs and change the class name accordingly.
-
Customize the Janitor Class:
- Adjust attributes like health, speed, and inventory to reflect the janitor's role.
- Provide the janitor with unique items, such as a mop or keycards with limited access.
- Assign abilities like the ability to clean up hazards or repair equipment.
-
Define Role Hierarchy:
- Ensure the Janitor is categorized under the scientist faction for team alignment.
- Adjust team variables so that the Janitor cooperates with scientists but has distinct objectives.
-
Update Role Assignment Logic:
- Include the Janitor in the role assignment system, allowing players to spawn as this role under certain conditions.
Testing:
- Launch the game and test spawning as the Janitor.
- Verify that the role interacts correctly with other classes and that abilities function properly.
3. Configuring Player 1 to Spawn as Any Class (Except SCP, MTF, Rebels)
Description:
Allowing Player 1 the flexibility to spawn as any class except for certain restricted ones (SCPs, Mobile Task Force, Rebels) enhances the gameplay experience.
Implementation Steps:
-
Access Role Assignment Settings:
- Locate the configuration files or scripts responsible for role assignments at the start of each round.
-
Modify Player 1 Preferences:
- Implement a condition that checks if the player ID is
Player 1.
- Exclude specific classes from the random assignment pool for Player 1. For example:
if (player.ID == 1)
{
AssignRandomClass(player, excludeClasses: new List<ClassType> { ClassType.SCP, ClassType.MTF, ClassType.Rebel });
}
-
Ensure Balance in Gameplay:
- Make sure that altering Player 1's spawning does not negatively impact game balance.
- Consider adding options for Player 1 to choose their class within the allowed categories.
Testing:
- Test the spawning mechanic by starting a game with Player 1.
- Confirm that Player 1 never spawns as SCP, MTF, or Rebel but can be assigned other classes.
4. Adding a New SCP Mask (Like on Other SCP Exiled Servers)
Description:
Introducing a new SCP item, such as an SCP mask, can add unique gameplay mechanics. This mask could grant abilities or effects when worn by players.
Implementation Steps:
-
Design the SCP Mask Item:
- Create a new item script, e.g.,
SCPMask.cs.
- Define the item's properties: appearance, effects, and how it interacts with players.
-
Implement Item Effects:
- Decide what happens when a player equips the mask. Possible effects include:
- Increased speed or strength.
- Altered vision or perception.
- Health regeneration or gradual health loss.
- Code these effects into the
SCPMask.cs script, utilizing the game's API for item interactions.
-
Integrate the Mask into the Game World:
- Place the mask in specific locations within the facility.
- Alternatively, assign it to certain classes at the start of the game.
-
Update Item Management Systems:
- Ensure that the game's inventory and item handling systems recognize the new mask.
- Add the mask to loot tables if applicable.
Testing:
- Enter the game and obtain the SCP mask.
- Equip the mask and verify that all effects activate correctly.
- Test interactions with other items and classes to ensure there are no conflicts or bugs.
5. Documenting Your Changes
Description:
Keeping a detailed record of the changes you make is crucial for future reference and troubleshooting.
Implementation Steps:
-
Comment Your Code:
-
Maintain a Change Log:
- Create a document outlining all modifications, including dates and reasons.
- Note any issues encountered and how they were resolved.
-
Backup Original Files:
- Before making changes, backup the original scripts and configurations.
- This allows you to restore the game to its original state if needed.
Additional Tips
-
Testing Environment:
- Set up a separate testing server to experiment with new features without affecting players.
-
Community Resources:
- Consult the SCP Exiled modding community forums or Discord channels.
- There may be existing mods or plugins that provide similar features.
-
Legal Considerations:
- Ensure that any custom content complies with the game's terms of service and the SCP Foundation's licensing.
By following these steps, you can enhance your SCP Exiled server with new roles and items that enrich the gameplay experience. Remember to test thoroughly and engage with the community for support and feedback.
If you need further assistance or have specific questions about coding or implementation, feel free to ask!