using System.Collections.Generic;
public class NewRoleName : Synapse.Api.Roles.Role
public override int GetRoleID() => 25; //The Id of your new CustomRole
public override string GetRoleName() => "Awesome-Role"; //The name of your custom role
public override Team GetTeamID() => (int)Team.CDP; //The Team of your Role
public override void Spawn() //The method that is activated when the player spawn as your Role
Player.RoleType = RoleType.ClassD; //An Example what you can do in here it is also recommended to set health items etc.
public override void DeSpawn()
Player.SendBroadcast(5,"You are no longer my Awesome Custom Role D:")
public override List<int> GetFriendsID() => new List<int> { (int)Team.RSC }; //This means the player can't hurt or be hurt by a scientist
public virtual void Escape()
Player.RoleID = (int)RoleType.ClassD;
Player.SendBroadcast(5,"You are now a real DBoy!!");
public virtual List<int> GetEnemiesID() => new List<int> { (int)Team.CHI }; //This means this Role and Chaos must kill each other or else the round will not end