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

finding sounds and entities


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hoboman
Senior Member
Join Date: Jul 2007
Old 03-04-2008 , 02:26   finding sounds and entities
Reply With Quote #1

now I am wondering how I can find any sound or any entity ( like the class name, or the target or w/e ) on a given map...I suspect that the only sure way is to use the valve hammer editor, but is there an easier way like some in game command or maybe a plugin?

In my case, I am trying to find the sound emitted when a player presses the use button and those camera entities on cs_assault and I dunno where to start.
__________________
hoboman is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-04-2008 , 07:25   Re: finding sounds and entities
Reply With Quote #2

FM_EmitSound
FM_Spawn
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
hoboman
Senior Member
Join Date: Jul 2007
Old 03-04-2008 , 11:27   Re: finding sounds and entities
Reply With Quote #3

Quote:
Originally Posted by X-olent View Post
FM_EmitSound
FM_Spawn
ok, I saw how FM_EmitSound is used somewhere, so I can manage with that, but can you give me an example of FM_Spawn and how it would help me find an entity's classname/target/tname...
__________________
hoboman is offline
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 03-04-2008 , 11:36   Re: finding sounds and entities
Reply With Quote #4

hooking FM_EmitSound will give you the sound files when they are played
hooking FM_Spawn will give you the entity classnames on map load

you can also use BSPEdit to open up the map and look at its entities..not "in game" but it's easier than hammer.
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-04-2008 , 15:31   Re: finding sounds and entities
Reply With Quote #5

FM_Spawn, // int ) (ent)
Code:
#include <amxmodx>
#include <fakemeta>

public plugin_precache()
{
    register_forward(FM_Spawn, "fwd_Spawn");
}

public plugin_init()
{
    register_plugin("FM_Spawn Research", "0.1", "Exolent");
}

public fwd_Spawn(ent)
{
    if(!pev_valid(ent))
        return FMRES_IGNORED;
    
    static classname[32];
    pev(ent, pev_classname, classname, sizeof(classname)-1);
    log_amx("Entity spawned. Classname: %s", classname);
    return FMRES_IGNORED;
}
and of course if you need to, you can add origins and such to the logs
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
hoboman
Senior Member
Join Date: Jul 2007
Old 03-04-2008 , 18:26   Re: finding sounds and entities
Reply With Quote #6

ay, thx for that
btw, I don't think BSPEdit works anymore...I have been trying to run it but it refuses to load

after much googling my favorite combination is BSPTwoMAP+valve hammer editor + extracted .ent file from the map.bsp
__________________
hoboman 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 20:38.


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