Login

russian armor

How to make shell explode without hitting the ground

3 Jun 2017, 04:55 AM
#1
avatar of Dreadbot
Donator 11

Posts: 94

I gave the Sexton an airburst barrage ability a while ago, but it has an annoying visual bug that the shells hit the ground at the same time as the airburst explosion happens above them. I would like to make it so the shell stops in the air (and disappears) at the same place where the explosion happens - if this is even possible.
4 Jun 2017, 14:53 PM
#2
avatar of Mr.Smith

Posts: 2636 | Subs: 17

The best way is to give your sexton airburst shells a deathtimer. That way, the shells will disappear before they hit the ground.

Ideally you want to make the shells disappear well after they're no longer practically visible. Then, when the shell actually collides, the effect will make it appear as if it had just entered the screen.

To achieve this, have a look at how mortars fire their mortar flares (the actual flare projectile disapperas into the air).

Just make sure that your sextons fire at a very high angle, so that the shell disappears while it's out of view.
4 Jun 2017, 21:31 PM
#3
avatar of Dreadbot
Donator 11

Posts: 94

I tried setting deathtimer to 1 second (it was 2.5 seconds) and... nothing changed, despite the projectile taking more than 1 second to reach the target. Is there anything else I could try?
4 Jun 2017, 21:47 PM
#4
avatar of Mr.Smith

Posts: 2636 | Subs: 17

Nothing happened, as in the projectile didn't disappear, or nothing happened as in there was no damage caused, etc?
4 Jun 2017, 21:56 PM
#5
avatar of Dreadbot
Donator 11

Posts: 94

I said nothing changed. The shell visibly hits the ground as before.

Edit: Any idea what they did differently in CoH1?
4 Jun 2017, 23:39 PM
#6
avatar of Mr.Smith

Posts: 2636 | Subs: 17

I know next to nothing about CoH1 modding. However, when I asked Nachocheese he tried to explain to me that airburst was implemented different between CoH2 and CoH1

Have a look at this mod:
https://github.com/xxpatch/consmod

And have a look at the projectile for the "elefant_airburst_barrage_weapon_mp" is implemented. I've set both deathtimer and life_time_while alive to 2 (still not sure which one does what).

If your shell doesn't disappear fast enough, set that thing to an even lower duration (e.g., 0.5 secs).

If that doesn't work, then feel free to copy what I did for the Elefant barrage:
- I have one weapon that fires the visible shell (that disappears when it reaches above the intended target)
- I have another weapon that fires an invisible shell that does the actual damage and the explosion visuals
- Finally, I have a 3rd shell that fires once to coordinate the visible and the invisible shells

In my case, the Elefant gun cannot aim high enough to cover all possible ranges. Therefore I had to limit the barrage to 60-70 range to make the visuals "believable".

For your case, the "visible" shell and the "invisible" shell should share the same arc characteristics.

The "visible" shell should die while airborne (you need to see how much time you need for that. The "invisible" shell will have to stay alive (but invisible) until it can collide with the desired target.

To synchronize the shells:
- Make sure that there is no randomness (min aim/reload/whatever time = max)
- set collision to tp_sticky (so that neither shell will collide with anything on their way)

5 Jun 2017, 10:43 AM
#7
avatar of Mr.Smith

Posts: 2636 | Subs: 17

Actually; remove the deathtimer/alive thing I told you earlier (i.e., set them to 0).

Instead, look at the action-apply-ext of the projectile. There's something there that executes to make the shell visible.

You could try wrapping that in a timed action (fire and forget: true) for X seconds, and see if that makes the projectile "disappear" after a while.
6 Jun 2017, 20:48 PM
#8
avatar of Dreadbot
Donator 11

Posts: 94

Well I just tried setting life_time_while_alive to 1 second and it does result in the shell disappearing... and the actual explosion not happening. So I guess I'll need the second, invisible shell like you mentioned.
1 user is browsing this thread: 1 guest

SHOUT IT OUT!

No ProfanityNumber of ShoutsRefresh Shout Box
Lady Xenarra: @Willy Pete The lack of April Fools this year is odd lol
Last Wednesday, 01:34 AM
Willy Pete: @Rosbone not dead yet. when that happens the font will switch to Papyrus :*(
Last Wednesday, 00:16 AM
dasheepeh: it was an honor guys :guyokay:
01 Apr 2025, 20:34 PM
aerafield: yeah I already prepared my "Can't believe there's comic mode for the 10 daily visitors even on this April 1st" :guyokay:
01 Apr 2025, 20:29 PM
Rosbone: @dasheepeh I guess that means this site is officially dead :guyokay:
01 Apr 2025, 20:19 PM
dasheepeh: no comic sans font for april 1st this year?
01 Apr 2025, 19:56 PM
Willy Pete: @Lady Xenarra this you? https://i.imgflip.com/3e4thi.jpg
01 Apr 2025, 02:53 AM
Lady Xenarra: Does anyone else think that USF needs buffs? It feels like they’re on life support sometimes
01 Apr 2025, 02:36 AM
Willy Pete: @Rosbone Ahh I missed that memo. I still think its a bad decision though. Adds frustration for players and isnt gonna make them that much money
27 Mar 2025, 15:46 PM
Rosbone: It is also good they left it free until after the free to play weekend. Points for that.
27 Mar 2025, 09:34 AM
Rosbone: But I agree, the cost to get a full decent Coh game pushing $115 US is not the best idea. Especially when it needs so much more work for casuals.
27 Mar 2025, 09:32 AM
Rosbone: To be fair, it was a thank you to early fans right? They said it was not free for long and it would become a pay DLC at some point.
27 Mar 2025, 09:30 AM
Willy Pete: Re-releasing free DLC so they can charge new players money for it. Brilliant marketing strategy :clap:
27 Mar 2025, 04:31 AM
Soheil: Coh2 still broken server ?
25 Mar 2025, 18:27 PM
Rosbone: Congrats to Relic. Looks like Coh3 has finally usurped Coh2 s the popular Coh. You smell terrific. :snfQuinn:.
24 Mar 2025, 02:46 AM
Nickbn: and again someone else replies. I mean come on guys. Give @adamírcz a chance
22 Mar 2025, 14:00 PM
Willy Pete: @Nickbn you didn't ask a question, and this is a chat box...
20 Mar 2025, 13:11 PM
Nickbn: @Rosbone it's incredibly rude to speak on someone elses behalf, especially when a question is directly adressed to them. I understand your passion for the subject at hand but I want to hear from him.
20 Mar 2025, 10:16 AM
Rosbone: @Nickbn No, I am just saying people should not be using any Relic owned forum since they have proven they ban anyone who says true things about Coh3.
18 Mar 2025, 19:01 PM

Ladders Top 10

  • #
    Steam Alias
    W
    L
    %
    Streak
Data provided by Relic Relic Entertainment

Replay highlight

VS
  • U.S. Forces flag cblanco ★
  • The British Forces flag 보드카 중대
  • Oberkommando West flag VonManteuffel
  • Ostheer flag Heartless Jäger
uploaded by XXxxHeartlessxxXX

Board Info

436 users are online: 436 guests
0 post in the last 24h
9 posts in the last week
72 posts in the last month
Registered members: 53399
Welcome our newest member, Mccaffer
Most online: 2043 users on 29 Oct 2023, 01:04 AM