Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setPedControlState #779

Open
Ambassador64 opened this issue Jan 16, 2019 · 1 comment
Open

setPedControlState #779

Ambassador64 opened this issue Jan 16, 2019 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@Ambassador64
Copy link

Ambassador64 commented Jan 16, 2019

The bug.
On my client when I fire without aiming with weapons that can be dual wielded, (LMB only, not RMB) it will look normal on my screen but for most players that have see me on their screens they see that I am not aiming straight. The same goes for everybody else who just holds LMB, it will look normal on their screens but for people who see them, they will look bugged out.

The same happens with NPC's, they're able to shoot their targets just fine but their arms will not point towards their target.

Steps to reproduce the behavior for yourself.

  1. Ask a friend to hold LMB only.
  2. Look at them

Steps to reproduce the behavior for others.

  1. Ask a friend to look at you.
  2. Hold LMB.
  3. Ask if you are shooting straight on their screen.

Steps to reproduce the behavior for most.

  1. Download my resource below
  2. Spawn a NPC by typing "/ped" or just "ped" in the console
  3. Type "/attack " or "attack " in the console. Obviously is just indicating that you can put your username as an argument.
  4. (not really a step but a note) If you switch targets by typing /attack again then the script will bug out due to a timer bug I haven't fixed yet, you'll just have to restart the resource to repeat the steps again.

npc.txt server
npc_client.txt client
meta.xml.txt meta.xml

Expected behavior.
Arms not pointing in the right direction in the fire state.

Screenshots.

The first 2 screenshots are from a Dev server. The first screenshot looks like he's aiming back but he's not. I probably should of asked him to shoot me to have blood coming out like in the fourth screenshot.
mta-screen_2019-01-14_22-03-51
mta-screen_2019-01-14_22-05-45
The next one is from CIT.
mta-screen_2019-01-14_17-04-45
This one is from my server.
mta-screen_2019-01-14_13-40-16
This one is also from my server but from NPC's that aren't moving. This is from a separate resource that I haven't mostly made but still produces the same result.
mta-screen_2019-01-15_23-04-36
This screenshot was from my friends perspective, it's a horrible picture and I even thought it wasn't real "proof" but I noticed a bullet is in the bottom right of the screen, proving that I was shooting straight, but my arms weren't straight. You can barely see the bullet but it's there.
20190116_010706

Version.

  • The MTA version of my client is x64 1.5.6 16345.

  • I'm using Windows 10 on a MacBook Pro with bootcamp. It's not VM but it is a separate partition.

  • The client OS of my computer is Windows 10 x64.

  • My MTA version of my server is x64 1.5.6 16345.

  • My MTA server is using x64 Debian Linux as its OS.

  • As for CIT and the Dev server I'm not sure what versions they are using

  • Not exactly sure what the client version of my friend was but from what I remember when I checked, it's not the latest one.

Additional context.
If you want screenshots of confirmation of the versions. I can print out every index/key and value from the table returned from the getVersion() function.

@qaisjp qaisjp added the bug Something isn't working label Jan 16, 2019
@StifflersMom
Copy link

I can confirm this for players, also. Also I thought, weapon flags 0x000001 can disable shooting without aiming - It doesn't.
So the topic of this issue should be "desynced animation while shooting without aiming"

Reproduce with 2 players:
Player A get a Sawn-off shotgun (ID 26) with pro stats and shoot player B with only pressing left mouse button.

@botder botder added this to the Backlog milestone Mar 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants