air unit wrecks colliding with shields

Everything about mods can be found here.

Moderator: Morax

air unit wrecks colliding with shields

Postby Exotic_Retard » 04 Sep 2016, 00:36

hello,
as the title says im trying to make air units collide with shields after they die, so that i can modifiy their crash damage weapons to reduce the damage they do when falling.

would be great if i could get some help with that, since shield collide with only projectiles it seems and i couldnt get it to work.

the air unit is still alive when its falling so i guess i need to change something in OnCollide but i dont know what.

if i could get some pointers or the like i would be very happy, thanks in advance
User avatar
Exotic_Retard
Contributor
 
Posts: 1470
Joined: 21 Mar 2013, 22:51
Has liked: 557 times
Been liked: 626 times
FAF User Name: Exotic_Retard

Re: air unit wrecks colliding with shields

Postby Zock » 04 Sep 2016, 10:21

I want this too :)
gg no re

ohh! what a pretty shining link! https://www.youtube.com/c/Zockyzock
User avatar
Zock
Supreme Commander
 
Posts: 1395
Joined: 31 Aug 2011, 22:44
Has liked: 173 times
Been liked: 397 times
FAF User Name: Zock

Re: air unit wrecks colliding with shields

Postby ZLO_RD » 04 Sep 2016, 11:43

Exotic_Retard wrote:hello,
as the title says im trying to make air units collide with shields after they die, so that i can modifiy their crash damage weapons to reduce the damage they do when falling.


sounds a bit confusing, so if you have a unit standing outside of shield but close to it, and czar wreck falling very close to unit.
then t3 shield will take damage, modify czar damage to 0 and unit outside of shield will not get damaged? (that completely nullifyes splash damage)

maybe they should behave more like projetiles? do damage as soon as they collide with shield? well then if you have t3 shield at 1% of it health then explosion will happen at they top of shield and will not damage anything else (just like it happens with t3 arty shells. that can maybe damage perimeter monitoring system cause it is so tall, but will not damage shorter buildings)

i just want to say that you will have to think a bit more about how exactly you want shields interract with wrecks
http://www.youtube.com/user/dimatularus
http://www.twitch.tv/zlo_rd
TA4Life: "At the very least we are not slaves to the UI"
User avatar
ZLO_RD
Supreme Commander
 
Posts: 2265
Joined: 27 Oct 2011, 13:57
Location: Russia, Tula
Has liked: 303 times
Been liked: 400 times
FAF User Name: ZLO

Re: air unit wrecks colliding with shields

Postby Exotic_Retard » 04 Sep 2016, 12:10

once i get the unit to collide with shields this can be done pretty easy, we can fire off the weapon and so deal damage to the shield, and then set it to 0 (or not 0, we can have the shield absorb only some of the damage if we want), change the unit trajectory so its slower after hitting the shield, (or even have some units bounce off)

the issue im facing is that there is no collision at all between units and shields right now .__.

(at least OnCollisionCheck seems to be not called)
User avatar
Exotic_Retard
Contributor
 
Posts: 1470
Joined: 21 Mar 2013, 22:51
Has liked: 557 times
Been liked: 626 times
FAF User Name: Exotic_Retard

Re: air unit wrecks colliding with shields

Postby Exotic_Retard » 07 Sep 2016, 03:34

well, since no one decided to help poor Retard, i had to do it by myself : (

anyway, observe:

Image

Mighty uef shields effortlessly deflect aircraft by the dozens as they fall out of the sky

Image

yeah, so now shields absorb some crash damage, and make dead air units bounce off!

experimental units fall through, and not all of their crash damage is absorbed either.

so obviously this is for use in equilibrium, but i decided to make a version to submit as a pr as well, heres the code:
eq:
https://github.com/Ithilis/Equilibrium/ ... 2726d68a93
fa:
https://github.com/Exotic-Retard/fa/com ... c748a46fcc
User avatar
Exotic_Retard
Contributor
 
Posts: 1470
Joined: 21 Mar 2013, 22:51
Has liked: 557 times
Been liked: 626 times
FAF User Name: Exotic_Retard

Re: air unit wrecks colliding with shields

Postby Nepty » 07 Sep 2016, 03:50

You actually pulled it off? I'm shocked, good job!
Original join Date: August 21, 2012 | Original FAF account: Cybrankiller | Highest skill rating: 1780
Favorite map: Vale of Isis | Favorite faction: UEF | Favorite opponent: Anaryl | Favorite pro: Chosen
User avatar
Nepty
Avatar-of-War
 
Posts: 213
Joined: 01 Jul 2016, 10:09
Location: America | Florida | Miami
Has liked: 66 times
Been liked: 56 times
FAF User Name: Sapphire

Re: air unit wrecks colliding with shields

Postby Exotic_Retard » 07 Sep 2016, 03:53

Nepty wrote:You actually pulled it off? I'm shocked, good job!

shocked? dont you know that balance terrorists always win?

Image
User avatar
Exotic_Retard
Contributor
 
Posts: 1470
Joined: 21 Mar 2013, 22:51
Has liked: 557 times
Been liked: 626 times
FAF User Name: Exotic_Retard

Re: air unit wrecks colliding with shields

Postby Ithilis_Quo » 08 Sep 2016, 00:09

Spoiler: show
ote="Exotic_Retard"]well, since no one decided to help poor Retard, i had to do it by myself : (

anyway, observe:

Image

Mighty uef shields effortlessly deflect aircraft by the dozens as they fall out of the sky

Image

yeah, so now shields absorb some crash damage, and make dead air units bounce off!

experimental units fall through, and not all of their crash damage is absorbed either.

so obviously this is for use in equilibrium, but i decided to make a version to submit as a pr as well, heres the code:
eq:
https://github.com/Ithilis/Equilibrium/ ... 2726d68a93
fa:
https://github.com/Exotic-Retard/fa/com ... c748a46fcc[/quote


Oh my got
You earn your cookie! I dont need porn anymore looking on bouncing air wreack is enought.
"Fixed in Equilibrium" Washy
User avatar
Ithilis_Quo
Supreme Commander
 
Posts: 1390
Joined: 29 Dec 2012, 15:55
Location: Slovakia
Has liked: 395 times
Been liked: 181 times
FAF User Name: Ithilis

Re: air unit wrecks colliding with shields

Postby XenoInReno » 19 Sep 2016, 21:46

Neat! Is it possible to turn this into a stand-alone mod?
XenoInReno
Crusader
 
Posts: 32
Joined: 14 Oct 2015, 19:41
Has liked: 1 time
Been liked: 2 times
FAF User Name: XenoInReno

Re: air unit wrecks colliding with shields

Postby Exotic_Retard » 21 Sep 2016, 10:42

XenoInReno wrote:Neat! Is it possible to turn this into a stand-alone mod?

well technically yes, but why would you play it without the rest of equilibrium (

is there something you dislike about the rest of the mod?

also theres a reasonable chance of it being integrated into base faf so you might not need a standalone at all
User avatar
Exotic_Retard
Contributor
 
Posts: 1470
Joined: 21 Mar 2013, 22:51
Has liked: 557 times
Been liked: 626 times
FAF User Name: Exotic_Retard

Next

Return to Mods & Tools

Who is online

Users browsing this forum: No registered users and 1 guest