Пример #1
0
 public GunFireMessage(P2PMessage msg)
 {
     handedness        = msg.ReadByte();
     firepointPos      = msg.ReadVector3();
     firepointRotation = msg.ReadQuaternion();
     ammoDamage        = msg.ReadFloat();
     projectileMass    = msg.ReadFloat();
     exitVelocity      = msg.ReadFloat();
     muzzleVelocity    = msg.ReadFloat();
 }
Пример #2
0
 public GunFireMessage(P2PMessage msg)
 {
     fireOrigin    = msg.ReadVector3();
     fireDirection = msg.ReadVector3();
     bulletDamage  = msg.ReadFloat();
 }