tank sound gone


(=ds=bart) #1

hi .
i was getting into this tank stuff .
i have taking the one from goldrush every thing works fine .
bud my sound seems to be lost from the tank.
the 2 barriers work to only im missing the sound.
what could it be.

// ***************** TANK STUFF ********************
// *************************************************

tank_sound
{
	trigger start
	{
		trigger tank sound_start
		wait 3400
		trigger tank sound_move
	}

	trigger stop
	{
		trigger tank sound_stop
		wait 1400
		trigger tank sound_idle
	}

	trigger rebirth
	{
		trigger tank sound_rebirth
		wait 1400
		trigger tank sound_idle
	}
}

// digibob: converting truck script from goldrush over...
// ============================================================================
// accum 0, track state
// accum 1
//  - bit 0: barrier1 state		( 0 = not built,	1 = built		)
//  - bit 1: barrier2 state		( 0 = not built,	1 = built		)
//  - bit 2: spline status 		( 0 = not moving, 	1 = moving 		)
//  - bit 3: stuck check flag 	( 0 = not stuck, 	1 = stuck 		)
//  - bit 4: flag for message	( 0 = dont display, 1= display		)
//  - bit 5: blank				(									)
//  - bit 6: temp register 		(XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX)
//  - bit 7: death status 		( 0 = alive, 		1 = dead		)
//  - bit 8: player check 		( 0 = players, 		1 = no players	)
//  - bit 9: visible state		( 0 = alive, 		1 = dead		)
// accum 2, blank
// accum 3, current movement loop position
// accum 4, stop counter
// accum 5, lockout ref counter
// accum 6, blank
// accum 7, blank
// ===========================================================================================
// spline points are spln2 -> spln78
// ===========================================================================================
// track events:
//  - tracks_forward
//  - tracks_stop
//  - tracks_turn_left
//  - tracks_turn_right


tank
{
	spawn
	{
		wait 400
		followspline 0 spln1 50000 length 32 wait

		trigger tank sound_idle
		trigger tank tracks_stop
	}

	// ========================================
	// sound stuff

	trigger sound_idle
	{
		stopsound
		playsound sound/vehicles/tank/tank_idle.wav looping volume 512
	}

	trigger sound_start
	{
		stopsound
		playsound sound/vehicles/tank/tank_revup.wav volume 196
	}

	trigger sound_move
	{
		stopsound
		playsound sound/vehicles/tank/tank_move.wav looping volume 512
	}

	trigger sound_stop
	{
		stopsound
		playsound sound/vehicles/tank/tank_revdown.wav volume 196
	}

	trigger sound_death
	{
		stopsound
		playsound sound/vehicles/tank/tank_stop.wav volume 256
	}

	trigger sound_rebirth
	{
		stopsound
		playsound sound/vehicles/tank/tank_start.wav volume 196
	}

	// ========================================
	// ========================================


(Shaderman) #2

An example:


   trigger rebirth 
   { 
      trigger tank sound_rebirth 
      wait 1400 
      trigger tank sound_idle 
   }

When the tank is repaired, this part of the script should be executed which triggers two other parts of the script, playing a sound then:


   trigger sound_rebirth 
   { 
      stopsound 
      playsound sound/vehicles/tank/tank_start.wav volume 196 
   }

   trigger sound_idle 
   { 
      stopsound 
      playsound sound/vehicles/tank/tank_idle.wav looping volume 512 
   }

But what happens if the first part of the script (trigger rebirth) isn’t triggered? --> Nothing :eek: So you have to trigger the “trigger rebirth” part (when the tank is repaired) accordingly.


(=ds=bart) #3

k that helps allot .
i dithnt change any of the sound stuff in this script .
i find it weird that its gone thow.
my other prob is i wanna make these barriers constructhebles for allies bud when i tried to change .
those crates(cmarker) thy whent all yellow and black the shader missing .
can it be it sets it self straight when you play online.
just fix it i think i putt cmarker (allies) bud it must be cmarker( allied)
thx in advance.
im searching for the search button . :eek: :eek:.

so where is it triggerd then .
i ditnt change any thing off the sound stuff.
is it just a scripting issue
thx