Questions tagged [first-person-shooter]

A 3D or pseudo-3D action game genre categorized most famously by its first-person perspective and a bias towards ranged projectile combat.

Filter by
Sorted by
Tagged with
0
votes
0answers
30 views

Why is mouse sensitivity so high in WebGL build?

I made an FPS game in unity3d and exported it to WebGL. When I tested that, however, the mouse sensitivity was quite a bit higher than in the Unity application itself. I used the standard assets ...
1
vote
1answer
47 views

Displaying FPS arms for the local player, and the full body for remote players

I'm wanting to try my hand at making an FPS multiplayer game. If I use arms as the first person model while playing, how do I set it up so that the other players see a full body model, and not just ...
0
votes
0answers
10 views

How to dynamically create unique layerMasks and assign it to the player

My goal here is that each player that joins the game will get a unique layer for their player, that way I can set the first person camera's culling mask to only exclude their own body from rendering, ...
0
votes
1answer
72 views

Why the mouse doesn't move in mouse-look feature of RPG/FPS games?

Description The mouse look (or free look, i.e., move the mouse to change the view/camera) is common in RPG and FPS games. In my cloud game project, I tried to achieve this feature. Before programming, ...
0
votes
0answers
45 views

Clipping walls in Doom-style FPS view

I have two points representing a line, and a player position. I translated and rotated the points around the player, and this works just fine. Next I want to clip the resulting line like Bisqwit did ...
0
votes
1answer
122 views

How do i easily clamp my cameras rotation when using transform.rotate()

I'm making a fps controller, and I'm trying to clamp my cameras x rotation. Here's my code so far: ...
0
votes
1answer
194 views

How do I adjust my rigidbody velocity on a local axes?

I have an fps rigid body script, code listed here: ...
0
votes
0answers
98 views

Simulate mouse input message for free look in fps games

This question was previously asked in stackoverflow where no one gives an answer. I also found a similiar question here, but in my situation, I hook and simulate mouse inputs and send them to the game ...
0
votes
0answers
32 views

How can i do a "Crouch" with only a Character Controller with no rigidbody? [duplicate]

I was following Bracky's fps tutorial but he didn't add crouching as an option. I took a stab at it but came up empty handed. Here is my script for player movement. public class PlayerMovment : ...
0
votes
1answer
39 views

Rotating fps rigid body on the Y axis

I'm currently attempting to make a first person character using a rigid body. I am aware that the character controller exists, but I believe my game will be very physics based so it's better if my ...
0
votes
0answers
33 views

First person camera turning 3D

I know how to make the effect of moving an object on the z axis, and strafing, but how do you make the effect of the view turning, I don't use any 3d libraries or engine
0
votes
0answers
21 views

Handling real projectiles with different FOVs on a first person shooter camera stack

I'm prototyping out a First Person Shooter and I'll admit I have little work experience in the genre (though I've played many of them). I'm using a traditional weapon camera stack in which the main ...
1
vote
0answers
70 views

How to give node sillouhette when behind wall in Godot

I am working on a boss-rush fps game. I want it to be like the eye of cthulu fight from terraria, with the enemy flying towards you and then turning around to try again if it misses. However, in order ...
0
votes
0answers
36 views

hey i just wanna ask if its ok to add ww2 weapons, specifically nazi weapons into a game [duplicate]

I'm making a ww2 thing and I'm using Nazi weapons and I'm not sure if I have to ask the company to use them or if its ok to just add them without any problem. I really just wanna know if its ok ...
1
vote
0answers
58 views

Large values for Rigidbody Velocity (UNITY3D)

I'm making a simple FPS game. I've come across this problem that I am unable to solve for quite some time. If this is question has already been asked before then do let me know. The problem at hand is ...
0
votes
0answers
44 views

Why is my FPS Camera in the Wrong Position by Default?

I'm using Unreal 4.2, and somewhere a long time ago I must have messed up settings. I'm trying to mess with a first person shooter, so I create a new project, using the first person template. When ...
0
votes
1answer
31 views

How can I transfer this code (originally for FPS template) for use in a Third Person Template?

I learned how to create a blueprint for making a character be able to pick up and drop objects: It did not work, and I believe the reason is because it was originally made to work for the FPS ...
0
votes
0answers
31 views

First-person camera script for space game jitters when rotating diagonally

I am working on a first-person shooter that is set in space. Since its set in space, the characters must be able to rotate in 2 directions at once. Currently, I am using 2 transform.rotates which ...
1
vote
2answers
2k views

Render hands and gun in front of everything

I'm currently learning about Unreal Engine 4 by making an FPS game. How can I render the player character's hands and gun on top of everything? Currently when I walk up to a wall, the hands and gun ...
1
vote
2answers
50 views

Improving FPS by disabling unity events

I am trying to improve the fps and in my scene there are 4322 scripts attached to 4322 objects. When I activate those objects the fps go down. Right now it's around 100fps when i active those objects ...
0
votes
1answer
132 views

RigidBody or Character Controller for Zero Gravity first person shooter

I am developing a single person, first-person shooter that takes place in space. I want to be able to simulate zero gravity. Should I use a Rigid-Body or a Character Controller?
1
vote
0answers
27 views

How to build bullet (hit) damage detection in Augmented Reality to a real life person acting as an opponent?

I am building an Android AR game using ARcore 1.18 in Unity 2019.4.5f1 (LTS). Now I want to create something like bullet damage detection just like it is built in a normal Unity 3D game. Of course, ...
-1
votes
1answer
215 views

How to make camera move with the player in 3D Libgdx

Iam trying to create a 3D game in Libgdx, so I created a 3d World with physics, and added just a small terrain and capulse (the Player) . I want to make the game first person, so I created a player ...
0
votes
1answer
59 views

Camera stacking for first-person view weapon in Universal Render Pipeline

I just added URP to my project then upgraded the materials to URP and now it's not rendering the environment anymore I found the problem is that I have 2 cameras which are stacking on each other: ...
0
votes
0answers
18 views
0
votes
0answers
38 views

How do I smooth janky movement over ground as rope length is reduced?

Here is a video showing the type of movement I am talking about: video I have a configurable joint attached to the player which reduces in length every frame the player touches the ground. I do this ...
1
vote
0answers
91 views

Client-side Prediction Divergence with Input Packets and Time Differences | Multiplayer FPS

I am running into a problem while implementing client-side prediction in my multiplayer FPS. I'm not entirely sure if I've completely and correctly understood the concepts. I have read the articles ...
0
votes
0answers
73 views

Rigidbody appears to jitter when placed as a sibling to a First Person camera

In my game, the Player can pick up an object (which gets parented to the first-person camera), or the player can push an object (which is parented to the player, but not their first-person camera). ...
0
votes
3answers
1k views

Move with velocity based on rotation

So I have a simple script to move a character. The problem is that no matter where i'm looking at (my y rotation) it always makes me go the direction if I try to go forward, but I want it to go toward ...
1
vote
0answers
21 views

Client projectile ignores camera Y-axis in multiplayer shooter

I'm able to spawn the bullet and make it move. But the problem is, only the host can shoot the bullet in the way the camera is facing(takes both X-axis and Y-axis correctly). The client takes only the ...
0
votes
2answers
345 views

FPS-like mouse-look camera WinAPI problem

I have a problem with implementing mouse-look camera movement, like in FPS games. For me common solution is: Process WM_MOUSEMOVE event in ...
0
votes
1answer
273 views

How do I use raycast to put a bullet hole on a curved surface?

EDIT: As of yet I have not been able to find a way to make the bullet hole wrap around the corner of a gameobject. I am working on a fps game that uses raycast for shooting and so ...
0
votes
2answers
419 views

How to split 2 teams for a FPS death match game in Unity?

I'm making a playable one level only FPS death match game in Unity. I'm in the part where the AIs now can find and shoot their own target and keep looping to find targets until nothing left. Every AIs ...
1
vote
1answer
570 views

How to develop a bot for a(n) (arbitrary) FPS game without a game API?

I've been interested in artificial intelligence in computer games for a long time. The question that I have been asking for a long time and to which I have not yet found an answer is the following: ...
2
votes
2answers
633 views

FPS Character Controller movement - Any value in reverse engineering movement formulas?

From what I know character movement in popular FPS games tend to be non-linear, but the easing curves change between games as each has its own signature formula. Typically I imagine the physics ...
0
votes
1answer
633 views

3D player movement with Unity's new input system

So, I trying to get used to the new Unity input system. "Back in the days" I just got the Vertical/Horizontal axis, put them into a Vector3, multiplied them by a certain value and then moves the ...
0
votes
0answers
55 views

Character Controller + Lag = Massive Teleportation Through Walls

I'm working on a fairly robust game with another developer and we've been having a really serious issue with (I believe) the character controller. Specifically, if there's ever a large lag spike (as ...
1
vote
1answer
71 views

Testing a Client's Camera in a Multiplayer FPS

I'm attempting to do a logic test regarding a client's camera in a multiplayer FPS in Unity and I'm a little uncertain of which way to implement the functionality. The scenario: - I have a host and ...
0
votes
0answers
472 views

Why is Unity MouseLook very shaky and jittery?

I'm working on a first person shooter game. My problem is that my Mouselook script is shaky and jittery when I looking around. Here is my code: ...
0
votes
0answers
98 views

Only host can spawn object

I am currently making a multiplayer game however only the host has the capability to spawn projectiles. ...
0
votes
1answer
54 views

Why doesn't this weaponpickup script work properly?

I'm making an FPS game. My guns are disabled at the start. When I use this script to pick up and hold one weapon at a time, requiring that you click J to drop it, it simply doesnt work! There are ...
0
votes
1answer
50 views

Model turning 2d when it's parented

I'm importing arms from blender for my first person controller but when I make the player the Arms' parent it turns 2d. I have no idea why this is happening so if anyone could help it would be very ...
1
vote
0answers
186 views

How to make only-head rotation in UE4?

I've made a character, attached a camera to it and setted input. But now i want only character's head to rotate with mouse, but not a whole character (player capsule rotates with Q and E keys). I ...
0
votes
1answer
2k views

Camera view matrix from position/yaw/pitch/worldUp

I'm trying to make a basic FPS camera view matrix, using position, pitch/yaw, and worldUp. Currently, my camera's view matrix is just a plain rotation matrix (made with yaw/pitch/roll) and the result ...
3
votes
2answers
2k views

How to achieve a stable hover in Unity

In the game that I am currently making the play character is supposed to hover off the ground. I had used the code from the Hover Car tutorial on the unity website however this causes a lot of ...
0
votes
2answers
515 views

FoV value scaling

I'm creating an FPS project in Unity 2018. My reference FoV is 90. Let's say I'd like to create an sniper rifle which let player change FoV to 60 when he's aiming with optics. But what should be the ...
0
votes
1answer
109 views

How would I prevent parts of my player model from displaying on the camera?

The "legs" of my playermodel are shown when looking down. I'm using the Unity First Person Controller template. Character when in Scene view: Character when looking down in Play mode:
0
votes
1answer
145 views

How to create bullet impact effects?

I'm creating a small fps and I don't know how to create a bullet impact effect. I have a muzzle flare and I have recasting set up but I don't know how to make a bullet impact effect. I've already ...
0
votes
1answer
684 views

Whats the general method developers to implement FPS multiple weapon handling animations?

I'm trying to create a first person shooter and I'm lost on what's a good, efficient methodology to implement the whole weapon handling animation system. Now, I know that I could have a unique ...
1
vote
1answer
3k views

How to import character package in Unity

I recently made a game in Unity 3D and I tried to import the FPS Controller package as the tutorial I was following said, but when I clicked Assets/Import Package the only thing I saw was a button ...