Jump to content

player sync


IIYAMA

Recommended Posts

  • Moderators
Posted

How can I disable specific synced player data?

Like health, armor or oxygen.

I only want the player to sync this for him self.

Will this disable the player health sync? (by cancel health changes)

addEventHandler ( "onClientPlayerDamage", localPlayer, 
function  attacker, weapon, bodypart ) 
    cancelEvent()  
end) 
  

or will there still be send loss data?

Posted

They will stop lose health but still can be killed if he/she in car and car blowed or can be killed by stealth kill(knife,katana)

addEventHandler("onClientPlayerDamage", localPlayer, 
    function(attacker, weapon, bodypart, loss) 
        cancelEvent() 
    end 
) 

so for Stealth kill you can use

addEventHandler("onClientPlayerStealthKill", localPlayer, 
    function (targetPlayer) 
        cancelEvent() 
    end 
) 

  • Moderators
Posted

Thx skipper

But I am talking about bandwidth reduction. (manually)

Like as sample:

1. I got hit by a bullet

2. my health got changed

3. Another player can see my new health.

I want to disable those sneaky streamed data. In my opinion this must be optional.

Health, armor, oxygen, rotation, position, movement, choking,  etc. 

I think I will make a request topic about this.

Posted

I think that you can't disable it since it's default from GTA, anyways, it's always synced by the server.

And why would you disable those things?..

It's always so less data, and btw; you are always in panic about data, wtf dude? MTA is synced enough, even that, the bandwidth usage is very low....

  • Moderators
Posted

Because I want to reduce as much as possible data, like btf3 does. (very stable ping)

It is low, but I did like it to make it ZERO. Because for some players, it isn't that "low".

  • Moderators
Posted

There isn't any sync-interval-setting for player data.

Only for the player keys/location-rotation updates.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...