Skip to content

Commit

Permalink
poop
Browse files Browse the repository at this point in the history
  • Loading branch information
aliniti committed Dec 4, 2019
1 parent 07eae08 commit c7a3550
Show file tree
Hide file tree
Showing 7 changed files with 70 additions and 42 deletions.
6 changes: 1 addition & 5 deletions EzSeries/Bootstrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ auto on_issue_order(IGameObject * unit, OnIssueOrderEventArgs * args) {

default: ; } }


auto on_pre_create(OnPreCreateObjectEventArgs * args) -> void {
if(args->ChampionName == g_LocalPlayer->ChampionName()) {
default_skin_id = g_LocalPlayer->GetSkinId(); } }
Expand All @@ -37,9 +36,7 @@ auto on_create(IGameObject * unit) -> void {

case ChampionId::Ornn: return EzDebug::on_create(unit);

default:;

} }
default: ; } }

auto on_delete(IGameObject * unit) -> void {
if(g_LocalPlayer->IsDead() || !g_Common->IsWindowFocused()) {
Expand Down Expand Up @@ -110,7 +107,6 @@ auto on_buff(IGameObject * unit, OnBuffEventArgs * args) -> void {
return; }

switch(g_LocalPlayer->ChampionId()) {

case ChampionId::Jinx:
return EzJinx::on_buff(unit, args);

Expand Down
4 changes: 1 addition & 3 deletions EzSeries/Champions/EzCamille.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class EzCamille : public EzChampion {
static void on_do_cast(IGameObject * unit, OnProcessSpellEventArgs * args); };

inline IMenu * EzCamille::on_load(IMenu * menu) {

// todo: setup items
Spells["camille.q"] = g_Common->AddSpell(SpellSlot::Q);
Spells["camille.w"] = g_Common->AddSpell(SpellSlot::W, 625);
Expand Down Expand Up @@ -152,8 +151,7 @@ inline auto EzCamille::lock_w(Vector pos) -> void {

inline auto EzCamille::use_e(Vector pos, bool combo) -> void {
// - moving to extensions
if(is_dashing() || on_wall() || !Spells["camille.e"]->IsReady()) {
return; } }
if(is_dashing() || on_wall() || !Spells["camille.e"]->IsReady()) {} }


inline auto EzCamille::use_r(IGameObject * unit, bool force) -> void {}
Expand Down
66 changes: 33 additions & 33 deletions EzSeries/Champions/EzDebug.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@


class EzDebug : public EzChampion {
public:
public:

static std::map<float, IGameObject *> OrnObjs;
static auto on_create(IGameObject * unit) -> void;
static auto on_delete(IGameObject * unit);
static IMenu * on_boot(IMenu * menu);
static void on_update();
static auto orn_r() -> IGameObject*;
static auto orn_q_pillar() -> IGameObject*;
};
static std::map<float, IGameObject *> OrnObjs;
static auto on_create(IGameObject * unit) -> void;
static IMenu * on_boot(IMenu * menu);
static void on_update();
static auto orn_r() -> IGameObject*;
static auto orn_q_pillar() -> IGameObject*;
static auto find_surrounding_wall(Vector pos) -> bool; };

// for Biggie
std::map<float, IGameObject *> EzDebug::OrnObjs;
Expand All @@ -23,64 +22,65 @@ inline auto EzDebug::on_create(IGameObject * unit) -> void {
if(unit != nullptr && strstr(unit->Name().c_str(), "OrnnRWave")) {

// - storing game time into map
OrnObjs[g_Common->Time()] = unit;
}
OrnObjs[g_Common->Time()] = unit; }

if(unit != nullptr && strstr(unit->Name().c_str(), "OrnnQPillar")) {

// - storing game time into map
OrnObjs[g_Common->Time()] = unit;
}
}
OrnObjs[g_Common->Time()] = unit; } }


inline IMenu * EzDebug::on_boot(IMenu * menu) {
return menu;
}

Spells["orn.e"] = g_Common->AddSpell(SpellSlot::E, 700);

return menu; }

inline void EzDebug::on_update() {

if(g_Orbwalker->IsModeActive(eOrbwalkingMode::kModeCombo)) {
auto unit = g_Common->GetTarget(Spells["orn.e"]->Range(), DamageType::Physical);

if(unit && unit->IsValidTarget() && Spells["orn.e"]->IsReady()) {

if(find_surrounding_wall(unit->ServerPosition())) {

Spells["orn.e"]->Cast(unit, HitChance::High); } } }

for(auto o : OrnObjs) {
auto key = o.first;
auto obj = o.second;

// - delete null maps
if(obj == nullptr || !obj->IsVisible() || !obj->IsValid()) {
OrnObjs.erase(key);
break;
}
break; }

// - fail safe delete after 8 seconds
if(g_Common->Time() - key > 7) {
OrnObjs.erase(key);
break;
}
}

}
break; } } }

inline auto EzDebug::orn_r() -> IGameObject * {
for(auto o : OrnObjs) {
auto obj = o.second;

if(strstr(obj->Name().c_str(), "OrnnRWave")) {
return obj;
}
}
return obj; } }

// - if nothing is found in the map
return nullptr;
}
return nullptr; }

inline auto EzDebug::orn_q_pillar() -> IGameObject * {
for(auto o : OrnObjs) {
auto obj = o.second;

if(strstr(obj->Name().c_str(), "OrnnQPillar")) {
return obj;
}
}
return obj; } }

// - if nothing is found in the map
return nullptr;
}
return nullptr; }

inline auto EzDebug::find_surrounding_wall(Vector pos) -> bool {

return false; }
8 changes: 8 additions & 0 deletions EzSeries/Champions/EzQiyana.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#pragma once
#include "EzChampion.h"


class EzQiyana : public EzChampion {
public:

};
1 change: 1 addition & 0 deletions EzSeries/EzSeries.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
<ClInclude Include="Champions\EzJinx.h" />
<ClInclude Include="Champions\EzKatarina.h" />
<ClInclude Include="Champions\EzCamille.h" />
<ClInclude Include="Champions\EzQiyana.h" />
<ClInclude Include="Helpers\EzAvoider.h" />
<ClInclude Include="Helpers\EzEnums.h" />
<ClInclude Include="SDK\clipper.hpp" />
Expand Down
27 changes: 26 additions & 1 deletion EzSeries/Helpers/EzExtensions.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ class EzExtensions {
static auto project_on_path(Vector start, Vector end, float width, float range, std::vector<IGameObject *> & units, bool minion) -> int;

static auto draw_dmg_hpbar(IGameObject * unit, double damage, const char * text, DWORD color) -> void;
static auto is_plant(IGameObject * unit) -> bool; };
static auto is_plant(IGameObject * unit) -> bool;
static auto get_real_position(float delay) -> Vector;
static auto check_path_collision(IGameObject * unit, Vector pos); };


inline Vector2 EzExtensions::to_2d(Vector p) {
Expand Down Expand Up @@ -179,3 +181,26 @@ inline auto EzExtensions::draw_dmg_hpbar(IGameObject * unit, double damage, cons

inline auto EzExtensions::is_plant(IGameObject * unit) -> bool {
return strstr(unit->Name().c_str(), "Plant"); }

inline auto EzExtensions::get_real_position(float delay) -> Vector {

auto path = g_LocalPlayer->Path();

if(path.size() < 1) {
return g_LocalPlayer->ServerPosition(); }

auto dir = (path[0] - g_LocalPlayer->ServerPosition()).Normalized();
return g_LocalPlayer->ServerPosition() + dir * g_LocalPlayer->MoveSpeed() * (delay / 1000); }

inline auto EzExtensions::check_path_collision(IGameObject * unit, Vector pos) {
auto path = g_LocalPlayer->CreatePath(g_LocalPlayer->ServerPosition(), pos);

if(path.size() > 0) {
if(pos.Distance(path[path.size() - 1]) > 5 || path.size() > 2) {
return true; } }

return false; }




Binary file modified EzSeries/Release/EzSeries.dll
Binary file not shown.

0 comments on commit c7a3550

Please sign in to comment.