Tutorial Unity camera modding

AndnixSH

PMT Elite Modder
Original poster
Staff member
Modding-Team
Jun 27, 2017
4,764
301,852
1,213
Modding World
After the official Dead by Daylight got released, the company who made shitty 2.5D DBD rip off game shutted down my mod apk against platinmods that i'm from and all apk sites even they host original apk. I don't know where I can share the mod safety so I don't bother modding this shity game anymore

Here is how I made camera zoom out mod:

Look inside CameraController class, there is Awake method

C#:
private void Awake()
           {
                      float num = (float)Screen.width / (float)Screen.height;
                      this.thirdPersonCamera.fieldOfView = 1920f / num / 100f;
                      this.firstPersonCamera.fieldOfView = 1920f / num / 100f * 6f;
                      this.oldCamera.fieldOfView = 1920f / num / 100f;
                      ...
           }
Change the camera float number 100f to anything below 100f to zoom out. example: 35f

Example:
Original
8dRTWP5.png


Modified
YDwrxr6.png


Video example:
streamja.com/6nm5

So now you have learned about camera modding.

Read more about Camera: Unity - Scripting API: Camera

Source code: AndnixSH/Coding-Center
 
  • Like
Reactions: BMD4E

UAQKunoichi

Just Crazy
Jul 25, 2017
306
699
93
27
Land of the rising red dot
I'm not master in modding UE4 but no, I respect DBD and keep it fair. It is not pay2win game :D
Then mb can you help me teach how to mod UE4 games? There's so much games I want to mod myself but every attempt in modding these so games ends in failure ,see i'm a graphic learner my scheme of learning is copy paste and then hopefully use that data from copy paste in new projects. But if you don't have smallest intrrst in helping me then juat say no don't bother linking me to that horrible video tutorial about so that video is torture to watch moreover to learn something from it, will try if potato laptop won't crash before loading whole so in IDA
 

DaRealPanDa

Co-Administrator
Staff member
Supporting-Team
Global Moderator
Social Media
Mar 12, 2018
6,758
15,614
2,120
27
Skyrim
Then mb can you help me teach how to mod UE4 games? There's so much games I want to mod myself but every attempt in modding these so games ends in failure ,see i'm a graphic learner my scheme of learning is copy paste and then hopefully use that data from copy paste in new projects. But if you don't have smallest intrrst in helping me then juat say no don't bother linking me to that horrible video tutorial about so that video is torture to watch moreover to learn something from it, will try if potato laptop won't crash before loading whole so in IDA
No one, especially not AndnixSH have time to teach modding buddy. Everyone here in this scene which is a real Modder ( not leecher ) learned all by himself, just by studying Games or learn programming. ( C#, java, c++ would be good as example in Android/iOS modding scene ).