Skip to content

Init vehicle no tick (Client)#321

Open
Vitroze wants to merge 8 commits into
StyledStrike:mainfrom
Vitroze:init_vehicle_no_tick
Open

Init vehicle no tick (Client)#321
Vitroze wants to merge 8 commits into
StyledStrike:mainfrom
Vitroze:init_vehicle_no_tick

Conversation

@Vitroze

@Vitroze Vitroze commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Comprehensive optimization of the initialization system for when the player enters and exits the vehicle; this now operates via a network-based system.

I also decided to transmit the vehicle over the network to ensure its arrival, rather than relying on GetVehicle followed by GetParent().

I preferred keeping it in events and making the functions global, since it involves a lot of hooks. If you want to make it local, I would move it to network.

@StyledStrike

Copy link
Copy Markdown
Owner

I also decided to transmit the vehicle over the network to ensure its arrival

I'm pretty sure this was done during the beta, but was undone because the entity can be invalid on the client-side when the server sends it

@Vitroze

Vitroze commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

If you have a test case where the entity becomes invalid, I’d be interested to see it.

The only scenario I can envision, though I’d ​​be surprised if it actually caused an issue, is with instanced systems where you exit with a vehicle (like a garage system): creating the vehicle outside the player's PVS and then placing it inside. I’m skeptical, but it’s worth testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants