Author Topic: Car spawns in the wall near gas station in Paradiso  (Read 722 times)

0 Members and 1 Guest are viewing this topic.

Offline Hank_Montgomery

  • Original Gangster
  • *
  • Posts: 595
  • Country: ua
  • Respect: +51/-28
  • Bring 2000 vehicle armor health points back again!
    • View Profile
  • MCNR name: Hank_Montgomery
Car spawns in the wall near gas station in Paradiso
« on: July 25, 2022, 02:27:03 pm »
0:55 car spawns in the concrete fence wall. PLease, fix the mapping

Offline Mike

  • Server Owner
  • *
  • Posts: 3699
  • Country: gb
  • Respect: +413/-71
  • Gender: Male
    • View Profile
  • MCNR name: Mike
  • Discord name: mp2
Re: Car spawns in the wall near gas station in Paradiso
« Reply #1 on: August 01, 2022, 08:09:57 pm »
I need to rework the way I calculate if a spawn location is suitable or not.

Here's how it currently works...

This is the nodes in that location:


It selects whatever node it selects, and first will try and spawn the vehicle on the left side of the road, then the right, then the middle.
It will reject a spawn location if there is an obstacle ABOVE it, which is fine if there's a solid wall to the sides, but with a thin wall like this, there's no obstacle above unless the position ends up being inside the tiny wall.

Instead of doing that, I need to do a line-of-sight ray trace from the middle to the side, to check there's no obstacles that way.
I'll change it up and it should work better.
View trailers here.


Offline Ricordi

  • *
  • Posts: 314
  • Country: 00
  • Respect: +9/-16
  • Gender: Male
  • Forum Warrior
    • View Profile
  • MCNR name: 6.$tars
  • Discord name: Stratocaster#6292
  • Crew: K E N S H O
Re: Car spawns in the wall near gas station in Paradiso
« Reply #2 on: August 01, 2022, 08:18:17 pm »
I need to rework the way I calculate if a spawn location is suitable or not.

Here's how it currently works...

This is the nodes in that location:


It selects whatever node it selects, and first will try and spawn the vehicle on the left side of the road, then the right, then the middle.
It will reject a spawn location if there is an obstacle ABOVE it, which is fine if there's a solid wall to the sides, but with a thin wall like this, there's no obstacle above unless the position ends up being inside the tiny wall.

Instead of doing that, I need to do a line-of-sight ray trace from the middle to the side, to check there's no obstacles that way.
I'll change it up and it should work better.
Keep going god
stratosign-V2-1" border="0


Offline Mike

  • Server Owner
  • *
  • Posts: 3699
  • Country: gb
  • Respect: +413/-71
  • Gender: Male
    • View Profile
  • MCNR name: Mike
  • Discord name: mp2
Re: Car spawns in the wall near gas station in Paradiso
« Reply #3 on: April 26, 2023, 04:47:29 pm »
Improved in 1.15
View trailers here.