IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Making a plane unlandable?
Salazar
post 8 Sep 2019, 14:28
Post #1



Group Icon

Group: Members
Posts: 5
Joined: 16 July 2017
Member No.: 15609



I have a couple of questions. Basically, I am trying to create a new general power that spawns in a support plane that I can control.
I have got the controllable support plane and the spawning part down, but the problem is I am able to land the plane at an airfield. So far I have tried giving it PRODUCED_AT_HELIPAD and DRONE tag but neither of them works, the plane still is able to land but this time bugs out at the airfield because it thinks it's a helicopter.

The biggest clue to achieve this is from looking at the Acolyte drone with the Airforce General from the Shockwave mod. After testing it seems the Acolyte is unable to land, no matter how many times you tell the thing to land it doesn't react to the command at all. I want to give that same property to the unit I made, but I cannot for the life for me find out where this behavior is given - I have looked over everything related to the Acolyte drone and found nothing out of the ordinary that gives it this behavior.

The second thing I want to do is to put a limit on how many of this unit I can field at once. Since I am deploying it through a general power and not an airfield/warfactory, I have no idea how to set a limit on this (make the special power itself grayed out while a certain number of this unit is already on the field).

Does anyone have any ideas on how to solve these two issues?
Go to the top of the page
 
+Quote Post
Zeke
post 9 Sep 2019, 1:34
Post #2


The X General
Group Icon

Group: Project Leader
Posts: 2150
Joined: 7 June 2009
From: Philippines
Member No.: 73
Uniqueness is Overrated



1. Instead of making a plane that acts like a chopper, it might be easier to start with a chopper, then make it fly like a plane

2. It can't be done


--------------------
Go to the top of the page
 
+Quote Post
Salazar
post 9 Sep 2019, 2:54
Post #3



Group Icon

Group: Members
Posts: 5
Joined: 16 July 2017
Member No.: 15609



QUOTE (Zeke @ 9 Sep 2019, 2:34) *
1. Instead of making a plane that acts like a chopper, it might be easier to start with a chopper, then make it fly like a plane

2. It can't be done


1) I've tried this. My problem is the "plane" will still be able to land at an airfield, but just not the hangar (it'll land at a helipad when damaged). The behavior I want is for the aircraft to not be able to land AT ALL. The Acolyte drone from Shockwave mod does this, it'll not respond to any commands to land at an airfield even if it is damaged (you get the three green down arrows indicating the command to land, but the Acolyte doesn't respond to this command). I've went through the entire object file for the Acolyte and I cannot for the life for me find where this behavior comes from.

2) What if I make the power a SCIENCE, and make it buildable at an Airfield, but instead of spawning at the hangar of an airfield it's deployed from offmap? Is that possible to achieve? So by all intents and purposes the thing is still a buildable at an Airfield but it just spawns from offmap.


EDIT : Just figured out #1. It was the AIUpdate behavior. The Acolyte drone had "AIUpdateInterface" while I used "JetAIUpdate". Replacing this behavior made it so the plane now doesn't land at the airfield even when given the command to land, even if it is damaged. Now to try to figure out #2...

This post has been edited by Salazar: 9 Sep 2019, 3:05
Go to the top of the page
 
+Quote Post
Omeka88
post 12 Sep 2019, 18:40
Post #4



Group Icon

Group: Members
Posts: 46
Joined: 14 July 2017
From: Roma
Member No.: 15601



maybe you can do that :

make a "unit" lock by the science Special power [like rotr black bear\eca super unit]
said unit will do the OCL for the special power and spawn a self damage on im (you can make a custom armor and say take damage only from fall damage , for avoid kill the command center by mistake)

once it use the ocl say 3 time , will die and left a husk(invisible) with this setting on the Unit and the husk :

MaxSimultaneousOfType = 1
MaxSimultaneousLinkKey = AirRaid //(or anything tou want)

only way i can tink to do a limited use SuperWeapon\General power


--------------------
Go to the top of the page
 
+Quote Post
Salazar
post 14 Sep 2019, 7:41
Post #5



Group Icon

Group: Members
Posts: 5
Joined: 16 July 2017
Member No.: 15609



QUOTE (Omeka88 @ 12 Sep 2019, 19:40) *
maybe you can do that :

make a "unit" lock by the science Special power [like rotr black bear\eca super unit]
said unit will do the OCL for the special power and spawn a self damage on im (you can make a custom armor and say take damage only from fall damage , for avoid kill the command center by mistake)

once it use the ocl say 3 time , will die and left a husk(invisible) with this setting on the Unit and the husk :

MaxSimultaneousOfType = 1
MaxSimultaneousLinkKey = AirRaid //(or anything tou want)

only way i can tink to do a limited use SuperWeapon\General power


Thanks for the reply. The problem I see with this solution (if I understood it correctly) is the OCL object will stay alive even after the unit is dead. I want to be able to build the unit again once the unit dies, not have it limited to one the entire game.

Is there a way to tie an OCL dummy object with the unit that I spawn? So if the unit dies, the OCL dummy object also dies?
Go to the top of the page
 
+Quote Post
Omeka88
post 14 Sep 2019, 17:41
Post #6



Group Icon

Group: Members
Posts: 46
Joined: 14 July 2017
From: Roma
Member No.: 15601



you can put a dummy object tranported by the unit iself
unless the unit spawn by the special power use "Bike logic".

or make the limiter hulk as a self destroy timer

i guess you want the ocl timer restar only after the unit from the SW die
is correct?


--------------------
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: 20 September 2019 - 10:30