Skip to content

Reset vehicle paintjob on respawn and seed cookies after network start - #1278

Closed
AmyrAhmady wants to merge 2 commits into
masterfrom
pr-1213-paintjob-cookie
Closed

AmyrAhmady wants to merge 2 commits into
masterfrom
pr-1213-paintjob-cookie

Conversation

@AmyrAhmady

Copy link
Copy Markdown
Member

Splits the first two commits from #1213 for independent merge. Both commits retain their original authors.

The NPC vehicle death change remains separate for further review.

Vehicle paintjob was not being cleared in _respawn() while all other
modifications (mods, colours, damage) were properly reset, causing the
paintjob to persist after vehicle respawn.

Fixes #1212
… failures

RakPeer::Start() internally calls RakPeer::Disconnect() which resets
RakNet internal state. SeedCookie() was called before Start(), meaning
the seeded cookie was discarded. Clients connecting in the window
between server start and the first onTick() re-seed would fail cookie
validation and have their packets silently ignored (issue #1211).

Also adds an explanatory comment to the paintjob reset fix.
@AmyrAhmady AmyrAhmady closed this Oct 9, 2026
@AmyrAhmady
AmyrAhmady deleted the pr-1213-paintjob-cookie branch October 9, 2026 01:13
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.

ChangeVehiclePaintjob bug Rare connection issue: server responds to query but ignores connection packets (VPN or restarting router fixes it)

2 participants