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
1answer
200 views

Same dimension feel no matter what FOV

Does anyone know a formula, way, ... to make a FPS player feel like an object has the same size on different FOVs (given that it's at the same distance of the player, of course)? I know that this can'...
0
votes
1answer
29 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 ...
2
votes
2answers
551 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 ...
1
vote
1answer
7k views

Jump Script Component For Character Controller

I'm trying to implement a jump method into my FPSInput script. I know how to make this work for a Rigidbody, but how can I accomplish this with my Character Controller? Does CharacterController have a ...
0
votes
2answers
57 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 ...
2
votes
3answers
415 views

How can I make bullets come from a character's eyes, but look like they come from the gun?

How can I make bullets in a first person shooter look like they come from the gun, but actually come from the eyes of the character? The problem is that since the camera (the character's eyes) are in ...
0
votes
1answer
124 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
87 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 ...
2
votes
2answers
202 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 ...
1
vote
0answers
83 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: ...
0
votes
0answers
101 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 ...
17
votes
4answers
8k views

How to keep my Quaternion-using FPS camera from tilting and messing up?

I am using an FPS-like camera, and it uses quaternions. But, whenever I try looking up and then sideways, it tilts, and sometimes it can turn upside down. How can I fix this?
0
votes
0answers
50 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
53 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
159 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
22 views

Multiplayer game- Client Shooting backwards

Making a multiplayer game. The Host shoots properly but the other players would only shoot backwards. Shooting script: ...
0
votes
0answers
32 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
47 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
0answers
12 views

Unity only projectiles shot by host visible to all players

I am currently making a fps multiplayer game, i have successfully made it so that multiple players can join and that they can see each other moving around. However there is a problem with the shooting....
1
vote
0answers
43 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
418 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 ...
0
votes
2answers
128 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
43 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:
-2
votes
8answers
13k views

Best open-source 3D game engine for a first person shooting game? [closed]

What is the best opensource 3D game engine suitable for 1st person shooting game? This engine should be script-able with lua.
0
votes
1answer
103 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
146 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 ...
0
votes
1answer
648 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 ...
0
votes
3answers
107 views

How can you tell if you are a large player on a large map or a small player on a small map?

If everything is scaled by a constant factor, can you tell that the world is smaller or larger? I think you could look down at the ground and see that it's "closer". But how do you know what ...
2
votes
2answers
71 views

Applied force is backward instead of forward when shooting an object

I have this FPS I'm making and I wanted to apply force to objects I shoot at however when I shoot on them, instead of going away from the camera they come towards it. I don't get it. I could fix the ...
6
votes
2answers
273 views

Which fixed framerate should i choose for physics thread?

I am writing first-person shooter game with fast motion. I have a fixed high-frequency physics loop thread, which is separated from variable-frequency rendering thread. I need to choose the physics ...
0
votes
2answers
82 views

Bullet spread changes depending on the camera direction

I'm working on an FPS game. I want to make a little bit of difference in shooting direction, only on the horizontal axis. To do this, I wrote this code: ...
0
votes
1answer
287 views

First Person Shooter Character in Unity - Meshes Clipping When Close to Body?

I am working on a game character using Unity. I'd like it to be playable in 3rd Person and 1st Person depending on what the user chooses (switchable in game whenever ideally). I've worked on and read ...
3
votes
1answer
321 views

Networked projectiles in an authoritative server

I'm working on a multiplayer game, and I've implemented a simple enough player prediction (according to this great article) - which works well enough. What isn't discussed there, and my question here;...
0
votes
1answer
364 views

Unity C#: Accurate MachineGun Firerate at lower FPS

I have long accepted that my firerate will be more or less irregular and inaccurate. Now that I'm adding sound things are getting really ugly. My methods for getting the firerate are primitive and I ...
0
votes
1answer
96 views

How to calculate angle for shooting bullet in 3D?

What I want to know is if I can calculate an angle similar to how I'm doing in 2D and update the x,y,z position of a bullet based on that angle in a similar manner I'm doing the update function below. ...
0
votes
1answer
704 views

unity 3d mouselook script help, weird issue

I'm coming back to Unity after a year or two of busy college and I'm having to relearn everything I've forgotten. One thing I cant seem to get right is this basic mouselook script I wrote. Here is the ...
0
votes
1answer
235 views

The state that is synced when a window is broken in a FPS game

In order to better understand how state syncing works in games, I wanted to pose a specific example. Say you are in a FPS game with multiple players and someone breaks a window in some building. ...
5
votes
2answers
21k views

Simple framerate counter?

I'm making a first person shooter, and I've seen questions like this before, but the answer is either overly complicated or they're using SDL, GLFW, GLUT, or something else. I'm not using any of that. ...
0
votes
1answer
59 views

FPS controller initializing at bizarre location

I have got the hang of basic construction, terrain modification, applying materials, placing trees, etc. I have created a water plane, positioned my terrain above it, and am able to sink lakes and ...
0
votes
1answer
122 views

How to parent object to empty when looked at

I am making a fps in unity. I have an empty parented to the camera for the gun, and I want to be able to pick up and drop guns found in the scene. Does anyone have a simple c # script that would allow ...
0
votes
4answers
3k views

Unity FP Character Can't Look Vertically

I have a FP Character and well, it can't look vertically. Its happened about 3 times now, each time I just replaced it with the standard assets prefab, first few times it worked fine, but then after a ...
10
votes
3answers
6k views

How to implement mouselook in the browser?

I am currently creating a 3D first-person shooter game in the browser using WebGL. How would I implement mouselook/free look for such a game?
0
votes
1answer
88 views

Firing a simple sphere from below the camera at crosshair in the centre of the screen, with or without raycast

I have a game that spawns "enemies" within a sphere around the camera, the player moves the camera to target and simply presses the screen to fire. For now my "ammo" is simply a sphere and for visual ...
1
vote
2answers
156 views

Reseting animation

I'm writing little fps game in Unity 5.3.5. So, I've got my gun object and two animations, idle and shot. I've got transition from idle to shot with trigger condition and "Has Exit Time" unchecked. In ...
-1
votes
1answer
3k views

How to change fps character's movement speed and mouse sensitivity in UE4?

As the title says, I'm using the default fps template from UE4 (blueprint template) and the movement speed is very high, also I want to adjust the mouse sensitivity, but I don't know where are those ...
2
votes
0answers
636 views

FPS game UI theory [closed]

Are there any researches concerning FPS game interfaces? I'm interested in analyses of designing & positioning UI-elements. The only thing I can find are blogs and articles about immersion in ...
1
vote
1answer
2k views

first person character controller error

I have opened new scene, deleted camera and imported first person character controller from Standard assets. I placed plane on scene and put first person character controller on plane. I got this ...
-1
votes
1answer
274 views

problem with bullets shooting in FPS game

Please check out my game here: http://still-escarpment-3701.herokuapp.com The problem is with shooting. The bullets keep on moving with the First person controller instead of moving from the same ...
2
votes
1answer
3k views

how to convert FoV into zoom 2x, 3x, 4x…?

so I have the value of the FoV in degrees, now I need to convert it to a zoom value of 2x, or 3x, for scopes and binoculars. I placed some objects equally distanced between each other, but when I ...
50
votes
3answers
16k views

What is the little dot/icon at the center of the screen in an FPS game called?

So I am developing a game and trying to find one of those to use, but I don't know what to search for. If you don't know what I am taking about, look at these examples: What are these called?