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

[csgo] defuse a bomb planted outside a default map bombspot


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 08-12-2017 , 18:46   [csgo] defuse a bomb planted outside a default map bombspot
Reply With Quote #1

With 'SDKHook_PostThink' & 'SetEntProp(client, Prop_Send, "m_bInBombZone", 1);' I'm able to create a bombzone.
So I can plant the bomb. But I can't defuse such a planted bomb.

I found 'SetEntProp(client, Prop_Send, "m_bInNoDefuseArea", 1/0);' but can't get it work.
Also found and tried to force: 'SetEntProp(client, Prop_Send, "m_bIsDefusing", 1);'.
I also tried to create and fire the events "bomb_begindefuse" & "bomb_defused" without success.

PHP Code:
#include <sourcemod>
#include <sdkhooks>

bool bBomb[MAXPLAYERS+1] = {true, ...};

public 
void OnClientPutInServer(int client)
{
    
SDKHook(clientSDKHook_PostThinkOnPostThink);
}

public 
void OnPostThink(int client)
{
    if (
bBomb[client])
    {
        
SetEntProp(clientProp_Send"m_bInBombZone"1);
        
SetEntProp(clientProp_Send"m_bInNoDefuseArea"0);  // also tested '1'
    
}

PHP Code:
    Event event CreateEvent("bomb_begindefuse"true);
    
    
SetEventInt(event"userid"GetClientOfUserId(client));
    
SetEventBool(event"haskit"true);
    
FireEvent(event,true); 
any ideas?
__________________
coding & free software

Last edited by shanapu; 08-12-2017 at 18:49. Reason: format / readability
shanapu is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 08-13-2017 , 04:35   Re: [csgo] defuse a bomb planted outside a default map bombspot
Reply With Quote #2

....I was thinking, why not create small bomb site brush when plant?
I haven't test and not able to for now.

Anyway, carry on.
__________________
Do not Private Message @me
Bacardi is offline
CamerDisco
AlliedModders Donor
Join Date: Aug 2015
Location: Poland
Old 08-13-2017 , 13:12   Re: [csgo] defuse a bomb planted outside a default map bombspot
Reply With Quote #3

Look at this plugin https://forums.alliedmods.net/showthread.php?p=1796519
Maybe it'll help you a little.
Like I see it's checking on PlayerRunCmd that bomb is in player range and than it's creating 'fake' defuse.
__________________


Max-Play.pl - the best polish servers

Last edited by CamerDisco; 08-13-2017 at 13:15.
CamerDisco is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 08-13-2017 , 17:44   Re: [csgo] defuse a bomb planted outside a default map bombspot
Reply With Quote #4

You could always create a bombsite using the maps mins/maxs
__________________
Neuro Toxin is offline
vortex.
AlliedModders Donor
Join Date: Jan 2017
Location: OnGameFrame()
Old 08-13-2017 , 20:26   Re: [csgo] defuse a bomb planted outside a default map bombspot
Reply With Quote #5

A guy, asked same question to me on Steam. And he found a plugin on AM. But sorry i cant remember thread link.

EDIT: I found https://forums.alliedmods.net/showpo...80&postcount=3
__________________

Last edited by vortex.; 08-13-2017 at 20:27.
vortex. is offline
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 21:11.


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