Info./use of "info_player_checkpoint" ???


(EB) #1

This was in one of the random entity updates I have found, I have finally begun to wonder about it’s use.

classname
info_player_checkpoint 
these are start points /after/ the level start 
the letter (a b c d) designates the checkpoint that needs to be complete in order to use this start position 

How would I set one of the checkpoints ?
( Could it be as simple as targeting it by a trigger_once ? Would I need to set new spawns ? Target them too ? script the checkpoint ? Anyone ? Anyone ? )


(Detoeni) #2

In rtcw cheakpoint flags are used as script trigger, in et the spawn flag can be used in the same way.

Flag scripting from rtcw CP map for refrence:

trigger cp1_blue
	{
		// Change the objective state internally, so UI can update, etc.
		// Allied takes control of checkpoint #1
		wm_set_objective_status		1	1

		// First update winner based on number of flags held by both teams
		trigger game_manager adjustwinner_cp1_blue

		// Change the variable within the script so that we can check if someone wins the round
		accum 1 set 1

		// Some kind of UI pop-up to alert players
		wm_announce	"Allies take the Submarine Storage Facility!"

		// Call function to check if the round has been won
		trigger game_manager checkgame_blue
	}

	trigger cp1_red
	{
		// Change the objective state internally, so UI can update, etc.
		// Axis takes control of checkpoint #1
		wm_set_objective_status		1	0

		// First update winner based on number of flags held by both teams
		trigger game_manager adjustwinner_cp1_red

		// Change the variable within the script so that we can check if someone wins the round
		accum 1 set 0

		// Some kind of UI pop-up to alert players
		wm_announce	"Axis takes the Submarine Storage Facility!"

		// Call function to check if the round has been won
		trigger game_manager checkgame_red
	}
.......


trigger checkwinner
	{
		wm_setwinner -1
		accum 7 abort_if_equal 0
		wm_setwinner 1
		accum 7 abort_if_greater_than 0
		wm_setwinner 0
	}

	trigger adjustwinner_cp1_blue
	{
		accum 7 inc 1
		trigger game_manager checkwinner
		accum 1 abort_if_not_equal 0
		accum 7 inc 1
		trigger game_manager checkwinner
	}
.....

checkpoint01
{
	trigger axis_capture
	{
		trigger game_manager cp1_red
	}

	trigger allied_capture
	{
		trigger game_manager cp1_blue
	}
}
.....

Note: the checkpoint make the same script calls as a spawnpoint flag.


(EB) #3

Good man…I figured this, but wasn’t willing to spend the time testing the variables.
-Cheers

I think I mistakenly added wrong defintions to my .def file for ET.


(Ifurita) #4

you can download the breakout_et_a1 file from pcgamemods. I have a couple of these inside the map.