Author Topic: Make each client generate the same pseudorandom sway for minigun bullets.  (Read 2061 times)

0 Members and 1 Guest are viewing this topic.

Offline 8th_account

  • Soldier
  • **
  • Posts: 237
  • Munitions Support
This is an extension of how Soldat handles the minigun over the network. Currently, according to MM, a packet indicating that you are firing your minigun is sent to the server and distributed to all other clients. You, the server and all other clients will spit out bullets with different pseudorandom sway until a packet indicating that you have stopped firing is received. This method is used to prevent the minigun from flooding everyone with hundreds of "bullet" packets, due to its high rate of fire. The drawback is that the bullet spread you see isn't necessarily the same as that the server sees when checking if bullets have hit other players.

To solve this, the player that sends an "I'm shooting now" packet should also send an integer (provided by some tick/millisecond counter) that will act as an initial seed to be associated with that player when generating the pseudorandom sway of his minigun's bullets. The server and every client would thus be able to generate the same sway.

Offline STM1993

  • Rainbow Warrior
  • *****
  • Posts: 2072
  • It's been a long time.
This is a very sensible and strong reasoning on improving the minigun's bullet/lag problems. I see no reason why it should be refuted.

A very strong F12.

Offline Rook_PL

  • Soldier
  • **
  • Posts: 242
One of the best improvement ideas form a long time. Double F12!

Offline |_ancer

  • Soldier
  • **
  • Posts: 153
  • again and again.
Stop the laggy problems to Soldat. F12

Offline GSx_Major

  • Major
  • *
  • Posts: 97
F12!
...and headbutt the sucker through your banana suit!

Offline homerofgods

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2029
  • We can do better!
F12 why not?

Offline LtKillroy

  • Flagrunner
  • ****
  • Posts: 779
  • Killroy was here
Why wouldn't we add this?
L'audace, l'audace, toujours l'audace

Offline L[0ne]R

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2079
  • need a life. looking for donors.
In case a miracle happens and this fix will even be considered for adding in the next year or two..

F12

Offline iDante

  • Veteran
  • *****
  • Posts: 1967
I've never noticed it. When you fire a minigun you don't care which bullets hit, just that bullets are hitting. Even if the spread is different, you should still be hitting a similar number of bullets, especially as you get closer to your target.

Plus who uses minigun for serious killing?

If it can be done easily then by all means it should be done, but it seems pretty trivial imo.
« Last Edit: August 24, 2009, 02:49:31 pm by iDante »

Offline scarface09

  • Veteran
  • *****
  • Posts: 1153
  • Arsenal Supporter For Life
Yeah sounds cool.
Football is the other face of the world. If you don't like it, then you can get the hell out!