public static void Init() { if (!_isInitComplete) { // Init stuff InitSpells(); CreateMenu(); Collision.Init(); Revealer = new AutoBushRevealer(Menu.SubMenu("Misc")); // Internal events Game.OnGameUpdate += OnGameUpdate; SkillshotDetector.OnDetectSkillshot += OnDetectSkillshot; Obj_AI_Base.OnProcessSpellCast += HeroOnProcessSpellCast; Obj_AI_Base.OnProcessSpellCast += TurretOnProcessSpellCast; GameObject.OnCreate += SpellMissile_OnCreate; // Actives Game.OnGameUpdate += CcCheck; OnSkillshotProtection += ProtectorOnOnSkillshotProtection; OnTargetedProtection += ProtectorOnOnTargetedProtection; // Debug //OnSkillshotProtection += Protector_OnSkillshotProtection; //OnTargetedProtection += Protector_OnTargetedProtection; Helpers.PrintMessage(string.Format("Protector by h3h3 loaded!")); Console.WriteLine("Protector Init Complete"); _isInitComplete = true; } }
public static void Init() { if (!_isInitComplete) { // Init stuff InitSpells(); CreateMenu(); Collision.Init(); Revealer = new AutoBushRevealer(Menu.SubMenu("Misc")); // Internal events Game.OnGameUpdate += OnGameUpdate; SkillshotDetector.OnDetectSkillshot += OnDetectSkillshot; Obj_AI_Base.OnProcessSpellCast += HeroOnProcessSpellCast; Obj_AI_Base.OnProcessSpellCast += TurretOnProcessSpellCast; GameObject.OnCreate += SpellMissile_OnCreate; // Actives Game.OnGameUpdate += CcCheck; OnSkillshotProtection += ProtectorOnOnSkillshotProtection; OnTargetedProtection += ProtectorOnOnTargetedProtection; // Debug OnSkillshotProtection += Protector_OnSkillshotProtection; OnTargetedProtection += Protector_OnTargetedProtection; Helpers.PrintMessage(string.Format("Protector by h3h3 loaded!")); Console.WriteLine("Protector Init Complete"); _isInitComplete = true; } }