From 916d4809a97b98c88c30b00390191bf4b523f9b7 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 16 Sep 2010 07:00:27 +0000 Subject: [PATCH] - added Demolisher's APROP_Target/TracerTID submission. SVN r2793 (trunk) --- src/p_acs.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/p_acs.cpp b/src/p_acs.cpp index ff7a95625..930d1d554 100644 --- a/src/p_acs.cpp +++ b/src/p_acs.cpp @@ -2547,6 +2547,8 @@ enum APROP_Notrigger = 23, APROP_DamageFactor = 24, APROP_MasterTID = 25, + APROP_TargetTID = 26, + APROP_TracerTID = 27 }; // These are needed for ACS's APROP_RenderStyle @@ -2786,6 +2788,8 @@ int DLevelScript::GetActorProperty (int tid, int property) } case APROP_Score: return actor->Score; case APROP_MasterTID: return DoGetMasterTID (actor); + case APROP_TargetTID: return (actor->target != NULL) actor->target->tid : 0; + case APROP_TracerTID: return (actor->tracer != NULL) actor->tracer->tid : 0; default: return 0; } } @@ -2817,6 +2821,8 @@ int DLevelScript::CheckActorProperty (int tid, int property, int value) case APROP_JumpZ: case APROP_Score: case APROP_MasterTID: + case APROP_TargetTID: + case APROP_TracerTID: return (GetActorProperty(tid, property) == value); // Boolean values need to compare to a binary version of value