#include "platforms.qh"
+
void generic_plat_blocked(entity this, entity blocker)
{
#ifdef SVQC
void plat_spawn_inside_trigger(entity this)
{
- entity trigger;
vector tmin, tmax;
- trigger = spawn();
+ entity trigger = spawn();
settouch(trigger, plat_center_touch);
set_movetype(trigger, MOVETYPE_NONE);
trigger.solid = SOLID_TRIGGER;
if (!toucher.iscreature)
return;
- if (toucher.health <= 0)
+ if (GetResource(toucher, RES_HEALTH) <= 0)
return;
#elif defined(CSQC)
if (!IS_PLAYER(toucher))
if (!toucher.iscreature)
return;
- if (toucher.health <= 0)
+ if (GetResource(toucher, RES_HEALTH) <= 0)
return;
#elif defined(CSQC)
if (!IS_PLAYER(toucher))
void plat_reset(entity this)
{
- IFTARGETED
+ if(this.targetname && this.targetname != "")
{
setorigin(this, this.pos1);
this.state = STATE_UP;