> Recently, I wanted to make the players shoots dependant of their accuracy > and the weapon they carry. I've added a "m_precision // m_accuracy in > english :D" variable to CBasePlayerWeapon and CBasePlayer. I set them > correclty in my Gamerules. So, all right. > > The problem I'm encountering with the CBasePlayer variable is that on the > client side, in CBaseEntity::FireBulletPlayers(...), the CBasePlayer class > isn't set according to the server one. Indeed, pPlayer->m_precision is > always zero on the client whereas it's the normal value for the server's > pPlayer->m_precision ! > > Really annoying... Any idea how I could get around this ?
You'll have to add your new variable to the stuff that gets sent to the client. Remember that things that you add to the server don't get stored on the client unless you send them to the client. There was a thread about delta.lst just a few days ago on this list. See that thread for the details. Jeffrey "botman" Broome _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

