diff --git a/FixPointTeleport/scripting/FixPointTeleport.sp b/FixPointTeleport/scripting/FixPointTeleport.sp index 81d2b6ad..63bb47d5 100644 --- a/FixPointTeleport/scripting/FixPointTeleport.sp +++ b/FixPointTeleport/scripting/FixPointTeleport.sp @@ -4,6 +4,8 @@ #include #include +#define SF_WEAPON_START_CONSTRAINED (1<<0) + Handle hFallInit; Handle hTeleport; @@ -90,6 +92,10 @@ public MRESReturn OnEntityTeleport(int entity, Handle hParams) { if (IsValidEntity(entity)) { + // Dont reinitialize, if we dont spawnflags or are missing the start constrained spawnflag. + if (!HasEntProp(entity, Prop_Data, "m_spawnflags") || (GetEntProp(entity, Prop_Data, "m_spawnflags") & SF_WEAPON_START_CONSTRAINED) == 0) + return; + SDKCall(hFallInit, entity); } } \ No newline at end of file