Goldbars


(TFate) #1

K, I’m having trouble with goldbars. The red crate holders show up right but the goldbars that you are supposed to steal do not. I believe that it has something to do with my script. This is the whole section I have relating to gold bars. I’d be grateful if anyone can find anything which would interfere with the appearance of the crates.

//
//
//**************************************************************
//*********************GOLDBARS*********************************
//**************************************************************


goldbar_holder
{
	death
	{
		trigger self add_goldbar
	}

	trigger add_goldbar
	{
		accum 0 inc 1

		trigger gold_full_0 show
		trigger gold_trans_0 hide
		trigger gold_crate secured

		accum 0 abort_if_less_than 2

		trigger gold_full_1 show
		trigger gold_trans_1 hide
	}
}

gold_crate
{
	spawn
	{
		accum 0 set 0
	}

	trigger stolen
	{
		accum 0 inc 1
		accum 0 trigger_if_equal 1 gold_crate stolen1
		accum 0 trigger_if_equal 2 gold_crate stolen2
	}

	trigger secured
	{
		accum 0 trigger_if_equal 1 gold_crate secured1
		accum 0 trigger_if_equal 2 gold_crate secured2
	}

	trigger returned
	{
		accum 0 inc -1
		accum 0 trigger_if_equal 0 gold_crate returned1
		accum 0 trigger_if_equal 1 gold_crate returned2
	}

	trigger stolen1
	{
		wm_teamvoiceannounce 0 "goldrush_axis_gold1_taken"
		wm_teamvoiceannounce 1 "goldrush_allies_gold1_taken"
	}

	trigger stolen2
	{
		wm_teamvoiceannounce 0 "goldrush_axis_gold2_taken"
		wm_teamvoiceannounce 1 "goldrush_allies_gold2_taken"
	}

	trigger secured1
	{
		wm_announce "Allied team has secured the first Gold Crate!"
		wm_teamvoiceannounce 0 "goldrush_axis_gold1_secured"
		wm_teamvoiceannounce 1 "goldrush_allies_gold1_secured"
	}

	trigger secured2
	{
		wm_announce "Allied team has secured the second Gold Crate!"
		wm_teamvoiceannounce 0 "goldrush_axis_gold2_secured"
		wm_teamvoiceannounce 1 "goldrush_allies_gold2_secured"
		wm_removeteamvoiceannounce 0 "goldrush_axis_gold_defend"
		wm_removeteamvoiceannounce 1 "goldrush_allies_gold_defend"
	}

	trigger returned1
	{
		wm_teamvoiceannounce 0 "goldrush_axis_gold1_returned"
		wm_teamvoiceannounce 1 "goldrush_allies_gold1_returned"
	}

	trigger returned2
	{
		wm_teamvoiceannounce 0 "goldrush_axis_gold2_returned"
		wm_teamvoiceannounce 1 "goldrush_allies_gold2_returned"
	}
}

gold_full_0
{
	spawn
	{
		wait 500
		faceangles 0 90 0 50

		setstate gold_full_0 invisible
	}

	trigger show
	{
		setstate gold_full_0 default
	}
}

gold_full_1
{
	spawn
	{
		wait 500
		faceangles 0 90 0 50

		setstate gold_full_1 invisible
	}

	trigger show
	{
		setstate gold_full_1 default
	}
}

gold_trans_0
{
	spawn
	{
		wait 500
		faceangles 0 90 0 50
	}

	trigger hide
	{
		setstate gold_trans_0 invisible
	}
}

gold_trans_1
{
	spawn
	{
		wait 500
		faceangles 0 90 0 50
	}

	trigger hide
	{
		setstate gold_trans_1 invisible
	}
}

(Loffy) #2

In the map (in the editor), do you have a team_ctf_redflag (or team_ctf_blueflag)? With a model (goldcrate, like in GoldRush)?
And you problem is this: The map compiles with no problems, but when you run around in the map you cannot see the goldcrate at all?
// Loffy


(TFate) #3

Yes, I do have a team_ctf_redflag with the appropiate model. And your description of my problem is correct.


(eRRoLfLyNN) #4

Make sure the path to the model starts at: models/etc and not c:/program files/etc…
That can cause models not to appear in game.


(TFate) #5

Double- and triple-checked, all model paths are correct.