// Member Types // Member Functions // Public: // Private: void Start() { CSpellData.TSpellData tData = GameApp.GetInstance().GetSpellDataComponent().GetSpellData(CSpell.EType.TETHER); CSpell oSpell = GameApp.GetInstance().GetWarlock().GetComponent <CSpellbook>().GetSpell(CSpell.EType.TETHER); m_fTimer = 0.0f; m_fTimerTime = 0.1f; m_fDamage = oSpell.GetDamageAmount(); m_fPushBack = oSpell.GetPushbackAmount(); m_fVelocity = 13.0f; m_bExplode = false; m_bHooked = false; m_fRange = oSpell.GetRange(); m_fDuration = 0.0f; m_fMaxDuration = 6.2f; m_fMaxSize = 2.0f; m_fRadius = oSpell.GetRadius(); m_fTimer = 0.1f; m_fDistanceTraveled = 0.0f; }
// Use this for initialization void Start() { CSpellData.TSpellData tData = GameApp.GetInstance().GetSpellDataComponent().GetSpellData(CSpell.EType.SONIC_WAVE); CSpell oSpell = GameApp.GetInstance().GetWarlock().GetComponent <CSpellbook>().GetSpell(CSpell.EType.SONIC_WAVE); m_fDamage = oSpell.GetDamageAmount(); m_fPushbackAmount = oSpell.GetPushbackAmount(); m_fDuration = 0.0f; m_fMaxDuration = 0.53f; m_fMaxSize = 5.0f; m_fRadius = oSpell.GetRadius(); }
private static void Game_OnGameLoad(EventArgs args) { // Validate Champion if (Player.ChampionName != ChampionName) { return; } //Load Handlers CConfig.Initialize(); CSpell.Initialize(); //Listen to Additional Events AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser; Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget; Game.OnUpdate += Game_OnGameUpdate; }
// Private: void Start() { m_acSpellBook = new CSpell[(int)ESettings.SPELLS_MAX]; AddSpell(CSpell.EType.FIREBALL, 0); AddSpell(CSpell.EType.SONIC_WAVE, 1); //AddSpell(CSpell.EType.HOMING, 2); //AddSpell(CSpell.EType.BLACKHOLE, 3); //AddSpell(CSpell.EType.TETHER, 4); //AddSpell(CSpell.EType.METEOR, 5); //AddSpell(CSpell.EType.TELEPORT, 6); //AddSpell(CSpell.EType.SWAP, 2); m_aeSpellKeybinds = new KeyCode[(int)ESettings.SPELLS_MAX]; // m_aeSpellKeybinds[0] = KeyCode.Alpha1; // m_aeSpellKeybinds[1] = KeyCode.Alpha2; // m_aeSpellKeybinds[2] = KeyCode.Alpha3; // m_aeSpellKeybinds[3] = KeyCode.Alpha4; // m_aeSpellKeybinds[4] = KeyCode.Q; // m_aeSpellKeybinds[5] = KeyCode.W; // m_aeSpellKeybinds[6] = KeyCode.E; // m_aeSpellKeybinds[7] = KeyCode.R; m_aeSpellKeybinds[0] = KeyCode.Q; m_aeSpellKeybinds[1] = KeyCode.W; m_aeSpellKeybinds[2] = KeyCode.E; m_aeSpellKeybinds[3] = KeyCode.R; m_aeSpellKeybinds[4] = KeyCode.A; m_aeSpellKeybinds[5] = KeyCode.S; m_aeSpellKeybinds[6] = KeyCode.D; m_aeSpellKeybinds[7] = KeyCode.F; m_CooldownIconOverlay = Resources.Load("UI/Spell Icons/Spell_Cooldown", typeof(Texture)) as Texture; m_RefresherIconOverlay = Resources.Load("UI/Spell Icons/Spell_Refresher", typeof(Texture)) as Texture; m_SelectedIconOverlay = Resources.Load("UI/Spell Icons/Spell_Selected", typeof(Texture)) as Texture; m_GameHUD = Resources.Load("UI/Game_HUD", typeof(Texture)) as Texture; //m_GameHUDOverlay = Resources.Load("UI/Game_HUD_Overlay", typeof(Texture)) as Texture; m_SpellBorder = Resources.Load("UI/Spell Icons/Spell_Border", typeof(Texture)) as Texture; m_bCanCast = true; }