Results 1 to 3 of 3

Thread: 1 sound

  1. #1

    Default 1 sound

    Hello guys
    how can i add good job sound after every round in freeze tag mod ?

    I made like this in ft file ...
    level.ft_goodjobsound["allies"] = "goodjobsound"
    level.ft_goodjobsound["axis"] = "goodjobsound"

    local.goodjobsound = level.ft_goodjobsound[local.player.dmteam]

    then i add this voice

    local.master = spawn scriptmaster
    local.master aliascache goodjobsound sound/dialogue/multiplayer/a/amdfr_v_01j.wav soundparms 4.0 0.0 1.0 0.0 99999 99999 auto streamed maps "m dm moh obj train"

    i miss something ?
    Last edited by Old Fox; August 11th, 2020 at 06:21 PM.

  2. #2

    Default

    Quote Originally Posted by Old Fox View Post
    level.ft_goodjobsound["allies"] = "goodjobsound"
    level.ft_goodjobsound["axis"] = "goodjobsound"
    I don't understand what is this for..

    Try and add your "goodjobsound" in util.scr it might work.
    Code:
    do_teamwin local.team:
    	if (level.mef_basegametype == NIL)
    	{
    		teamwin local.team
    		local.team playsound goodjobsound
    		end
    	}
    Code:
    teamwin_wrapper local.team:
    	if (level.mef_basegametype != 4 || level.mef_basegametype != 5 || level.mef_basegametype != 6)
    	{
    		setcvar "g_gametype" "4"  // Objective Match
    	}
    
    	teamwin local.team
    	local.team playsound goodjobsound
    
    	setcvar "g_gametype" level.mef_basegametype
    You will have to add the aliascache for your "goodjobsound" first to work.

    Edit: If it don't work try "$player playsound goodjobsound"
    Last edited by RemoZz; August 14th, 2020 at 10:40 PM.

  3. #3

    Default

    Quote Originally Posted by RemoZz View Post
    I don't understand what is this for..

    Try and add your "goodjobsound" in util.scr it might work.
    Code:
    do_teamwin local.team:
    	if (level.mef_basegametype == NIL)
    	{
    		teamwin local.team
    		local.team playsound goodjobsound
    		end
    	}
    Code:
    teamwin_wrapper local.team:
    	if (level.mef_basegametype != 4 || level.mef_basegametype != 5 || level.mef_basegametype != 6)
    	{
    		setcvar "g_gametype" "4"  // Objective Match
    	}
    
    	teamwin local.team
    	local.team playsound goodjobsound
    
    	setcvar "g_gametype" level.mef_basegametype
    You will have to add the aliascache for your "goodjobsound" first to work.

    Edit: If it don't work try "$player playsound goodjobsound"
    thankx Ramozz you always helping your friends in x.null special me
    thankx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •