[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4787: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4789: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4790: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4791: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
InsideQC Forums • View topic - playing sounds to the player only??

playing sounds to the player only??

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

playing sounds to the player only??

Postby drm_wayne » Tue Aug 21, 2012 12:52 pm

User avatar
drm_wayne
 
Posts: 232
Joined: Sat Feb 11, 2012 5:47 pm

Re: playing sounds to the player only??

Postby Spike » Tue Aug 21, 2012 1:09 pm

not possible without extensions.

you could do it with writebytes, but that's so insanely hacky that I'm not even going to explain it.
.
Spike
 
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Re: playing sounds to the player only??

Postby drm_wayne » Tue Aug 21, 2012 7:36 pm

That sad, so i need to stay with "bullet hits body" sounds on the player..
btw: do you know how i can make a weaponsound play looped and then stopped by another sound when you stop fireing?
i think the "invisibility whispering" is using a similar method, but i am not home atm to look in my sources...
atm i only have a normal sound playing for the weapon and it sounds not really good..
User avatar
drm_wayne
 
Posts: 232
Joined: Sat Feb 11, 2012 5:47 pm

Re: playing sounds to the player only??

Postby frag.machine » Tue Aug 21, 2012 10:49 pm

I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2120
Joined: Sat Nov 25, 2006 1:49 pm

Re: playing sounds to the player only??

Postby drm_wayne » Wed Aug 22, 2012 9:28 am

i wont do it that way, because when you get shoot or killed the sound still plays...
I kinda suck at soundthings...
User avatar
drm_wayne
 
Posts: 232
Joined: Sat Feb 11, 2012 5:47 pm

Re: playing sounds to the player only??

Postby Spike » Wed Aug 22, 2012 6:49 pm

you can use svc_startsound.
the problem there is that you don't know the sound index of the sound you wish to play.


you can use stuffcmds.
the problem there is that the sound is centered on where you were when the sound started playing. strafe to one side and it sounds really stupid. there are some engines that attempt to fix that directly, and some that have a playsound2 console command instead.


you can use csqc.
woo. dp+fte only.


you can use localsound.
buggy pile of poo that only works in single player as its not networked. only works in telejano.


you can use the regular sound builtin.
give it a really high attenuation, and it will be barely audiable for players further away, yet will follow the player upon which it was started.
attenuation is typically limited to a max value of about 4.

you can use ext_dimension_send.
woo. ftesv only, but won't crash other engines.
example follows. note the attenuation value in this example is 4, as a fallback for other servers that don't recognise dimensions.
//set up multicasts to send to only one player
dimension_send = 512;
self.dimension_see = 512;
//call the sound builtin (which multicasts in fte/qw)
sound(self, CHAN_FOO, "foo.wav", 1, 4);
//reset to defaults, so nothing else breaks
dimension_see = 255;
self.dimension_see = 255;


so yeah, sucks.
.
Spike
 
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Re: playing sounds to the player only??

Postby drm_wayne » Wed Aug 22, 2012 6:54 pm

heh, thanks..

the unusual way stuffcmd "play hitmarker.wav" works great at least for the hitmaker sounds :D
But i need to take a "deeper" look at the soundstuff, some things are still a misterium for me :lol:
I also tricked my MG sound now, it was supposed to be a played loop, but now we edited the soundfiles
and the self.attack finished of the firefunction and now it sounds like it should sound :)
User avatar
drm_wayne
 
Posts: 232
Joined: Sat Feb 11, 2012 5:47 pm

Re: playing sounds to the player only??

Postby Seven » Mon Oct 01, 2012 3:10 pm

Seven
 
Posts: 301
Joined: Sat Oct 06, 2007 8:49 pm
Location: Germany

Re: playing sounds to the player only??

Postby Nahuel » Mon Oct 01, 2012 3:14 pm


GNU :)
hi, I am nahuel, I love quake and qc.
User avatar
Nahuel
 
Posts: 495
Joined: Wed Jan 12, 2011 8:42 pm
Location: mar del plata

Re: playing sounds to the player only??

Postby Seven » Mon Oct 01, 2012 3:41 pm

Hello Nahuel,

Audacity is what I used until now. But it does not seem to be able to add "cue tags"...

But nevermind, I found a software (with shareware option) that can do it: Goldwave

Here is a step by step explanation for dummies like myself, how to do it :)
https://developer.valvesoftware.com/wik ... ng_a_Sound

valvesoftware helped us, hehe...

EDITED:
Nahuel, if you found a way to do it with Audacity, please describe which menue-option do you use for it ?
Thank you.
Seven
 
Posts: 301
Joined: Sat Oct 06, 2007 8:49 pm
Location: Germany

Re: playing sounds to the player only??

Postby frag.machine » Mon Oct 01, 2012 9:09 pm

I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2120
Joined: Sat Nov 25, 2006 1:49 pm

Re: playing sounds to the player only??

Postby leileilol » Mon Oct 01, 2012 9:46 pm

Cool Edit 95 can also do it, it's what id used.
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Re: playing sounds to the player only??

Postby RenegadeC » Tue Oct 02, 2012 12:39 am

User avatar
RenegadeC
 
Posts: 391
Joined: Fri Oct 15, 2004 10:19 pm
Location: The freezing hell; Canada

Re: playing sounds to the player only??

Postby Baker » Tue Jul 15, 2014 6:31 pm

The night is young. How else can I annoy the world before sunsrise? 8) Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Re: playing sounds to the player only??

Postby r00k » Tue Jul 15, 2014 8:46 pm

I would think a stuffcmd is plenty reliable...and fast.

I did change my player pain sounds to car horns once. its not like a complete hack, as further away you really cant hear them ;)
r00k
 
Posts: 1111
Joined: Sat Nov 13, 2004 10:39 pm

Next

Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest