Fortress Forever

Go Back   Fortress Forever > Editing > Mapping

Reply
 
Thread Tools Display Modes
Old 01-13-2009, 11:56 AM   #1
span
 
Join Date: Sep 2007
Posts Rated Helpful 0 Times
Sound (For Players Ear Only)

Hi, this might just be me that's missed something very obvious. I've created custom sounds and successfully used them in my map.
But i want to be able to play these sounds for "players ear only" when they trigger a cirtain multiple... and not play the sound out loud for everyone. I couldnt find a flag option allowing me to do this as there was before.

Any way to fix this? via lua or are there other options i haven't yet discovered? /Thanks.
span is offline   Reply With Quote


Old 01-13-2009, 05:32 PM   #2
PartialSchism
Keep On Keepin' On
 
PartialSchism's Avatar
 
Join Date: Feb 2008
Location: Mississippi
Class/Position: Offense
Gametype: Fun
Affiliations: I'm bad at FF, and my customs suck
Posts Rated Helpful 0 Times
Send a message via AIM to PartialSchism
http://forums.fortress-forever.com/s...ad.php?t=18349

Code:
BroadCastSoundToPlayer   ,   &FFLib::SendPlayerSound   ,
maybe? Idk the exact string.
PartialSchism is offline   Reply With Quote


Old 01-13-2009, 10:44 PM   #3
Nuk3m
Banned
 
Join Date: Mar 2007
Location: New Jersey, USA!
Class/Position: Scout / Offense
Gametype: Capture the Flag
Affiliations: :e0: Founder
Posts Rated Helpful 0 Times
Send a message via AIM to Nuk3m
http://forums.fortress-forever.com/s...ad.php?t=18659
Nuk3m is offline   Reply With Quote


Old 01-14-2009, 11:12 AM   #4
span
 
Join Date: Sep 2007
Posts Rated Helpful 0 Times
Hi.

Thanks for the help. I was able to work from your feedback and found this in hunted.lua. But since i am no genious at lua scripting im not sure how to bind this to a trigger_muntiple entity. Does anyone know?

Combine these?

Code:
trigger_broadcast = trigger_ff_script:new({})

function trigger_broadcast:ontouch( touch_entity )
	if IsPlayer( touch_entity ) then
and

Code:
--	if player:GetTeamId() == Team.kBlue then
--		BroadCastSoundToPlayer(player, "ff_examplemap.examplesound")
end
span is offline   Reply With Quote


Old 01-14-2009, 01:48 PM   #5
Bridget
Banned
 
Bridget's Avatar
 
Join Date: Sep 2008
Class/Position: Soldier
Gametype: AVD
Affiliations: TALOS
Posts Rated Helpful 5 Times
Code:
trigger_broadcast = trigger_ff_script:new({})

function trigger_broadcast:ontouch( touch_entity )
	if IsPlayer( touch_entity ) then
		local player = CastToPlayer(touch_entity)
		if player:GetTeam() == Team.kBlue then
			BroadCastSoundToPlayer(player, "ff_examplemap.examplesound")
		end
	end
end
Bridget is offline   Reply With Quote


Old 01-15-2009, 07:59 AM   #6
span
 
Join Date: Sep 2007
Posts Rated Helpful 0 Times
Thanks! This might actually do it. I'll run the script tonight, posting result later!
span is offline   Reply With Quote


Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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. The time now is 09:49 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.