Raised This Month: $51 Target: $400
 12% 

Auto Plant C4 after spawn


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 02-07-2021 , 21:40   Auto Plant C4 after spawn
Reply With Quote #1

I tried to plant the C4 right when you spawn with the bombsite is the whole map. I found a way that create a fake C4 but it won't work with BOT since bot hook NETMSG_TEXTMSG #Bomb_Planted so it will just run around even when enemy team is all dead rather than defusing the bomb.

This is what I got so far.

PHP Code:
public plugin_precache()
{
    
CreateBombTarget();

}

public 
fw_Player_Spawn_Post(id)
{

    if(
is_user_alive(id) && user_has_weapon(idCSW_C4))
    {
        
engclient_cmd(id"weapon_c4")
        static 
entent fm_get_user_weapon_entity(idCSW_C4)
        
ExecutreHam(Ham_Weapon_PrimaryAttackent)
    }
}

public 
CreateBombTarget()
{
    new 
NewBombTarget engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"func_bomb_target"))
    if(
NewBombTarget 0)
    {
        
dllfunc(DLLFunc_SpawnNewBombTarget)
        
engfunc(EngFunc_SetSizeNewBombTargetFloat:{-100000.0,-100000.0,-100000.0}, Float:{100000.0,100000.0,100000.0})
    }

I have also tried those offset but it seem doesn't work too
PHP Code:
#define m_bStartedArming 320
#define m_bBombPlacedAnimation 321
#define m_flArmedTime 81 
I also tried Auto Plant plugins but it doesn't work.

This only show the starting part and a bar time but it can't actually plant the bomb.


It is the best if it can play full animation but as long as it can be plant, I am happy with that.
__________________
My plugin:

Last edited by Celena Luna; 02-07-2021 at 22:03.
Celena Luna is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode