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

[ANY] Event Sounds


Post New Thread Reply   
 
Thread Tools Display Modes
sosi_alliedmodders
Junior Member
Join Date: Mar 2011
Old 10-10-2011 , 13:59   Re: [ANY] Event Sounds
Reply With Quote #21

seems to me plugin is not working

L 10/10/2011 - 20:56:22: [SM] Native "HookEvent" reported: Game event "hltv_changed_mode" does not exist
L 10/10/2011 - 20:56:22: [SM] Displaying call stack trace for plugin "event_sounds.smx":

gametype zps
__________________
sosi_alliedmodders is offline
Kemsan
Member
Join Date: Sep 2009
Location: Poland, Bytom
Old 10-12-2011 , 18:49   Re: [ANY] Event Sounds
Reply With Quote #22

@sosi_alliedmodders
Just remove that line from source code - event hltv_changed_mode is marked as "standard Source Engine event", and I stay that line for all games.

@Alice.bnd
No errors in console?
__________________
Kemsan is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 10-12-2011 , 23:20   Re: [ANY] Event Sounds
Reply With Quote #23

Kemsan: You should only hook the events, which are actually used in the config. That way you stay compatible with new events without having to update your plugin.
__________________
Peace-Maker is offline
davidov
Member
Join Date: Oct 2011
Old 10-13-2011 , 05:47   Re: [ANY] Event Sounds
Reply With Quote #24

Hello,
Is there a way to register a sound with event player_death killed by heashot or he grenade please?
davidov is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 10-14-2011 , 07:25   Re: [ANY] Event Sounds
Reply With Quote #25

Code:
L 10/14/2011 - 06:24:03: [SM] Native "HookEvent" reported: Game event "client_loadout_changed" does not exist
L 10/14/2011 - 06:24:03: [SM] Displaying call stack trace for plugin "TG_eventsounds.smx":
L 10/14/2011 - 06:24:03: [SM]   [0]  Line 448, TG_eventsounds.sp::OnPluginStart()
After the latest TF2 update.
Drixevel is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 10-14-2011 , 18:58   Re: [ANY] Event Sounds
Reply With Quote #26

To fix that quickly replace all "HookEvent" with "HookEventEx".
Still, Kemsan, please only hook the events acutally used in the configs to overcome such issues and still have users notice, if they've written the event wrong. HookEventEx will just error silently and users will be confused why it won't work.
__________________
Peace-Maker is offline
Kemsan
Member
Join Date: Sep 2009
Location: Poland, Bytom
Old 10-14-2011 , 19:01   Re: [ANY] Event Sounds
Reply With Quote #27

@Peace-Maker I will update plugin soon with loading events from gamefile - ModEvents.res + hooking option (like weapontype == granade etc. )
__________________
Kemsan is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 10-14-2011 , 19:06   Re: [ANY] Event Sounds
Reply With Quote #28

Sounds great, but you shouldn't need to parse the modevents.res or any other events.res file, since admins need to put the full event name your config, so you have list of events to hook while parsing the config. Just thinking of optimizing. No need to hook all events if only 1 is used e.g..
__________________
Peace-Maker is offline
moxie2020
Veteran Member
Join Date: Aug 2011
Old 10-15-2011 , 21:31   Re: [ANY] Event Sounds
Reply With Quote #29

I would love it if you could trigger color csay messages like this with the ability to add delays. It would be useful for welcome messages, advertising etc. I notice players don't particularly pay attention in the heat of battle so displaying messages in the middle of setup time or at round start would be extremely helpful. If I have just missed a plugin that already does this please let me know.
moxie2020 is offline
Kemsan
Member
Join Date: Sep 2009
Location: Poland, Bytom
Old 10-16-2011 , 07:37   Re: [ANY] Event Sounds
Reply With Quote #30

Updated.

Added condition system - example on first post, to search conditions go to game based event page on AM wiki.
Changed hook system - hook only defined in cfg. events
Added option to show only notify.

Plugin can get approve now?
__________________

Last edited by Kemsan; 10-16-2011 at 07:44.
Kemsan 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:48.


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