summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s
diff options
context:
space:
mode:
authorMittendrein Markus <maxmitti@gmx.net>2015-09-08 22:13:10 +0200
committerMittendrein Markus <maxmitti@gmx.net>2015-09-08 22:13:10 +0200
commitdc48c50da83a43ec1d5cd464a551d5d07107129b (patch)
treee828e5eb8f27d522daa5f558a281ba82d0f5e9c8 /TemplePushing.c4s
parent32c8a57f8c05104096e9457193f77d0237ab8911 (diff)
downloadtempelschubsen-dc48c50da83a43ec1d5cd464a551d5d07107129b.tar.gz
tempelschubsen-dc48c50da83a43ec1d5cd464a551d5d07107129b.zip
SetVisibility(VIS_Owner | VIS_Allies) for scrolls while aiming and for the aimer, so they can't be seen from enemies with Vertices+Entrance debug mode
Diffstat (limited to 'TemplePushing.c4s')
-rw-r--r--TemplePushing.c4s/System.c4g/Aimer.c8
-rw-r--r--TemplePushing.c4s/System.c4g/Scroll.c7
2 files changed, 14 insertions, 1 deletions
diff --git a/TemplePushing.c4s/System.c4g/Aimer.c b/TemplePushing.c4s/System.c4g/Aimer.c
index 30a30e9..381aa58 100644
--- a/TemplePushing.c4s/System.c4g/Aimer.c
+++ b/TemplePushing.c4s/System.c4g/Aimer.c
@@ -44,4 +44,10 @@ public func Create(object pCommandObject, object pMenuObj, int iStartAngle)
var ret = _inherited(pCommandObject, pMenuObj, iStartAngle);
targetDir = pTargetObject->GetDir();
return ret;
-} \ No newline at end of file
+}
+
+public func Initialize()
+{
+ SetVisibility(VIS_Owner | VIS_Allies);
+ return _inherited(...);
+}
diff --git a/TemplePushing.c4s/System.c4g/Scroll.c b/TemplePushing.c4s/System.c4g/Scroll.c
index f79bb63..3195abc 100644
--- a/TemplePushing.c4s/System.c4g/Scroll.c
+++ b/TemplePushing.c4s/System.c4g/Scroll.c
@@ -15,6 +15,7 @@ public func SpellFailed(id idSpell, object pAimingClonk)
{
// Spell canceled? Give back the scroll
SetActionTargets(0, 0, this);
+ SetVisibility(VIS_All);
SetSpell(idSpell);
if(pAimingClonk && !pAimingClonk->~RejectCollect(GetID(this), this))
{
@@ -39,3 +40,9 @@ public func AvoidFadeOut()
{
return GetAction(this) == "WannaRemove";
}
+
+private func DoMagic(object pByClonk)
+{
+ SetVisibility(GetVisibility(pByClonk), this);
+ return _inherited(pByClonk);
+}