Bhop chance and maximize sticky damage (#916)
* Added maximize damage * Added bhop chance * Added maximize damage * Added bhop chance * Added maximize damage * Added customizable min distance * Added customizable min distance
This commit is contained in:
parent
32baac5c8c
commit
2fbfc28a5b
@ -2,6 +2,7 @@
|
||||
<Box padding="12 6 6 6" width="content" height="content" name="Bunny Hop">
|
||||
<List width="150">
|
||||
<AutoVariable width="fill" target="bunnyhop.enable" label="Enable Bunny Hop"/>
|
||||
<AutoVariable width="fill" target="bunnyhop.chance" label="Bhop Chance"/>
|
||||
<AutoVariable width="fill" target="misc.autostrafe" label="Enable Auto strafe"/>
|
||||
</List>
|
||||
</Box>
|
||||
@ -27,7 +28,7 @@
|
||||
<AutoVariable width="fill" target="follow-bot.draw-crumbs" label="Draw Crumbs"/>
|
||||
</List>
|
||||
</Box>
|
||||
<Box padding="12 6 6 6" width="content" height="content" name="NavBot" y="50">
|
||||
<Box padding="12 6 6 6" width="content" height="content" name="NavBot" y="65">
|
||||
<List width="150">
|
||||
<AutoVariable width="fill" target="misc.pathing" label="Enable Pathing"/>
|
||||
<AutoVariable width="fill" target="misc.pathing.draw" label="Draw Path"/>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<AutoVariable width="fill" target="autosticky.buildings" label="Detonate On Buildings"/>
|
||||
<AutoVariable width="fill" target="autosticky.legit" label="Legit Mode"/>
|
||||
<AutoVariable width="fill" target="autosticky.dontblowmeup" label="Don't Blow Me Up"/>
|
||||
<AutoVariable width="fill" target="autosticky.min-dist" label="Min Distance" min="0" max="130" step="5"/>
|
||||
</List>
|
||||
</Box>
|
||||
</Tab>
|
||||
|
@ -16,6 +16,7 @@ static settings::Boolean enable{ "autosticky.enable", "false" };
|
||||
static settings::Boolean buildings{ "autosticky.buildings", "true" };
|
||||
static settings::Boolean legit{ "autosticky.legit", "false" };
|
||||
static settings::Boolean dontblowmeup{ "autosticky.dontblowmeup", "true" };
|
||||
static settings::Int min_dist{ "autosticky.min-dist", "130" };
|
||||
|
||||
// A storage array for ents
|
||||
static std::vector<CachedEntity *> bombs;
|
||||
@ -160,7 +161,7 @@ void CreateMove()
|
||||
position = *position + (collideable->OBBMins() + collideable->OBBMaxs()) / 2;
|
||||
|
||||
if (!found)
|
||||
if (bomb->m_vecOrigin().DistTo(*position) < 130)
|
||||
if (bomb->m_vecOrigin().DistTo(*position) < *min_dist)
|
||||
{
|
||||
// Vis check the target from the bomb
|
||||
if (IsVectorVisible(bomb->m_vecOrigin(), *position, true))
|
||||
|
@ -11,6 +11,7 @@
|
||||
namespace hacks::shared::bunnyhop
|
||||
{
|
||||
static settings::Boolean enable{ "bunnyhop.enable", "false" };
|
||||
static settings::Int bhop_chance{ "bunnyhop.chance", "100" };
|
||||
|
||||
// Var for user settings
|
||||
|
||||
@ -30,6 +31,10 @@ static void CreateMove()
|
||||
if (!current_user_cmd->command_number)
|
||||
return;
|
||||
|
||||
// Bhop likelihood
|
||||
if (UniformRandomInt(0, 99) > *bhop_chance)
|
||||
return;
|
||||
|
||||
// var for "if on ground" from the flags netvar
|
||||
bool ground = CE_INT(g_pLocalPlayer->entity, netvar.iFlags) & (1 << 0);
|
||||
// Var for if the player is pressing jump
|
||||
|
Reference in New Issue
Block a user