elitepvpers

elitepvpers (https://www.elitepvpers.com/forum/)
-   CO2 Private Server (https://www.elitepvpers.com/forum/co2-private-server/)
-   -   [Request]Info about the GeneralData (https://www.elitepvpers.com/forum/co2-private-server/1051724-request-info-about-generaldata.html)

Mr_PoP 03/06/2011 12:30

[Request]Info about the GeneralData
 
i want to know what should i send as!

Entity_ID,Value_A ,Value_B,Value_C,Value_D,Value_E,

so what is the Entity_ID,value_a etc!!

coz i dont understand how it's working

thnx

pro4never 03/06/2011 21:38

.... The values become VERY obvious the first time you ever try to use them.

Entity ID = the uid of who the effect is happening on.


For example

Player 1 jumps from point 450/450 to point 451/451

In this example you would have the UID = 1 (regardless of who you send the packet to, it needs to go to everyone on the screen nearby them to display the action)

There would be 4 different ushort values being written (the structure changes drastically depending on what you are using it for. it's a very multi purpose packet.)

There's a fromx/fromy/tox/toy ushort offset. I'd suggest making a simple cmd to try the offsets if you aren't sure what they are (or log/structure packets from real co). Shouldn't be too hard to find them and then you can decide later how you want to set up the packet.


To clarify: the structure remains the same... essentially but any examples I've seen often use a uint value where some versions have 2 ushorts and a few other minor changes... So Personally I'd write the packet somewhat like in impulse's/hybrid's sources where you can fill in specific fields... if you are using a different version simply make sure you write to only the offsets you need vs a fixed structure packet.

tanelipe 03/07/2011 11:22

Since you're using C++ to write this you could use unions to achieve the uint/2 ushorts.

PHP Code:

union
    
{
        
DWORD dwValue;
        
struct {
            
WORD dwValueHigh;
            
WORD dwValueLow;
        };
    }; 



All times are GMT +1. The time now is 18:06.

Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.