#pragma once
// generic usage
-const int NOSPLASH = BIT(8); // generic anti-splashdamage spawnflag
const int START_ENABLED = BIT(0);
+const int ON_MAPLOAD = BIT(1);
+const int NOSPLASH = BIT(8); // generic anti-splashdamage spawnflag
// bobbing
const int BOBBING_XAXIS = BIT(0);
// "classname" "target_spawn"
// "message" "fieldname value fieldname value ..."
// "spawnflags"
-// 1 = call the spawn function
-// 2 = trigger on map load
+// ON_MAPLOAD = trigger on map load
float target_spawn_initialized;
.void(entity this) target_spawn_spawnfunc;
void target_spawn_spawnfirst(entity this)
{
entity act = this.target_spawn_activator;
- if(this.spawnflags & 2)
+ if(this.spawnflags & ON_MAPLOAD)
target_spawn_use(this, act, NULL);
}