-void generic_plat_blocked()
+void generic_plat_blocked(entity this)
{
#ifdef SVQC
- SELFPARAM();
if(this.dmg && other.takedamage != DAMAGE_NO)
{
if(this.dmgtime2 < time)
// otherwise, something is fishy...
remove(trigger);
- objerror("plat_spawn_inside_trigger: platform has odd size or lip, can't spawn");
+ objerror(this, "plat_spawn_inside_trigger: platform has odd size or lip, can't spawn");
}
void plat_hit_top(entity this)
}
-void plat_crush()
-{SELFPARAM();
+void plat_crush(entity this)
+{
if((this.spawnflags & 4) && (other.takedamage != DAMAGE_NO))
{ // KIll Kill Kill!!
#ifdef SVQC
{
this.use = func_null;
if (this.state != 4)
- objerror ("plat_use: not in up state");
+ objerror (this, "plat_use: not in up state");
plat_go_down(this);
}
if(!cubic_speedfunc_is_sane(e.platmovetype_start, e.platmovetype_end))
{
- objerror("Invalid platform move type; platform would go in reverse, which is not allowed.");
+ objerror(e, "Invalid platform move type; platform would go in reverse, which is not allowed.");
return false;
}