if (!toucher.iscreature)
return;
- if (GetResourceAmount(toucher, RESOURCE_HEALTH) <= 0)
+ if (GetResource(toucher, RES_HEALTH) <= 0)
return;
#elif defined(CSQC)
if (!IS_PLAYER(toucher))
if (!toucher.iscreature)
return;
- if (GetResourceAmount(toucher, RESOURCE_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;