Mantis - X-Force
|
Viewing Issue Advanced Details |
|
ID:
|
Category:
|
Severity:
|
Reproducibility:
|
Date Submitted:
|
Last Update:
|
1615 |
Raumschiffkampf |
feature |
N/A |
24.07.07 18:16 |
15.11.09 03:00 |
|
Reporter:
|
DirkF |
Platform:
|
|
|
Assigned To:
|
gnfalex |
OS:
|
|
|
Priority:
|
normal |
OS Version:
|
|
|
Status:
|
closed |
Product Version:
|
|
|
Product Build:
|
|
Resolution:
|
fixed |
|
Projection:
|
none |
|
|
|
ETA:
|
none |
Fixed in Version:
|
V0.915b05 |
|
|
Summary:
|
0001615: TUFO.geoscape:Boolean - Ist das UFO dargestellt ja/nein |
Description:
|
Ein Flag mit dem man ein UFO vom Geoscape verschwinden lassen kann, ohne das es gelöscht oder deregistriert wird.
Ob das UFO dann komplett vom Geoscape entfernt ist (d.h. weder Events erhält noch produziert) oder nur unsichtbar (d.h. es produziert keine Events, erhält sie aber) sollte davon abhängig gemacht werden, was einfacher zu programmieren ist |
Steps To Reproduce:
|
|
Additional Information:
|
Hauptsächlich gedacht für simulierte Landemanöver (verschwunden während Bodeneinsatz, danach wieder angezeigt), kann aber auch für andere Zwecke genutzt werden. |
Relationships | duplicate of | 0000642 | closed | | X-Skript | TUFO-Eigenschaft hidden (getarnt) |
|
Attached Files:
|
0001615_try1.zip [^] (106,439 bytes) 13.10.09 15:13
0001615_try2.zip [^] (105,671 bytes) 14.10.09 08:57 |
Notes |
|
(0002579)
|
Jim_Raynor
|
28.07.07 21:38
|
|
MMh. Das einfachste dürfte wohl sein, dass UFO in einer anderen Liste zwischen zu speichern. Aber muss ich mich näher mit beschäftigen. |
|
|
(0004277)
|
gnfalex
|
13.10.09 15:12
|
|
Greetings.
I try some other way:
In 0001615_try1.zip variable 'TUFO.AntiRadarCoat : integer' is added (sorry, I cannot find better name).
Now if AntiradarCoat>0 status Visible for UFO is blocked (and it is become unvisible).
In this state ufo can attack, but cannot be attaked by base or aircraft.
I dont try to forcely target aircraft at hidden ufo, but if hide it during intercept, aircraft return to base.
If set AntiradarCoat to 0 it will again appear on next turn.
Additional effect - base now cannot attack invisible target.
I hope, that this can be used later for 0002056 also (if AntiradarCoat>RadarForce then HideUFO, inScanArea will return RadarForce at this point).
Best regards. |
|
|
(0004278)
|
DirkF
|
13.10.09 19:24
|
|
OK, that'll help, but we have to wait for Natter to see if this can/should be added to the 915B5 or wait for the 917.
The 2056 is partially on-hold because we aren't sure wether that approach is a good one or if we choose another solution (that's one of the reasons why its an internal ticket, visible only inTeam). |
|
|
(0004279)
|
gnfalex
|
14.10.09 08:56
|
|
Greetings.
Thanks.
OK, without 2056 it becomes more accurately: 0001615_try2.zip.
PS. To change to TUFO.Geoscape default value must be true. I try 'AntiRadarCoat :Boolean=True;' but it don't work (error during compiling/build). Sorry, how to change default value of variable?
Best regards |
|
|
(0004280)
|
Natter
|
14.10.09 11:04
|
|
Why:
@@ -118,7 +118,7 @@
ActionButton.Text:=ST0410220002
else if Objekt is TCustomGameMessageData then
ActionButton.Text:=TCustomGameMessageData(Objekt).ButtonCaption
- else if (Objekt is TUFO) or (Objekt is TGround) then
+ else if ((Objekt is TUFO) and TUFO(objekt).Visible) or (Objekt is TGround) then
ActionButton.Text:=ST0311060001;
?
AntiRadarCoat :Boolean=True; won't work, because in Delphi you can only use this syntax for global variables. You should use TUFO.Create for default values.
But I prefer AntiRadarCoat. |
|
|
(0004281)
|
gnfalex
|
14.10.09 13:08
|
|
Greetings
Sorry, this is error. I add this to when work on imposibility of give order to intercept, then the game message is showed (for example, if invisible ufo take aircraft as target), and later forgot to remove. It may not work (I don't check) because of wrong place and now has no sense because exist checkup in order of aircraft (i.e. order may be given, but aircraft not move from base). Please remove this. Sorry.
Best regards |
|
|
(0004282)
|
Natter
|
14.10.09 13:37
|
|
Variante 2 wurde umgesetzt. |
|