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

Solved [CS:GO] Plant Bomb On The Same Site Again


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yash1441
Senior Member
Join Date: Feb 2015
Location: Illuminati HQ
Old 05-26-2016 , 13:15   [CS:GO] Plant Bomb On The Same Site Again
Reply With Quote #1

Hey!
I tried but couldn't plant bomb on the same site again in the same round. I planted the bomb on A, it exploded and then I could only plant on B. Does the game Disable the func_bomb_target or Kill it after bomb explodes?

1. Disable
Please test and see if this code works.
PHP Code:
new maxent GetMaxEntities(), String:ent[64];
    for (new 
GetMaxClients(); maxenti++)
    {
        if (
IsValidEdict(i) && IsValidEntity(i))
        {
            
GetEdictClassname(ientsizeof(ent));
            if (
StrContains(ent"func_bomb_target") != -1)
            {
                
AcceptEntityInput(i"Enable");
            }
        }
    } 
2. Kills
How can I make a func_bomb_target around the player, by pre-hooking bomb_beginplant, so he can plant the bomb again?


Solution
PHP Code:
#include <sdkhooks>
public OnEntityCreated(entity, const String:classname[])
{
    if(
StrEqual(classname"func_bomb_target"false))
    {
        
SDKHookEx(entitySDKHook_TouchPostTouchPost);
    }
}

public 
TouchPost(entityother)
{
    if(
other && other <= MaxClients)
    {
        
//PrintToServer("entity %i, other %i", entity, other);
        
SetEntProp(otherProp_Send"m_bInBombZone"1);
    }

__________________

Last edited by yash1441; 07-16-2017 at 15:00. Reason: Solved
yash1441 is offline
Send a message via Skype™ to yash1441
sdz
Senior Member
Join Date: Feb 2012
Old 05-27-2016 , 09:45   Re: [CS:GO] Plant Bomb On The Same Site Again
Reply With Quote #2

1. https://wiki.alliedmods.net/Counter-...s#bomb_planted + SetEventInt?

2. No idea
sdz is offline
yash1441
Senior Member
Join Date: Feb 2015
Location: Illuminati HQ
Old 05-27-2016 , 10:28   Re: [CS:GO] Plant Bomb On The Same Site Again
Reply With Quote #3

Quote:
Originally Posted by EasSidezz View Post
bomb_planted

short userid player who planted the bomb
short site bombsite index

What can I do with these? I don't see how these can help me achieve what I need.
__________________
yash1441 is offline
Send a message via Skype™ to yash1441
sdz
Senior Member
Join Date: Feb 2012
Old 05-27-2016 , 11:06   Re: [CS:GO] Plant Bomb On The Same Site Again
Reply With Quote #4

You can write the bombsite index to something obscure, I'm pretty sure there isn't a 19th bombsite on a map
sdz is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 05-27-2016 , 12:04   Re: [CS:GO] Plant Bomb On The Same Site Again
Reply With Quote #5

I'm also curious about this, what makes it so you cant plant twice like you could in cs:s?
Also if the func_bomb_target is killed then it wouldn't show the hud icon that you could plant the bomb.
Mitchell is offline
sdz
Senior Member
Join Date: Feb 2012
Old 05-27-2016 , 12:12   Re: [CS:GO] Plant Bomb On The Same Site Again
Reply With Quote #6

So I figure that means I should probably do some testing?
Edit: I'll probably do some after I'm done eating, so like 5 hours or so

Last edited by sdz; 05-27-2016 at 12:13.
sdz is offline
yash1441
Senior Member
Join Date: Feb 2015
Location: Illuminati HQ
Old 05-27-2016 , 12:45   Re: [CS:GO] Plant Bomb On The Same Site Again
Reply With Quote #7

Thanks! Just to ease things for you, here is the code that I think should work.

I can't try myself as I still have to update my srcds and since it has been pending for a long time it will take a while.


Doesn't Work
Attached Files
File Type: sp Get Plugin or Get Source (bomb_test.sp - 405 views - 1,003 Bytes)
__________________

Last edited by yash1441; 05-30-2016 at 02:23.
yash1441 is offline
Send a message via Skype™ to yash1441
yash1441
Senior Member
Join Date: Feb 2015
Location: Illuminati HQ
Old 07-16-2017 , 10:28   Re: [CS:GO] Plant Bomb On The Same Site Again
Reply With Quote #9

Quote:
Originally Posted by EMINEM_FB View Post
Thanks for the update! 😊
__________________
yash1441 is offline
Send a message via Skype™ to yash1441
Reply



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 02:57.


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