Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Players versus AI
Re: Players versus AI [message #319744 is a reply to message #318964] Fri, 29 February 2008 02:38 Go to previous messageGo to next message
Veyrdite is currently offline  Veyrdite
Messages: 1471
Registered: August 2006
Location: Australia, Sydney
Karma: 0
General (1 Star)
To make the engies repair the MCT, make a daves arrow right against the front of the MCT with 1hp (or more) less than its total, then attach M03_Repair_Target to it, and attach M03_Repair to the engineer.

Probably not the exact script names, something along those lines.

EDIT:
Renhelp

M03_Engineer_Repair
Unit with attached script will attempt to repair objects with "M03_Engineer_Target" attached to them when they are damaged.

M03_Engineer_Target
Object that objects with "M03_Engineer_Repair" attached will attempt to repair.


WOL: Veyrdite Previously: Dthdealer ( a long time ago )

[Updated on: Fri, 29 February 2008 02:42]

Report message to a moderator

Re: Players versus AI [message #319765 is a reply to message #319744] Fri, 29 February 2008 06:34 Go to previous messageGo to next message
The Executor is currently offline  The Executor
Messages: 464
Registered: February 2008
Location: Eastern Coast, USA
Karma: 0
Commander
Yes but the problem with that is once it repairs the arrow then there is no way for the arrow can take damage. So if the building takes damage then the bot would not repair it because it is only repairing the arrow, which is at full hp already and can't take any damage. So you would probley would need to attach another script to the building controller that sends info to the arrow telling to take damage according to the building controllers needs.

Imperial Class Super Star Destroyer
http://l.yimg.com/us.yimg.com/i/us/wrlds/strwrs/gr/hdrs/super-star-destroyer-1.jpg

Quote:

"Fear will keep these systems inline, fear of this battle station!"

-Grand Admiral Moff Tarkin



Re: Players versus AI [message #319783 is a reply to message #319765] Fri, 29 February 2008 08:47 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3806
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
Thats why I am building special scripts for it.

Re: Players versus AI [message #319793 is a reply to message #319783] Fri, 29 February 2008 10:13 Go to previous messageGo to next message
The Executor is currently offline  The Executor
Messages: 464
Registered: February 2008
Location: Eastern Coast, USA
Karma: 0
Commander
Thumbs Up

Imperial Class Super Star Destroyer
http://l.yimg.com/us.yimg.com/i/us/wrlds/strwrs/gr/hdrs/super-star-destroyer-1.jpg

Quote:

"Fear will keep these systems inline, fear of this battle station!"

-Grand Admiral Moff Tarkin



Re: Players versus AI [message #319837 is a reply to message #319765] Fri, 29 February 2008 13:40 Go to previous messageGo to next message
The Elite Officer is currently offline  The Elite Officer
Messages: 602
Registered: September 2007
Location: Chapel Hill, North Caroli...
Karma: 0
Colonel
MSwindows wrote on Fri, 29 February 2008 08:34

Yes but the problem with that is once it repairs the arrow then there is no way for the arrow can take damage. So if the building takes damage then the bot would not repair it because it is only repairing the arrow, which is at full hp already and can't take any damage. So you would probley would need to attach another script to the building controller that sends info to the arrow telling to take damage according to the building controllers needs.


What he said.^^


The reason Uranus is tilted 90 degrees is because god got angry and kicked it over.....
Re: Players versus AI [message #319853 is a reply to message #319765] Fri, 29 February 2008 16:44 Go to previous messageGo to next message
Veyrdite is currently offline  Veyrdite
Messages: 1471
Registered: August 2006
Location: Australia, Sydney
Karma: 0
General (1 Star)
MSwindows wrote on Sat, 01 March 2008 00:34

Yes but the problem with that is once it repairs the arrow then there is no way for the arrow can take damage. So if the building takes damage then the bot would not repair it because it is only repairing the arrow, which is at full hp already and can't take any damage. So you would probley would need to attach another script to the building controller that sends info to the arrow telling to take damage according to the building controllers needs.

Wha?



  1. If the daves arrow is lets say 1 hp below max, the engineer will always be repairing it.
  2. The daves arrow cannot be repaired or shot itself, as it does not collide with projectiles.
  3. ∴ if it is placed on the front of the mct, the engineer will end up repairing the mct.



WOL: Veyrdite Previously: Dthdealer ( a long time ago )
Re: Players versus AI [message #320140 is a reply to message #319853] Mon, 03 March 2008 10:00 Go to previous messageGo to next message
The Executor is currently offline  The Executor
Messages: 464
Registered: February 2008
Location: Eastern Coast, USA
Karma: 0
Commander
Yes but once the building is repaired and then takes more damage later the bot will not shoot at it again because the arrow is at full hp.

Unless...are you saying that the bot will try to repair the arrow but it can't becuase of the projectiles and will always hit the MCT?


Imperial Class Super Star Destroyer
http://l.yimg.com/us.yimg.com/i/us/wrlds/strwrs/gr/hdrs/super-star-destroyer-1.jpg

Quote:

"Fear will keep these systems inline, fear of this battle station!"

-Grand Admiral Moff Tarkin



Re: Players versus AI [message #320149 is a reply to message #319853] Mon, 03 March 2008 11:00 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3806
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
Dthdealer wrote on Fri, 29 February 2008 16:44

MSwindows wrote on Sat, 01 March 2008 00:34

Yes but the problem with that is once it repairs the arrow then there is no way for the arrow can take damage. So if the building takes damage then the bot would not repair it because it is only repairing the arrow, which is at full hp already and can't take any damage. So you would probley would need to attach another script to the building controller that sends info to the arrow telling to take damage according to the building controllers needs.

Wha?



  1. If the daves arrow is lets say 1 hp below max, the engineer will always be repairing it.
  2. The daves arrow cannot be repaired or shot itself, as it does not collide with projectiles.
  3. ∴ if it is placed on the front of the mct, the engineer will end up repairing the mct.



Script the building controller to repair the arrow when the building reaches full health.


Re: Players versus AI [message #320153 is a reply to message #320149] Mon, 03 March 2008 11:31 Go to previous messageGo to next message
The Executor is currently offline  The Executor
Messages: 464
Registered: February 2008
Location: Eastern Coast, USA
Karma: 0
Commander
What scripts and how do I use them?

Imperial Class Super Star Destroyer
http://l.yimg.com/us.yimg.com/i/us/wrlds/strwrs/gr/hdrs/super-star-destroyer-1.jpg

Quote:

"Fear will keep these systems inline, fear of this battle station!"

-Grand Admiral Moff Tarkin



Re: Players versus AI [message #320154 is a reply to message #320149] Mon, 03 March 2008 11:31 Go to previous messageGo to next message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
Jerad Gray wrote on Mon, 03 March 2008 11:00

Dthdealer wrote on Fri, 29 February 2008 16:44

MSwindows wrote on Sat, 01 March 2008 00:34

Yes but the problem with that is once it repairs the arrow then there is no way for the arrow can take damage. So if the building takes damage then the bot would not repair it because it is only repairing the arrow, which is at full hp already and can't take any damage. So you would probley would need to attach another script to the building controller that sends info to the arrow telling to take damage according to the building controllers needs.

Wha?



  1. If the daves arrow is lets say 1 hp below max, the engineer will always be repairing it.
  2. The daves arrow cannot be repaired or shot itself, as it does not collide with projectiles.
  3. ∴ if it is placed on the front of the mct, the engineer will end up repairing the mct.



Script the building controller to repair the arrow when the building reaches full health.





Another (more complex) way, would be to attach a script (e.g.) "zbl_Obelisk_Repair" to the OB. Have that script report damage to the dave's arrow and deal damage to the dave's arrow with script (e.g.) "zbl_Obelisk_Damage_Repair" and this arrow would have that "M03_Repair_Target" script attached to it. Wink

~Zack
Re: Players versus AI [message #320155 is a reply to message #320154] Mon, 03 March 2008 11:49 Go to previous messageGo to next message
The Executor is currently offline  The Executor
Messages: 464
Registered: February 2008
Location: Eastern Coast, USA
Karma: 0
Commander
Errr I have scripts 2.9 how do I do it with thoes?

Imperial Class Super Star Destroyer
http://l.yimg.com/us.yimg.com/i/us/wrlds/strwrs/gr/hdrs/super-star-destroyer-1.jpg

Quote:

"Fear will keep these systems inline, fear of this battle station!"

-Grand Admiral Moff Tarkin



Re: Players versus AI [message #320164 is a reply to message #320155] Mon, 03 March 2008 12:11 Go to previous message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
MSwindows wrote on Mon, 03 March 2008 11:49

Errr I have scripts 2.9 how do I do it with thoes?



Those don't exist. :v I used them as examples.
Previous Topic: Okay, this that and that, how do I do it.
Next Topic: Custom Scripts
Goto Forum:
  


Current Time: Mon Jul 08 23:05:01 MST 2024

Total time taken to generate the page: 0.00913 seconds