AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Get Sounds (https://forums.alliedmods.net/showthread.php?t=208784)

bogdyuttzu 02-17-2013 12:37

Get Sounds
 
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" }
 }


Arkshine 02-17-2013 12:54

Re: Get Sounds
 
For what reasons ? Such sounds are anyway precached automatically, so what would be the use ?

bogdyuttzu 02-17-2013 14:11

Re: Get Sounds
 
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...

Arkshine 02-17-2013 15:12

Re: Get Sounds
 
Attach a model example. But I still think it should be handled automatically, no matter it's an original model or not.

bogdyuttzu 02-18-2013 00:51

Re: Get Sounds
 
Here is a model exemple and the sounds:

https://dl.dropbox.com/u/72298737/asdfg.zip

Arkshine 02-18-2013 08:27

Re: Get Sounds
 
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 ?

Arkshine 02-21-2013 19:52

Re: Get Sounds
 
Some feedbacks ?

bogdyuttzu 02-22-2013 02:39

Re: Get Sounds
 
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"

Arkshine 02-22-2013 04:32

Re: Get Sounds
 
Possible to attach this model ?

bogdyuttzu 02-22-2013 10:28

Re: Get Sounds
 
Here are the modesl what I tested:

https://dl.dropbox.com/u/72298737/forArkshine.zip


All times are GMT -4. The time now is 21:42.

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