Fast Bombplant

DREDD

Administrator
Administrator
Administrator
Administrator
Status
Offline
Joined
Apr 18, 2019
Messages
202
Reaction score
319
This function will help you set the bomb much faster. Without this fix, in order to planting a bomb, it was necessary to run through a significant part of the site, but now this will not happen.

So i fixed it real quick, obviously call it in createmove.
Additional sideeffect, u can antiaim while holding down use/plant till u are on site
PS: could prolly cause a problem with doors if u are holding the bomb

Before

After
C++:
void FixedBombPlant(CUserCmd* cmd){
    if (!(cmd->buttons & IN_USE) && !(cmd->buttons & IN_ATTACK))return; if (!pLocal || pLocal->GetHealth() <= 0)return;
    C_BaseCombatWeapon* pWeapon = (C_BaseCombatWeapon*)pLocal->GetActive();
    if (!pWeapon || !pWeapon->IsBomb() || pLocal->getm_bInBombZone())return;//m_bInBombZone
 
    //keep antiaiming/dont run 10m into site
    cmd->buttons &= ~IN_USE;
    cmd->buttons &= ~IN_ATTACK;
}
 
Top