x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to correctly replicate firing a weapon

Hello, I working on a multiplayer shooter using dedicated servers.

Right now, I replicate shooting a weapon (full auto) like that:

Client fires -> Reliable Call On Server -> Server spawns bullet that is set to replicate movement, so everyone sees it

This works fine, except that I am experience a lot of lag/stuttering when shooting weapons with a rate of around 100 rpm, since there are a lot of reliable function calls to the server, but I making them unreliable makes them, well, unreliable and sometimes the weapon doesnt shoot.

What is the best way to replicate full auto shooting? Making an reliable call to server when someone starts firing, and when someone stops firing?

Product Version: UE 4.18
Tags:
more ▼

asked May 08 '18 at 09:51 PM in Blueprint Scripting

avatar image

yeswecamp
38 3 9 15

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I think that if you are using an semi or full auto weapon you should do fire events with linetrace instead of spawning a new actor in every fire event, this should be used only for single (and slow) weapons like snipers, rpgs, etc

more ▼

answered May 12 '18 at 03:12 PM

avatar image

NoNam4_Luiz
1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question