mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-10 06:34:16 +00:00
fire only on server
This commit is contained in:
parent
49eaf4140f
commit
b1acdecd20
2 changed files with 5 additions and 0 deletions
|
@ -418,6 +418,9 @@ namespace SanAndreasUnity.Behaviours.Peds.States
|
|||
var weapon = ped.CurrentWeapon;
|
||||
|
||||
|
||||
if (!m_isServer)
|
||||
return false;
|
||||
|
||||
if (ped.IsFiring)
|
||||
return false;
|
||||
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
- send aim/fire input to server
|
||||
|
||||
- weapon sound should be 3d
|
||||
|
||||
|
||||
- **vehicle is bumping on clients** - disable (or destroy) wheel colliders, and sync them - this should not be done on local player, see below
|
||||
|
||||
|
|
Loading…
Reference in a new issue