Ammo-/health-cab in dependence of func_constructible


(nUllSkillZ) #1

Hi,

at the following link you will find a sample map + script (~6KB) for an ammo-/health-cabinet that changes it’s state in dependence of a func_constructible (in case of the sample map an axis constructible):
http://www.nullskillz.de/et/maps/ammohealth_func_constructible/ammohealth_func_constructible.zip

Description:

[ul]
[li]build a normal ammo-/health-cabinet
[/li]every entity of the ammo-/health-cabinet has to have a targetname
[li]build a normal func_constructible
[/li][li]add a misc_gamemodel “models/mapobjects/supplystands/stand_health_damaged.md3”
[/li]it has to have a targetname
[li]add a misc_gamemodel “models/mapobjects/supplystands/stand_ammo_damaged.md3”
[/li]it has to have a targetname
[li]setstate the state of the ammo-/health-cabinet in dependence of the state of the func_constructible
[/li][/ul]

Note:
I’ve only used one script_mover-clip-brush to clip the damaged and the normal ammo-/health-cabinet.

Credit’s:
Splashdamage
Judgment