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

A cool 'spk' feature?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bibu
Veteran Member
Join Date: Sep 2010
Old 11-07-2010 , 15:04   A cool 'spk' feature?
Reply With Quote #1

I just found these 2 lines in the galileo plugin:

PHP Code:
client_cmd(0"spk ^"get red(e80ninety(s45to check(e20) use bay(s18mass(e42cap(s50)^""
This speaks: Get ready to choose a map.

Or this line:

PHP Code:
client_cmd(0"spk ^"run officer(e40voltage(e30accelerating(s70is required^""
This speaks: Run-Off voting is required.

So I wanted to ask, how todo this messages, I don't understand it with those (letter, number). Can someone teach me that? I didn't ask the plugins author since I saw that he can't support the plugin anymore.
bibu is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-07-2010 , 15:11   Re: A cool 'spk' feature?
Reply With Quote #2

I believe it means something like this:

sound - Play "sound"
sound(eXX) - Play "sound" for XX duration
sound(sXX) - Play "sound", but skip to XX
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 11-07-2010 , 15:14   Re: A cool 'spk' feature?
Reply With Quote #3

Oh ok, and how can I find the duration, I mean all those small sound files are less than 1sec...
bibu is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-07-2010 , 15:15   Re: A cool 'spk' feature?
Reply With Quote #4

Quote:
Originally Posted by bibu View Post
Oh ok, and how can I find the duration, I mean all those small sound files are less than 1sec...
It could either be a percentage, or something like milliseconds.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 11-07-2010 , 15:18   Re: A cool 'spk' feature?
Reply With Quote #5

Do you know how to catch exactly the time it should play or do I need to play with it?
bibu is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-07-2010 , 15:22   Re: A cool 'spk' feature?
Reply With Quote #6

You would need to play with it.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 11-07-2010 , 15:36   Re: A cool 'spk' feature?
Reply With Quote #7

Hmm ok, I tried for first something like this:

PHP Code:
#include <amxmodx>

public plugin_init( )
{
    
register_clcmd"say /test""Test" )
    
register_clcmd"say /test2""Test2" )
    
register_clcmd"say /test3""Test3" )
    
register_clcmd"say /test4""Test4" )
}

public 
Testid )
{
    
client_cmd(0"spk ^"you are a fourty(e20after(e20kill(e20error(e20)^"")
}

public 
Test2id )
{
    
client_cmd(0"spk ^"hide(e15) do(e10)^"")
}

public 
Test3id )
{
    
client_cmd(0"spk ^"this is a test^"")
}

public 
Test4id )
{
    
client_cmd(0"spk ^"do you nice(e10e help^"")

Best one is for sure test3, since I didn't change anything..
It is really hard to make a long and difficult sentence how it is in galileo but thanks for your help.
bibu is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 11-07-2010 , 19:13   Re: A cool 'spk' feature?
Reply With Quote #8

It is not that hard to do. The numbers are percentages of the sound file.
Code:
s - start %
e - end %
t - time % (?)
p - pitch % (?)
Not too sure about t or p, but I think that's what they are.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 11-07-2010 , 21:17   Re: A cool 'spk' feature?
Reply With Quote #9

Yes, P is pitch, there's also V for volume, they're tested.
__________________
Hunter-Digital is offline
Voi
Veteran Member
Join Date: Sep 2006
Location: Gdansk, Poland
Old 11-07-2010 , 23:04   Re: A cool 'spk' feature?
Reply With Quote #10

This is very nice.

I don't wanna start similar thread so i'll ask here.

How to emit a sound from an entity with a custom sentence ?
__________________
Voi 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 19:30.


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