Raised This Month: $ Target: $400
 0% 

Get Sounds


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bogdyuttzu
Senior Member
Join Date: Dec 2009
Location: Romania
Old 02-17-2013 , 12:37   Get Sounds
Reply With Quote #1

I saw this stock by arkshine who return the sequence name:
http://forums.alliedmods.net/showpos...0&postcount=11

Is possible to get the sounds from a model?

Like this:

Code:
$sequence "reload" "reload" fps 30 {
  { event 5004 1 "weapons/zc_wpn/infinity_clipout.wav" } 
  { event 5004 45 "weapons/zc_wpn/infinity_clipin.wav" } 
  { event 5004 79 "weapons/zc_wpn/infinity_clipin.wav" } 
  { event 5004 108 "weapons/zc_wpn/infinity_clipon.wav" } 
 }
bogdyuttzu is offline
Send a message via Yahoo to bogdyuttzu
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-17-2013 , 12:54   Re: Get Sounds
Reply With Quote #2

For what reasons ? Such sounds are anyway precached automatically, so what would be the use ?
__________________
Arkshine is offline
bogdyuttzu
Senior Member
Join Date: Dec 2009
Location: Romania
Old 02-17-2013 , 14:11   Re: Get Sounds
Reply With Quote #3

If I set a custom model, sounds are not precached automatically and I need to precache them manually.

I've make a weapon mod plugin and I want to automatically get the sounds from a model...
bogdyuttzu is offline
Send a message via Yahoo to bogdyuttzu
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-17-2013 , 15:12   Re: Get Sounds
Reply With Quote #4

Attach a model example. But I still think it should be handled automatically, no matter it's an original model or not.
__________________
Arkshine is offline
bogdyuttzu
Senior Member
Join Date: Dec 2009
Location: Romania
Old 02-18-2013 , 00:51   Re: Get Sounds
Reply With Quote #5

Here is a model exemple and the sounds:

https://dl.dropbox.com/u/72298737/asdfg.zip
bogdyuttzu is offline
Send a message via Yahoo to bogdyuttzu
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-18-2013 , 08:27   Re: Get Sounds
Reply With Quote #6

Try something like :

Spoiler


Not sure if it will work properly in case for a same sequence you have several event, do you have a model with that ?
__________________

Last edited by Arkshine; 02-22-2013 at 11:02.
Arkshine is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-21-2013 , 19:52   Re: Get Sounds
Reply With Quote #7

Some feedbacks ?
__________________
Arkshine is offline
bogdyuttzu
Senior Member
Join Date: Dec 2009
Location: Romania
Old 02-22-2013 , 02:39   Re: Get Sounds
Reply With Quote #8

Yes, sorry for late..

I've tried with more models and these are the logs:

Code:
Found = eapons/mastercombat_draw.wav
Found = eapons/strong_knife_draw.wav
Found = eapons/Jknife_draw.wav
Found = eapons/dragontail_idle.wav
Found = eapons/dragontail_draw.wav
Found = eapons/gt_clipout.wav
Found = eapons/gt_clipin.wav
Found = eapons/gt_draw.wav
Found = eapons/balrog7_clipout1.wav
Found = eapons/balrog7_clipin1.wav
Found = eapons/balrog7_clipin3.wav
Found = eapons/DDe_Clipoff.wav
Found = eapons/DDe_Clipout.wav
Found = eapons/DDe_Clipout.wav
Found = eapons/DDe_clipin.wav
Found = eapons/DDe_twirl.wav
Found = eapons/DDe_twirl.wav
Found = eapons/zc_wpn/tar21_clipout.wav
Found = eapons/zc_wpn/tar21_boltpull.wav
Some times is repate the sound in array as you can see up and not found all events. DDe_* should have 8 events not only 4 (one sound per event) and same for tar21, gt, balrog7.

PS: why "eapons" it should be "weapons"

Last edited by bogdyuttzu; 02-22-2013 at 02:46.
bogdyuttzu is offline
Send a message via Yahoo to bogdyuttzu
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-22-2013 , 04:32   Re: Get Sounds
Reply With Quote #9

Possible to attach this model ?
__________________

Last edited by Arkshine; 02-22-2013 at 04:32.
Arkshine is offline
bogdyuttzu
Senior Member
Join Date: Dec 2009
Location: Romania
Old 02-22-2013 , 10:28   Re: Get Sounds
Reply With Quote #10

Here are the modesl what I tested:

https://dl.dropbox.com/u/72298737/forArkshine.zip
bogdyuttzu is offline
Send a message via Yahoo to bogdyuttzu
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