Charon Posted February 7, 2023 Posted February 7, 2023 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.
Sketch Posted February 7, 2023 Posted February 7, 2023 (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: Here's the group (not a mission) that you can put into your mission file or reverse engineer: HardToKillArtillery.zip Edited February 7, 2023 by Sketch 1
Charon Posted February 8, 2023 Author Posted February 8, 2023 Oh wow. What a comprehensive answer, thank you!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now