trigger_transition: filter out "players" in all transitioning modes.

This commit is contained in:
Marco Cawthorne 2024-03-04 20:13:53 -08:00
parent 0c2db7a23a
commit a9b6f9a428
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 6 additions and 5 deletions

View File

@ -81,11 +81,6 @@ trigger_transition::SaveTransition(entity pvsTest, bool usePVS)
if (checkpvs(pvsTest.origin, a) == true) {
replicateEntity = true;
/* these checks are somewhat safe assumptions. */
if (a.classname == "player") {
replicateEntity = false;
}
if (a.classname == "info_landmark") {
replicateEntity = false;
}
@ -100,6 +95,12 @@ trigger_transition::SaveTransition(entity pvsTest, bool usePVS)
replicateEntity = true;
}
/* these checks are somewhat safe assumptions. */
if (a.classname == "player") {
replicateEntity = false;
continueInNextMap = false;
}
/* only carry brushes with a global name */
if (a.m_bIsBrush == true) {
replicateEntity = false;