Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik: Cliffs of Dover > CoD Multiplayer

CoD Multiplayer Everything about multiplayer in IL-2 CoD

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 09-02-2011, 09:06 AM
adonys adonys is offline
Approved Member
 
Join Date: Apr 2010
Posts: 850
Default

Problem was that, during multiplayer battles, once someone aircraft's get porked, they are hitting the silk, or simply just leave the plane to respawn before the aircraft is destroyed (hitting the ground, etc).

Because all the kill computations are made in the OnActorDead function, when that function is triggered, the player already left the plane, so it isn't in there anymore, and for the code it looks just like a regular AI plane.

That way, you'll only see on server the player X killed an AI in yyy plane.

To counter this, you'll have to remember the plane's id in which each player is flying at the moment the player is spawned on the server, and when an OnActorDead function is triggered as a plane is destroyed, if there's no player in it, verify plane's id in that list first, and if you find it in there, it means the registered player just left the plane before it was destroyed.

So, you can throw a message on the server, saying Payer X killed player Y in yyy plane.

PS: I know how to use the ignore list, and all of them are already in it. I just use that in my signature to let them know, and don't bother to write me anything, as I won't see it and won't respond to it.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:02 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.