Cabinets on commandmap


(Occisor) #1

What I want to do is have health+ammo cabinets show up on the commandmap…but they just wont show up
The cabinets themselves work fine…and I encased them with a trigger_objective_info targetting a misc_commandmap_marker…and the trigger runs this script:

axisbunkersupplycabinets
{
	spawn
	{
	wait 200
	setstate axisbunkersupplycabinets default
	}
}

am I taking a totally wrong approach at this? or is it just something I am missing?


(LowLife) #2

The trigger_objective_info needs to have the correct spawnflag set ‘is_healthammocabinet’ so that the correct icon is displayed on the command map.

Be sure to add an origin brush to the TOI entity.

You dont need a script for that.

Check the LDR for further help.


(Occisor) #3

Well according to the LDR:

In order for the health and ammo cabinet to appear on the map a trigger_objective_info entity is required. When the player is near the trigger_objective_info entity a message is displayed on screen. Whatever is defined in the track key is used as the onscreen text message.
Important note: The trigger_objective_info is a brushwork entity and must contain an origin brush; otherwise it will appear half way between its current map position and “0 0 0” map position on the command map.
The trigger_objective_info entity is targeted at a misc_commandmap_marker entity. This entity allows the trigger_objective_info entity to appear on the command map. The trigger_objective_info needs to have the correct spawnflag set ‘is_healthammocabinet’ so that the correct icon is displayed on the command map.

I have my TOI entity (containing a trigger brush and an origin brush) with the following keys:

classname      trigger_objective_info
track      the Supply Cabinets
shortname     Supply Cabinets
target     bunkersupply
spawnflags     32

My command map marker entity has the following keys:

classname     misc_commandmap_marker
targetname     bunkersupply
origin     -5816 -3808 1176

and the supply cabinet icon still doesnt show on the map…is that not what the LDR meant? or am I missing some keys?


(EB) #4

Also mark as both teams objectives in the toi. This will raise the spawnflags of the TOI to 35.

http://maddogs-clan.org/demos/reptile/tutorials/healthammocabs.htm


(Occisor) #5

The spawnflags did it, thanks :slight_smile: