本文整理汇总了C#中Spell.SetSkillshot方法的典型用法代码示例。如果您正苦于以下问题:C# Spell.SetSkillshot方法的具体用法?C# Spell.SetSkillshot怎么用?C# Spell.SetSkillshot使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Spell
的用法示例。
在下文中一共展示了Spell.SetSkillshot方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnGameLoad
private static void OnGameLoad(EventArgs args)
{
if (Player.ChampionName != "Riven") return;
Game.PrintChat("Hoola Riven - Loaded Successfully, Good Luck! :):)");
Q = new Spell(SpellSlot.Q);
W = new Spell(SpellSlot.W);
E = new Spell(SpellSlot.E, 300);
R = new Spell(SpellSlot.R, 900);
R.SetSkillshot(0.25f, 45, 1600, false, SkillshotType.SkillshotCone);
OnMenuLoad();
Timer = new Render.Text("Q Expiry => " + ((double)(LastQ - Utils.GameTimeTickCount + 3800) / 1000).ToString("0.0"), (int)Drawing.WorldToScreen(Player.Position).X - 140, (int)Drawing.WorldToScreen(Player.Position).Y + 10, 30, Color.MidnightBlue, "calibri");
Timer2 = new Render.Text("R Expiry => " + (((double)LastR - Utils.GameTimeTickCount + 15000) / 1000).ToString("0.0"), (int)Drawing.WorldToScreen(Player.Position).X - 60, (int)Drawing.WorldToScreen(Player.Position).Y + 10, 30, Color.IndianRed, "calibri");
Game.OnUpdate += OnTick;
Drawing.OnDraw += Drawing_OnDraw;
Drawing.OnEndScene += Drawing_OnEndScene;
Obj_AI_Base.OnProcessSpellCast += OnCast;
Obj_AI_Base.OnDoCast += OnDoCast;
Obj_AI_Base.OnDoCast += OnDoCastLC;
Obj_AI_Base.OnPlayAnimation += OnPlay;
Obj_AI_Base.OnProcessSpellCast += OnCasting;
Interrupter2.OnInterruptableTarget += Interrupt;
}
示例2: LoadOKTW
public void LoadOKTW()
{
Q = new Spell(SpellSlot.Q);
W = new Spell(SpellSlot.W, 1500f);
E = new Spell(SpellSlot.E, 920f);
R = new Spell(SpellSlot.R, 3000f);
W.SetSkillshot(0.6f, 60f, 3300f, true, SkillshotType.SkillshotLine);
E.SetSkillshot(1.2f, 100f, 1750f, false, SkillshotType.SkillshotCircle);
R.SetSkillshot(0.7f, 140f, 1500f, false, SkillshotType.SkillshotLine);
LoadMenuOKTW();
Game.OnUpdate += Game_OnUpdate;
Orbwalking.BeforeAttack += BeforeAttack;
Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser;
Drawing.OnDraw += Drawing_OnDraw;
}
示例3: HighRiven
public HighRiven()
{
CustomEvents.Game.OnGameLoad += args =>
{
try
{
if (player.ChampionName != "Riven")
return;
w = new Spell(SpellSlot.W, 250f);
e = new Spell(SpellSlot.E, 270f);
q = new Spell(SpellSlot.Q, 260f);
q.SetSkillshot(0.25f, 100f, 2200f, false, SkillshotType.SkillshotCircle);
r = new Spell(SpellSlot.R, 900f);
r.SetSkillshot(0.25f, (float) (45 * 0.5), 1600f, false, SkillshotType.SkillshotCircle);
flash = player.GetSpellSlot("summonerflash");
OnNewPath();
OnPlayAnimation();
Interrupter();
OnGapcloser();
OnCast();
Drawings();
OnMenuLoad();
Game.OnUpdate += Game_OnUpdate;
Game.OnWndProc += Game_OnWndProc;
Game.PrintChat("<b>HighRiven</b> - Loaded!");
Updater.UpdateCheck();
if (menu.Item("Farm").GetValue<KeyBind>().Key == menu.Item("semiq").GetValue<KeyBind>().Key ||
menu.Item("Orbwalk").GetValue<KeyBind>().Key == menu.Item("semiq").GetValue<KeyBind>().Key ||
menu.Item("LaneClear").GetValue<KeyBind>().Key == menu.Item("semiq").GetValue<KeyBind>().Key ||
menu.Item("LastHit").GetValue<KeyBind>().Key == menu.Item("semiq").GetValue<KeyBind>().Key)
{
Console.WriteLine(
"<b><font color=\"#FF9900\">" +
"WARNING: Semi-Q Keybind Should not be the same key as any of " +
"the other orbwalking modes or it will not Work!</font></b>");
}
}
catch (Exception e)
{
Console.WriteLine("Fatal Error: " + e.Message);
}
};
}
示例4: spellSetup
// Setup Spells
private static void spellSetup()
{
// Ahri Q is a 880 Range Line
Q = new Spell(SpellSlot.Q, spellRange.Q);
Q.SetSkillshot(0.2f, 100f, 1600f, false, SkillshotType.SkillshotLine);
// W is 550 range
W = new Spell(SpellSlot.W, spellRange.W);
// E is 975 line 60 width
E = new Spell(SpellSlot.E, spellRange.E);
E.SetSkillshot(0.2f, 60f, 1500f, true, SkillshotType.SkillshotLine);
// R is 600 circle
R = new Spell(SpellSlot.R, spellRange.R);
}
示例5: Game_OnGameLoad
private static void Game_OnGameLoad(EventArgs args)
{
try
{
_player = ObjectManager.Player;
if (ObjectManager.Player.BaseSkinName != ChampionName) return;
_q = new Spell(SpellSlot.Q, 900f);
_w = new Spell(SpellSlot.W, 550f);
_e = new Spell(SpellSlot.E, 270f);
_r = new Spell(SpellSlot.R, 650f);
_q.SetSkillshot(0.25f, 50f, 1700f, false, SkillshotType.SkillshotLine);
_bilge = new Items.Item(3144, 475f);
_blade = new Items.Item(3153, 425f);
_hydra = new Items.Item(3074, 250f);
_tiamat = new Items.Item(3077, 250f);
_rand = new Items.Item(3143, 490f);
_lotis = new Items.Item(3190, 590f);
_youmuu = new Items.Item(3142, 10);
_igniteSlot = _player.GetSpellSlot("SummonerDot");
var enemy = from hero in ObjectManager.Get<Obj_AI_Hero>()
where hero.IsEnemy == true
select hero;
// Just menu things test
_config = new Menu("PawnZed", "PawnZed", true);
TargetSelectorMenu = new Menu("Target Selector", "Target Selector");
TargetSelector.AddToMenu(TargetSelectorMenu);
_config.AddSubMenu(TargetSelectorMenu);
_config.AddSubMenu(new Menu("Orbwalking", "Orbwalking"));
_orbwalker = new Orbwalking.Orbwalker(_config.SubMenu("Orbwalking"));
//Combo
_config.AddSubMenu(new Menu("Combo", "Combo"));
_config.SubMenu("Combo").AddItem(new MenuItem("UseWC", "Use W (also gap close)")).SetValue(true);
_config.SubMenu("Combo").AddItem(new MenuItem("UseIgnitecombo", "Use Ignite(rush for it)")).SetValue(true);
_config.SubMenu("Combo").AddItem(new MenuItem("UseUlt", "Use Ultimate")).SetValue(true);
_config.SubMenu("Combo").AddItem(new MenuItem("ActiveCombo", "Combo!").SetValue(new KeyBind(32, KeyBindType.Press)));
_config.SubMenu("Combo")
.AddItem(new MenuItem("TheLine", "The Line Combo").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press)));
//Harass
_config.AddSubMenu(new Menu("Harass", "Harass"));
_config.SubMenu("Harass").AddItem(new MenuItem("longhar", "Long Poke (toggle)").SetValue(new KeyBind("U".ToCharArray()[0], KeyBindType.Toggle)));
_config.SubMenu("Harass").AddItem(new MenuItem("UseItemsharass", "Use Tiamat/Hydra")).SetValue(true);
_config.SubMenu("Harass").AddItem(new MenuItem("UseWH", "Use W")).SetValue(true);
_config.SubMenu("Harass")
.AddItem(
new MenuItem("ActiveHarass", "Harass!").SetValue(new KeyBind("C".ToCharArray()[0], KeyBindType.Press)));
//items
_config.AddSubMenu(new Menu("items", "items"));
_config.SubMenu("items").AddSubMenu(new Menu("Offensive", "Offensive"));
_config.SubMenu("items").SubMenu("Offensive").AddItem(new MenuItem("Youmuu", "Use Youmuu's")).SetValue(true);
_config.SubMenu("items").SubMenu("Offensive").AddItem(new MenuItem("Tiamat", "Use Tiamat")).SetValue(true);
_config.SubMenu("items").SubMenu("Offensive").AddItem(new MenuItem("Hydra", "Use Hydra")).SetValue(true);
_config.SubMenu("items").SubMenu("Offensive").AddItem(new MenuItem("Bilge", "Use Bilge")).SetValue(true);
_config.SubMenu("items")
.SubMenu("Offensive")
.AddItem(new MenuItem("BilgeEnemyhp", "If Enemy Hp <").SetValue(new Slider(85, 1, 100)));
_config.SubMenu("items")
.SubMenu("Offensive")
.AddItem(new MenuItem("Bilgemyhp", "Or your Hp < ").SetValue(new Slider(85, 1, 100)));
_config.SubMenu("items").SubMenu("Offensive").AddItem(new MenuItem("Blade", "Use Blade")).SetValue(true);
_config.SubMenu("items")
.SubMenu("Offensive")
.AddItem(new MenuItem("BladeEnemyhp", "If Enemy Hp <").SetValue(new Slider(85, 1, 100)));
_config.SubMenu("items")
.SubMenu("Offensive")
.AddItem(new MenuItem("Blademyhp", "Or Your Hp <").SetValue(new Slider(85, 1, 100)));
_config.SubMenu("items").AddSubMenu(new Menu("Deffensive", "Deffensive"));
_config.SubMenu("items")
.SubMenu("Deffensive")
.AddItem(new MenuItem("Omen", "Use Randuin Omen"))
.SetValue(true);
_config.SubMenu("items")
.SubMenu("Deffensive")
.AddItem(new MenuItem("Omenenemys", "Randuin if enemys>").SetValue(new Slider(2, 1, 5)));
_config.SubMenu("items")
.SubMenu("Deffensive")
.AddItem(new MenuItem("lotis", "Use Iron Solari"))
.SetValue(true);
_config.SubMenu("items")
.SubMenu("Deffensive")
.AddItem(new MenuItem("lotisminhp", "Solari if Ally Hp<").SetValue(new Slider(35, 1, 100)));
//Farm
_config.AddSubMenu(new Menu("Farm", "Farm"));
_config.SubMenu("Farm").AddSubMenu(new Menu("LaneFarm", "LaneFarm"));
_config.SubMenu("Farm")
.SubMenu("LaneFarm")
.AddItem(new MenuItem("UseItemslane", "Use Hydra/Tiamat"))
.SetValue(true);
_config.SubMenu("Farm").SubMenu("LaneFarm").AddItem(new MenuItem("UseQL", "Q LaneClear")).SetValue(true);
_config.SubMenu("Farm").SubMenu("LaneFarm").AddItem(new MenuItem("UseEL", "E LaneClear")).SetValue(true);
_config.SubMenu("Farm")
.SubMenu("LaneFarm")
//.........这里部分代码省略.........