November 28, 2021, 08:49:22 am

The Gang Garrison 2 Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

NOTICE: Due to a rise in bot activity, new posters need to be approved before posting.

Join the community Discord server!

Pages: [1]

Author Topic: Fix speed-related clipping issue - why not  (Read 1176 times)

bullets (obviously)

  • Seasoned Member
  • *****
  • Karma: 40
  • Offline Offline
  • Posts: 1962
Fix speed-related clipping issue - why not
« on: April 11, 2018, 01:41:13 am »

just shoot a hitscan (ignoring players) in the trajectory of flares/rockets since they're the only ones that clip

and detonate at the hitscan destination if it doesn't hit anyone
Logged

Phantom Brave

  • All Hail Classicwell
  • Moderator
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12701
  • Another one --
Re: Fix speed-related clipping issue - why not
« Reply #1 on: April 11, 2018, 04:47:56 am »

they were talking about character movement, not projectiles
Logged

http://steamcommunity.com/id/wareya/
ladies and gentlemen i would like to announce that the fact of the matter is up that the fact of the matter is a fact and it matters

bullets (obviously)

  • Seasoned Member
  • *****
  • Karma: 40
  • Offline Offline
  • Posts: 1962
Re: Fix speed-related clipping issue - why not
« Reply #2 on: April 11, 2018, 09:00:02 am »

wait but why not actually do this in vanilla where rockets/flares actually clip
Logged

Saniblues

  • Onion Knight
  • Administrator
  • *****
  • Karma: -1305
  • Offline Offline
  • Posts: 12416
Re: Fix speed-related clipping issue - why not
« Reply #3 on: April 11, 2018, 08:46:50 pm »

performing hitscan checks every frame is expensive. sprite-based collision checking is far less resource hungry and gets the job done just as well, along with being more accurate
Logged
Quote from: mop
Quote from: MR MAGN3TIC
I don't like it.  :nah:
Oh, well, you might as well pack up and stop now, because he doesn't like it
I'm bored out of my skull, Lets play a different game!
Lets take a visit down below And cast the world in flames!

bullets (obviously)

  • Seasoned Member
  • *****
  • Karma: 40
  • Offline Offline
  • Posts: 1962
Re: Fix speed-related clipping issue - why not
« Reply #4 on: April 12, 2018, 02:06:23 am »

not every frame
once when the projectile is spawned, run a hitscan that hits map, ignores characters

this hitscan line is now the path of the projectile over its maximum possible lifetime
if the projectile doesn't collide with a character normally then collide it when you reach the end of the path

this only works with rocket and flare which are not subject to gravity
Logged

PrOF

  • Full Member
  • ***
  • Karma: 43
  • Offline Offline
  • Posts: 597
  • Sometimes a dev. Only sometimes
Re: Fix speed-related clipping issue - why not
« Reply #5 on: April 12, 2018, 10:51:02 am »

You can get a "hitscan" curve easily, given the mine's trajectory​ calculation
Logged

bullets (obviously)

  • Seasoned Member
  • *****
  • Karma: 40
  • Offline Offline
  • Posts: 1962
Re: Fix speed-related clipping issue - why not
« Reply #6 on: April 12, 2018, 03:26:07 pm »

mines and bullets don't clip and i'm going for minimum effort to implement here
so that there's a chance the devs actually do it :^)
Logged

Spazz

  • Seasoned Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 1933
  • Almost too much seasoning.
Re: Fix speed-related clipping issue - why not
« Reply #7 on: April 12, 2018, 05:25:23 pm »

Mines clip though any 1px entity wall
Logged

<3 Bustatunez

bullets (obviously)

  • Seasoned Member
  • *****
  • Karma: 40
  • Offline Offline
  • Posts: 1962
Re: Fix speed-related clipping issue - why not
« Reply #8 on: April 13, 2018, 01:35:04 pm »

oh right lmao
i mean the way people have been fixing that is making teamdoors/bulletwalls 2px min
Logged

MedO

  • Owns this place
  • *****
  • Karma: 151
  • Offline Offline
  • Posts: 1751
Re: Fix speed-related clipping issue - why not
« Reply #9 on: April 27, 2018, 04:05:30 am »

Um, as far as I know I fixed all projectile clipping problems in 2.9, at least for walls >= 1 map pixel in width. Are you working on old assumptions or have you actually seen projectile clipping since then?
Logged
Quote from: Alfred North Whitehead
It is the business of the future to be dangerous; and it is among the merits of science that it equips the future for its duties.

Quote from: John Carmack
[...] if you have a large enough codebase, any class of error that is syntactically legal probably exists there.
Pages: [1]
 

Page created in 0.04 seconds with 36 queries.