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

[solved] CSGO How to get planted bomb


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 10-27-2015 , 10:41   [solved] CSGO How to get planted bomb
Reply With Quote #1

How would I get ent index of planted bomb when I can't find it's classname in the fgd file(other then the training bomb classname)

Last edited by WildCard65; 10-27-2015 at 15:12.
WildCard65 is offline
Miu
Veteran Member
Join Date: Nov 2013
Old 10-27-2015 , 11:06   Re: CSGO How to get planted bomb
Reply With Quote #2

planted_c4? :V
Miu is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 10-27-2015 , 14:11   Re: CSGO How to get planted bomb
Reply With Quote #3

Plant the bomb and watch chat for new entity.

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

public Plugin:myinfo =
{
    
name "CreateEntityReport",
    
author "Raska",
    
description "",
    
version "0.1",
    
url ""
}

public 
OnEntityCreated(entity, const String:classname[])
{
    
PrintToChatAll("[NewEntity] '%s' '%d'"classnameentity);
}

// public OnEntityDestroyed(entity)
// {
    // decl String:classname[64];
    // GetEntityClassname(entity, classname, sizeof(classname));
    // PrintToChatAll("[KillEntity] '%s' '%d'", classname, entity);
// } 
__________________
Plugins: TeamGames
Includes: Menu stocks, ColorVariables, DownloadTableConfig

> No help through PM, make a topic.
KissLick is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-27-2015 , 17:17   Re: [solved] CSGO How to get planted bomb
Reply With Quote #4

Quote:
Originally Posted by WildCard65 View Post
How would I get ent index of planted bomb when I can't find it's classname in the fgd file(other then the training bomb classname)
Since the fgd file is for mapping, it's not going to contain entities that aren't intended to be placed on maps.

In addition to Miu's suggestion, there's always sm_dump_classnames, sm_dump_datamaps, and sm_dump_netprops.
__________________
Not currently working on SourceMod plugin development.
Powerlord 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 07:59.


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