Jump to content

Recommended Posts

Posted

Is there any way to tweak the damage model for things that aren't blocks/bridges/etc?

 

I'd like artillery crew to flee when strafed, as they do now, but I don't want the gun itself to blow up unless hit by bombs or rockets.

Posted (edited)

Yes you can do this.

For each artillery piece do the following:

 

  • Make the artillery invulnerable.
  • Add a fake_block mcu
  • Add a cmd behavior mcu
  • Add a cmd repair mcu
  • Add a timer mcu
  • Set the fake block mcu durability to whatever value you want
  • Set the cmd repair mcu to 'destroy complete'
  • Set the cmd behavior mcu to unchecked invulnerable
  • Set the timer to 100ms

 

To setup the event:

  • Add an onKilledEvent from the fake block to the timer AND the cmd behavior mcu
  • Add an object link to the cmd behavior mcu to the artillery
  • Add a target link from the timer to the cmd repair mcu
  • Add an object link from the cmd repair mcu to the artillery
  • Stack the fake block on top of the artillery vehicle

When the fake block gets destroyed, it will pulse the cmd behavior which will make the artillery vunerable. It will also pulse the timer, which the timer, after 100ms, will pulse the cmd repair mcu that will destroy the artillery completely.

 

 

Here's what a single artillery vehicle would look like:

image.thumb.png.7cdb5813ff9c45703c7efd1a32851554.png

 

  

 

 

Here's the group (not a mission) that you can put into your mission file or reverse engineer: HardToKillArtillery.zip

 

Edited by Sketch
  • Thanks 1
Posted

Oh wow. What a comprehensive answer, thank you!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...