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:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user