File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Client/mods/deathmatch/logic
Server/mods/deathmatch/logic/packets Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -3448,6 +3448,13 @@ void CPacketHandler::Packet_EntityAdd(NetBitStreamInterface& bitStream)
34483448 bool bIsDerailable = bitStream.ReadBit ();
34493449 bool bTrainDirection = bitStream.ReadBit ();
34503450 bool bTaxiLightState = bitStream.ReadBit ();
3451+ bool bSmokeTrailEnabled = bitStream.ReadBit ();
3452+
3453+ // Set smoke trail for appropriate vehicles
3454+ if (usModel == 512 || usModel == 513 )
3455+ {
3456+ pVehicle->SetSmokeTrailEnabled (bSmokeTrailEnabled);
3457+ }
34513458
34523459 // If the vehicle has a landing gear, set landing gear state
34533460 if (CClientVehicleManager::HasLandingGears (usModel))
Original file line number Diff line number Diff line change @@ -577,6 +577,7 @@ bool CEntityAddPacket::Write(NetBitStreamInterface& BitStream) const
577577 BitStream.WriteBit (pVehicle->IsDerailable ());
578578 BitStream.WriteBit (pVehicle->GetTrainDirection ());
579579 BitStream.WriteBit (pVehicle->IsTaxiLightOn ());
580+ BitStream.WriteBit (pVehicle->IsSmokeTrailEnabled ());
580581
581582 // Write alpha
582583 SEntityAlphaSync alpha;
You can’t perform that action at this time.
0 commit comments