New features and fixes in volfeatures. See details.

Fixed existing volumes not removed after a map change.
Added class editor feature that can modify certain class attributes on players in a volume.
Fixed typo in class attribute name.
Fixed health regeneration timer not stopping if a player were kicked or timed out.
This commit is contained in:
richard
2009-09-27 23:45:17 +02:00
parent 2830eb4c7d
commit 9906376f28
8 changed files with 1734 additions and 38 deletions

View File

@ -43,7 +43,14 @@ VolOnPlayerEnter(client, volumeIndex)
LogEvent(_, LogType_Normal, LOG_DEBUG, LogModule_Volfeatures, "Event", "Player %N entered volume %d.", client, volumeIndex);
// Forward event to features.
new VolumeFeatureTypes:voltype = Volumes[volumeIndex][Vol_Type];
switch (voltype)
{
case VolFeature_ClassEdit:
{
VolClassEditOnPlayerEnter(client, volumeIndex);
}
}
}
/**
@ -64,7 +71,14 @@ VolOnPlayerLeave(client, volumeIndex)
LogEvent(_, LogType_Normal, LOG_DEBUG, LogModule_Volfeatures, "Event", "Player %N left volume %d.", client, volumeIndex);
// Forward event to features.
new VolumeFeatureTypes:voltype = Volumes[volumeIndex][Vol_Type];
switch (voltype)
{
case VolFeature_ClassEdit:
{
VolClassEditOnPlayerLeave(client, volumeIndex);
}
}
}
/**
@ -184,6 +198,10 @@ VolOnDisabled(volumeIndex)
{
VolAnticampDisable(volumeIndex);
}
case VolFeature_ClassEdit:
{
VolClassEditOnDisabled(volumeIndex);
}
}
}