Health Cabinets (also ammo) - solved!


(Grand_Mister_P) #1

Right well, ive created a misc_cabinet_health with

targetname health_cainet
scriptname health_cabinet
angle 90

then a clip brush with an origin brush over it, and made it a script_mover with:

targetname health_cainet
scriptname health_cabinet
spawnflags 2

then finally a trigger brush over the area of effect with an origin brush, made it a trigger_heal with:

targetname health_cabinet_trigger
scriptname health_cabinet_trigger
healtotal 400
healrate 2

Thats all ive done so far, nothing else. It function as a health cabinet, it heals only 2hp every time, appears to be infinite and the shelves have no medkits on them!!

I want it to heal 20 hp and basically function exactly like the one in goldrush, however looking at the map there, theres a second trigger brush and some other stuff im not sure about how to use!!!

Please can someone tell me what ive done wrong/what ive missed out? Do i need to do some scripting? if so what? Hope one of you can help!

Many thanks


(thegnat) #2

Basically its ok, how you have done it.
You have to target the heal-trigger to the cabinet:

trigger_heal:

target        health_cabinet

To increase the healrate just give it the value 20 instead of 2.

But you are missing the TOI + misc_commandmap_marker stuff to have the cabinets displayed correctly on your commandmap.
Also you should have a look at the LevelDesigners reference by Sock. There is a wonderful explanation how the cabinet-system works HERE

EDIT: I’ve seen that Sock didn’t explained the values of the TOI brushwork. I use the following:

classname     trigger_objective_info
shortname     Health and Ammo Cabinets
track         the Health and Ammo Cabinets
target        targetname of the misc_commandmap_marker
targetname    healthammocabinet1_toi
scriptname    healthammocabinet1_toi
infoAxis      Health and Ammo cabinets can be used as a regroup or meeting point for your squad.
infoAllied    Health and Ammo cabinets can be used as a regroup or meeting point for your squad.
spawnflags    35
customimage   gfx/limbo/cm_healthammo

I might be missing something or have too many values but it works fine for me. :wink:


(Grand_Mister_P) #3

Great, cheers for the help works a treat now :slight_smile: