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

Reply
 
Thread Tools Display Modes
  #1  
Old 09-02-2011, 08:30 AM
adonys adonys is offline
Approved Member
 
Join Date: Apr 2010
Posts: 850
Default Players leaving aircraft before OnActorDead triggered solution

There's a simple solution to this problem.

When a player spawns into an airplane, just store that actor-player relation in a list, and on each OnActorDead in which there's no player, scan that list looking to see if there is a player "registered" to it.

Simple stuff
Reply With Quote
  #2  
Old 09-02-2011, 08:57 AM
Madfish Madfish is offline
Approved Member
 
Join Date: Aug 2010
Posts: 423
Default

Great news! But neither did I get what the problem is about nor the solution. Maybe I will as soon as I see it but eventually it'd be better to detail it a bit further?

E.g. a screenshot of the problem and for the solution?

Also I believe you're using the ignore list incorrectly. You are just writing down names in your signature which doesn't ignore anyone - only provoke them and others. It'd be better to add them to your ignore list in your dashboard and delete the list from your signature.
Reply With Quote
  #3  
Old 09-02-2011, 09:03 AM
trumps trumps is offline
Approved Member
 
Join Date: Apr 2010
Location: Western Australia
Posts: 221
Default

Had this happen a couple of times today, I really don't understand it as there are no online stats or other reason for it!
Reply With Quote
  #4  
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
  #5  
Old 09-02-2011, 10:53 AM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

adonys, thank you for a great idea.

If you have this script ready could you share it if you do not mind? I will try asking someone to integrate it into Repka scripts.
Reply With Quote
  #6  
Old 09-02-2011, 11:15 AM
adonys adonys is offline
Approved Member
 
Join Date: Apr 2010
Posts: 850
Default

Don't have any script for it (as I didn't really had time to do any coding in the latest weeks). It's just an idea which came to me while I was thinking about what to do for IL2DCE persistent battlefield

Please feel free to use it and integrate wherever you need it.
Reply With Quote
Reply


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 10:37 AM.


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