IPB

Welcome Guest ( Log In | Register )


 
Reply to this topicStart new topic
> All-in-one Helipad + Service Depot, UnitRepair=yes + UnitReload=yes + Helipad=yes gets me nowhere
KajiTetsushi
post Nov 16 2010, 05:59 PM
Post #1


Flamethrower Infantry
Group Icon

Group: Members
Posts: 141
Joined: 22-October 06
Member No.: 92



AGENDA
I've thought about going convenient by letting aircraft be able to dock, reload and repair at a Service Depot... or Helipad... or whatever.
In effect, I'll hopefully be able to RTB a damaged, empty helicopter and Oscar Mike it back with full ammo and full health, and by using just one repair bay, gameplay imbalance notwithstanding.


APPROACH
1. I took [GADEPT], then shoved one Helipad=yes up the code.
2. I took [GAHPAD], then threw UnitRepair=yes into the code.
3. I took [ORCA], then changed Dock=GAHPAD,NAHPAD to Dock=GAHPAD,GADEPT.


ANSWER
Effect seems the same whatever I do.
Orca Fighter
100% health + 0% ammo >> Land + Reload + Takeoff.
0% health + 0% ammo >> Land + Repair + Reload + Takeoff.
Stealth Tank
Executable crash
It would've been kinda nice if I could somewhat emulate the RA2 Allied Airforce HQ all-in-one Repair + Reload somewhat for the fun of it, but I'm not getting any.

Is this already proven to not work?

This post has been edited by Chris Ichikawa: Dec 13 2010, 04:52 PM


--------------------
Go to the top of the page
 
: | +Quote Post
Team Black
post Nov 16 2010, 09:57 PM
Post #2


Core Defender
Group Icon

Group: Global Moderators
Posts: 2,841
Joined: 23-October 06
From: New York, U S of A
Member No.: 123
Alliance: GDI
Favorite game: Tiberian Sun



I think I remember a mod once, maybe it was Total War, that gave helipads a repair weapon with range of like .5


--------------------
Go to the top of the page
 
: | +Quote Post
KajiTetsushi
post Nov 17 2010, 08:47 AM
Post #3


Flamethrower Infantry
Group Icon

Group: Members
Posts: 141
Joined: 22-October 06
Member No.: 92



QUOTE (Team Black @ Nov 17 2010, 05:57 AM) *
I think I remember a mod once, maybe it was Total War, that gave helipads a repair weapon with range of like .5

Wait -- I thought it was already proven that buildings can't use such a thing. confused.gif
Tthe engine doesn't have a function for the [BuildingTypes] class to repair other object classes, or so I've heard. dry.gif

Edit: Dug up TSTW's rules.ini. All Helipads are (repair) weaponless. Sorry, TB. tongue.gif

Edit: But yeah, you're right. I can have a healing weapon on a Helipad. The problem with that is that it heals what's around it, but not what landed on it. If I told a damaged, empty Orca to land, it proceeds to reload, but it stops repairing. I can't order it to activate its repair weapon, either. Tried with a damaging weapon and it seems that the attack order also stops working when the aircraft docks with the Helipad.

This post has been edited by Chris Ichikawa: Nov 17 2010, 10:38 AM


--------------------
Go to the top of the page
 
: | +Quote Post
Team Black
post Nov 17 2010, 02:31 PM
Post #4


Core Defender
Group Icon

Group: Global Moderators
Posts: 2,841
Joined: 23-October 06
From: New York, U S of A
Member No.: 123
Alliance: GDI
Favorite game: Tiberian Sun



hmm I guess one more thing you could try is Bittah's method of using particle systems with negative damage.

I haven't done a thing with these yet, so I wouldn't have any helpful advice as to how to implement it.
Also worth trying might be to assign a negative damage to the helipad's active anim - though that might only affect the helipad itself.
If it's possible to assign a particle system to animations, you could also possibly make the animation spawn the negative-damage-particle system, which in turn would heal the heli.

LKO would be a better guy to ask about this, he's done all sorts of stuff with anims and particles and stuff


--------------------
Go to the top of the page
 
: | +Quote Post
Lin Kuei Ominae
post Nov 18 2010, 10:22 AM
Post #5


Stealth Tank
Group Icon

Group: Members
Posts: 1,065
Joined: 14-November 06
From: Germany
Member No.: 281
Alliance: CABAL
Favorite game: Tiberian Sun



I don't think there's a way to do this with anims or PSs, because both would also repair/damage the building.

Using an art.ini anim with negative damage doesn't works. So you're forced to use art.ini debris spawned by the activeanim. However, even if the art.ini debris allow to use a certain warhead (like repair WH with neg verses), the debris still damage the building. Regardless if they have negative damage or positive damage with negative warhead verses and they need at least +1 or -1 damage to use the warhead (with Damage=0 the warhead is ignored).
Thus the building would slowly get destroyed.
You can of course assign a repair particlesystem to the warhead to counter the damage effect of the debris, but this would heal the building also when it got damaged by the enemy.


However i've found a way to give aircraft a selfhealing ability without using the SelfHealing key, which renownedly causes bugs like invincible but constantly rotating aircraft.
You can give the aircraft a special DamageParticleSystem which has negative damage. Since the PS won't hit the unit during the flight, because PS can't hit flying objects, the aircraft will repair only when landed. Thus you get the impression the aircraft gets healed whenever it lands on the helipad. (though only to half strength as then the DamagePS is stopped and it also heals when it lands on normal ground)

This post has been edited by Lin Kuei Ominae: Nov 18 2010, 10:29 AM


--------------------
Co-Leader of Twisted Insurrection
my public units for you
Nod units:____________________________GDI units:
Nod Scorpion__________________________GDI 3A Kodiak
Nod Tachyon Tank______________________GDI Medusa (Triple Cannon Mech)
Nod Goliath___________________________GDI Behemoth (medium size Mech)
Nod Cobra (fast medium mech)__________GDI Battleship Aurora
Nod Siegebot (light MG-Mech)__________GDI Fortress Tower (Heavy Base Defense)
Nod Redeemer (4 legged heavy Cyborg)__GDI Triton (Titan support Mech)
Nod/Scrin WotW Tripod_________________GDI Exciter
______________________________________GDI Ion Charge Collector
Misc and Fun units:
X-Mech Calendar 28 SHP Units
Star Wars Mechs ATAT/ATST
Cyborg Barrack on PPM_________________Mech Factory
Mutant Tiberium Flyer
yt1300 (Millenium Falcon + BIG version)

if you use my units in your mod, please credit me.if you want to use my units on your website please ask me before.
Go to the top of the page
 
: | +Quote Post
SeekSomethingNew
post Nov 18 2010, 12:25 PM
Post #6

Stealth Tank
Group Icon

Group: Members
Posts: 1,025
Joined: 31-October 06
Member No.: 208
Alliance: GDI
Favorite game: Tiberian Sun



Crash? I love crashes, hit me up with a except.txt tongue.gif


--------------------
Go to the top of the page
 
: | +Quote Post
KajiTetsushi
post Nov 18 2010, 01:02 PM
Post #7


Flamethrower Infantry
Group Icon

Group: Members
Posts: 141
Joined: 22-October 06
Member No.: 92



QUOTE (Team Black @ Nov 17 2010, 10:31 PM) *
hmm I guess one more thing you could try is Bittah's method of using particle systems with negative damage.

I haven't done a thing with these yet, so I wouldn't have any helpful advice as to how to implement it.
Also worth trying might be to assign a negative damage to the helipad's active anim - though that might only affect the helipad itself.
If it's possible to assign a particle system to animations, you could also possibly make the animation spawn the negative-damage-particle system, which in turn would heal the heli.

I've tried that already, it doesn't work, but thanks for your suggestion, anyway.smile.gif

--------------------
QUOTE (CCHyper @ Nov 18 2010, 08:25 PM) *
Crash? I love crashes, hit me up with a except.txt tongue.gif

But let's try and keep off .exe hacking here. laugh.gif

--------------------
QUOTE (Lin Kuei Ominae @ Nov 18 2010, 06:22 PM) *
I don't think there's a way to do this with anims or PSs, because both would also repair/damage the building.

Aiiih... Okaaaaay, that's one fun feature down the drain... dry.gif

QUOTE (Lin Kuei Ominae @ Nov 18 2010, 06:22 PM) *
Using an art.ini anim with negative damage doesn't works. So you're forced to use art.ini debris spawned by the activeanim. However, even if the art.ini debris allow to use a certain warhead (like repair WH with neg verses), the debris still damage the building. Regardless if they have negative damage or positive damage with negative warhead verses and they need at least +1 or -1 damage to use the warhead (with Damage=0 the warhead is ignored).
Thus the building would slowly get destroyed.
You can of course assign a repair ParticleSystem to the warhead to counter the damage effect of the debris, but this would heal the building also when it got damaged by the enemy.

I see. I'll try that anyway. So, you're saying that I need some kind of debris that has these?

; art.ini
CODE
; *** Animation Overlays ***
; Active animation for helipad.
[GAHPAD_A]
LoopCount=-1
Spawns=REPAIRDEBRIS
SpawnCount=1

; Damaged active animation for helipad.
[GAHPAD_AD]
LoopCount=-1
Spawns=REPAIRDEBRIS
SpawnCount=1

[REPAIRDEBRIS]
Damage=1
Warhead=RepairWH

; rules.ini
CODE
; *** Warhead Characteristics ***
[RepairWH]
Particle=RepairParticleSys

[MechanicalInverseWH]; [Mechanical] with inversed values
Verses=0%,-100%,-100%,-100%,-100%

; *** Particle Systems ***
[RepairParticleSys]
HoldsWhat=RepairSpark
BehavesLike=Spark; let's just pretend it is

; *** Particles ***
[RepairSpark]
Damage=2; or -2?
Warhead=MechanicalInverseWH
BehavesLike=Spark


QUOTE (Lin Kuei Ominae @ Nov 18 2010, 06:22 PM) *
However i've found a way to give aircraft a selfhealing ability without using the SelfHealing key, which renownedly causes bugs like invincible but constantly rotating aircraft.

Yeah, I know... I discovered that waaaay back then. tongue.gif The aircraft just continues on flying and tumbling because it repairs itself by 1 unit of RepairStep whenever its Strength=0. laugh.gif

QUOTE (Lin Kuei Ominae @ Nov 18 2010, 06:22 PM) *
You can give the aircraft a special DamageParticleSystem which has negative damage. Since the PS won't hit the unit during the flight, because PS can't hit flying objects, the aircraft will repair only when landed. Thus you get the impression the aircraft gets healed whenever it lands on the helipad. (though only to half strength as then the DamagePS is stopped and it also heals when it lands on normal ground)

Compromise, compromise... Oh, well, I'll try that, too. All I actually wanted was to prevent the aircraft from SelfHealing=yes while flying.

This post has been edited by Chris Ichikawa: Nov 18 2010, 02:38 PM


--------------------
Go to the top of the page
 
: | +Quote Post
Nyerguds
post Dec 7 2010, 11:06 AM
Post #8


Cyborg
Group Icon

Group: Members
Posts: 370
Joined: 22-October 06
From: Flanders (Belgium)
Member No.: 97
Alliance: Nod
Favorite game: Tiberian Dawn



QUOTE (Chris Ichikawa @ Nov 18 2010, 02:02 PM) *
But let's try and keep off .exe hacking here. laugh.gif

Odd statement. Any insight into the problems that occur when trying this could possible lead to a solution that DOES work, even without hacking. and I see nothing wrong with giving him the opportunity to fix a bug, since he's working on a patch.

This post has been edited by Nyerguds: Dec 7 2010, 11:07 AM


--------------------
Go to the top of the page
 
: | +Quote Post
KajiTetsushi
post Dec 13 2010, 04:50 PM
Post #9


Flamethrower Infantry
Group Icon

Group: Members
Posts: 141
Joined: 22-October 06
Member No.: 92



QUOTE (Nyerguds @ Dec 7 2010, 07:06 PM) *
Odd statement. Any insight into the problems that occur when trying this could possible lead to a solution that DOES work, even without hacking. and I see nothing wrong with giving him the opportunity to fix a bug, since he's working on a patch.

Quite frankly, I can't tell whether Hyper's being serious or just pulling my leg.


--------------------
Go to the top of the page
 
: | +Quote Post
Nyerguds
post Dec 14 2010, 07:43 AM
Post #10


Cyborg
Group Icon

Group: Members
Posts: 370
Joined: 22-October 06
From: Flanders (Belgium)
Member No.: 97
Alliance: Nod
Favorite game: Tiberian Dawn



He's absolutely serious. He's been researching the C&C game engines for years, focusing on the TS one. He taught me pretty much everything I know about hacking, and helped me to start the C&C95 patch 1.06 project.


--------------------
Go to the top of the page
 
: | +Quote Post
Devastator
post Dec 21 2010, 11:56 PM
Post #11


Commando
Group Icon

Group: Members
Posts: 543
Joined: 20-February 10
From: The United States
Member No.: 1,799
Alliance: GDI
Favorite game: Tiberian Sun



QUOTE (Nyerguds @ Dec 14 2010, 02:43 AM) *
He's absolutely serious. He's been researching the C&C game engines for years, focusing on the TS one. He taught me pretty much everything I know about hacking, and helped me to start the C&C95 patch 1.06 project.


Now Hyper is a teacher too? Maybe he is a professional C&C hacker now.

Ontopic:I've looked over this idea and it didn't seem to work for me either.


--------------------
Go to the top of the page
 
: | +Quote Post
Nyerguds
post Jan 1 2011, 11:54 PM
Post #12


Cyborg
Group Icon

Group: Members
Posts: 370
Joined: 22-October 06
From: Flanders (Belgium)
Member No.: 97
Alliance: Nod
Favorite game: Tiberian Dawn



Now? He's been helping me for more than 3 years...


--------------------
Go to the top of the page
 
: | +Quote Post
KajiTetsushi
post Jan 11 2011, 06:26 PM
Post #13


Flamethrower Infantry
Group Icon

Group: Members
Posts: 141
Joined: 22-October 06
Member No.: 92



QUOTE (Lin Kuei Ominae @ Nov 18 2010, 06:22 PM) *
You can give the aircraft a special DamageParticleSystem which has negative damage. Since the PS won't hit the unit during the flight, because PS can't hit flying objects, the aircraft will repair only when landed. Thus you get the impression the aircraft gets healed whenever it lands on the helipad. (though only to half strength as then the DamagePS is stopped and it also heals when it lands on normal ground)

I tried it, LKO. It doesn't work. sad.gif

I mean... I put Damage=-10 into a new spark particle and used it. I get the spark, but no damage or inverse damage.
This gameplay mechanic doesn't seem to be looking so well...

This post has been edited by Chris Ichikawa: Jan 11 2011, 06:27 PM


--------------------
Go to the top of the page
 
: | +Quote Post
SeekSomethingNew
post Jan 17 2011, 01:20 PM
Post #14

Stealth Tank
Group Icon

Group: Members
Posts: 1,025
Joined: 31-October 06
Member No.: 208
Alliance: GDI
Favorite game: Tiberian Sun



QUOTE (Nyerguds @ Jan 1 2011, 11:54 PM) *
Now? He's been helping me for more than 3 years...

Its been that long already? ohmy.gif


--------------------
Go to the top of the page
 
: | +Quote Post
Lin Kuei Ominae
post Jan 17 2011, 02:23 PM
Post #15


Stealth Tank
Group Icon

Group: Members
Posts: 1,065
Joined: 14-November 06
From: Germany
Member No.: 281
Alliance: CABAL
Favorite game: Tiberian Sun



QUOTE (Chris Ichikawa @ Jan 11 2011, 07:26 PM) *
I tried it, LKO. It doesn't work. sad.gif

I mean... I put Damage=-10 into a new spark particle and used it. I get the spark, but no damage or inverse damage.
This gameplay mechanic doesn't seem to be looking so well...

That's because Particles with BehavesLike=Spark, Smoke, Web or WeakGas can't do any damage. You have to use BehavesLike=Gas or Fire on the Particle.

Here's a working example code
CODE
[ParticleSystems]
xx=AirCraftHealSys

[Particles]
xx=AirCraftHealP

;LKO: add this PS to an Aircrafts DamagePS so it heals slowly itself when landed
;use this instead of bugged SelfHealing=yes
[AirCraftHealSys]
HoldsWhat=AirCraftHealP
BehavesLike=Spark
ParticleCap=2
SparkSpawnFrames=1
SpawnSparkPercentage=100

[AirCraftHealP]
Image=none
MaxDC=1
MaxEC=10
Translucency=0
Damage=-1
Warhead=FirestormWH
BehavesLike=Gas


This post has been edited by Lin Kuei Ominae: Jan 17 2011, 02:26 PM


--------------------
Co-Leader of Twisted Insurrection
my public units for you
Nod units:____________________________GDI units:
Nod Scorpion__________________________GDI 3A Kodiak
Nod Tachyon Tank______________________GDI Medusa (Triple Cannon Mech)
Nod Goliath___________________________GDI Behemoth (medium size Mech)
Nod Cobra (fast medium mech)__________GDI Battleship Aurora
Nod Siegebot (light MG-Mech)__________GDI Fortress Tower (Heavy Base Defense)
Nod Redeemer (4 legged heavy Cyborg)__GDI Triton (Titan support Mech)
Nod/Scrin WotW Tripod_________________GDI Exciter
______________________________________GDI Ion Charge Collector
Misc and Fun units:
X-Mech Calendar 28 SHP Units
Star Wars Mechs ATAT/ATST
Cyborg Barrack on PPM_________________Mech Factory
Mutant Tiberium Flyer
yt1300 (Millenium Falcon + BIG version)

if you use my units in your mod, please credit me.if you want to use my units on your website please ask me before.
Go to the top of the page
 
: | +Quote Post
KajiTetsushi
post Jan 20 2011, 11:12 AM
Post #16


Flamethrower Infantry
Group Icon

Group: Members
Posts: 141
Joined: 22-October 06
Member No.: 92



QUOTE (Lin Kuei Ominae @ Jan 17 2011, 10:23 PM) *
That's because Particles with BehavesLike=Spark, Smoke, Web or WeakGas can't do any damage. You have to use BehavesLike=Gas or Fire on the Particle.

Yup. The code works. Thanks, LKO. =)
I think it's an interesting feature when it's used on mechanical units. It makes SelfHealing=yes on ground units less boring to watch.
BehavesLike=Fire doesn't work based on my observations, though. Apparently, it only works on weapons.

---------

Also, I still don't understand this part.
QUOTE (Lin Kuei Ominae @ Nov 18 2010, 06:22 PM) *
I don't think there's a way to do this with anims or PSs, because both would also repair/damage the building.

Using an art.ini anim with negative damage doesn't works. So you're forced to use art.ini debris spawned by the activeanim. However, even if the art.ini debris allow to use a certain warhead (like repair WH with neg verses), the debris still damage the building. Regardless if they have negative damage or positive damage with negative warhead verses and they need at least +1 or -1 damage to use the warhead (with Damage=0 the warhead is ignored).
Thus the building would slowly get destroyed.
You can of course assign a repair particlesystem to the warhead to counter the damage effect of the debris, but this would heal the building also when it got damaged by the enemy.

So, does that mean that whatever weapons the enemy uses will not damage, but instead, repair the building?

This post has been edited by Chris Ichikawa: Jan 20 2011, 12:05 PM


--------------------
Go to the top of the page
 
: | +Quote Post
Lin Kuei Ominae
post Jan 21 2011, 09:03 PM
Post #17


Stealth Tank
Group Icon

Group: Members
Posts: 1,065
Joined: 14-November 06
From: Germany
Member No.: 281
Alliance: CABAL
Favorite game: Tiberian Sun



No, the enemy will normally damage the building. But the building would repair itself for free (without the manual wrench repair order), because the particlesystem that is used to undo the damage of the art.ini debris, would give the building more hitpoints than the amount which the debris has taken away.
e.g.
The art.ini debris will always do 1 damage to the building (so the warhead works and can repair the unit landed on the pad).
Thus the warhead used by the debris, creates a repair particlesystem.
However the randomness of the PS causes it to repair more than 1 hitpoint. This randomness also prevents to make the PS repair exact 1 hitpoint, thus it has to be a tad more than the damage, or the building would destroy itself slowly.

This post has been edited by Lin Kuei Ominae: Jan 21 2011, 09:04 PM


--------------------
Co-Leader of Twisted Insurrection
my public units for you
Nod units:____________________________GDI units:
Nod Scorpion__________________________GDI 3A Kodiak
Nod Tachyon Tank______________________GDI Medusa (Triple Cannon Mech)
Nod Goliath___________________________GDI Behemoth (medium size Mech)
Nod Cobra (fast medium mech)__________GDI Battleship Aurora
Nod Siegebot (light MG-Mech)__________GDI Fortress Tower (Heavy Base Defense)
Nod Redeemer (4 legged heavy Cyborg)__GDI Triton (Titan support Mech)
Nod/Scrin WotW Tripod_________________GDI Exciter
______________________________________GDI Ion Charge Collector
Misc and Fun units:
X-Mech Calendar 28 SHP Units
Star Wars Mechs ATAT/ATST
Cyborg Barrack on PPM_________________Mech Factory
Mutant Tiberium Flyer
yt1300 (Millenium Falcon + BIG version)

if you use my units in your mod, please credit me.if you want to use my units on your website please ask me before.
Go to the top of the page
 
: | +Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 28th March 2024 - 01:08 PM


XGhozt.com